Can you suggest a good place to start with making a servlet to interact with a zone or room extension in SFS2X?
I want to avoid editing my game's db directly, and force it to go through some game logic.
servlet question
Can you better explain what you need to do?
If you need to access the DB in 99.9% of the cases you should use a server Extension:
http://docs2x.smartfoxserver.com/Advanc ... extensions
If you need to access the DB in 99.9% of the cases you should use a server Extension:
http://docs2x.smartfoxserver.com/Advanc ... extensions
Certainly, I would like to accept payment through a 3rd party postback url. I would like to get the DBManager from the appropriate zone extension.
In 1.6, this would have been done using smartfoxserver.getInstance() and finding the zone extension from there, and then calling handleInternalEvent.
Is there a similar mechanism exposed to servlets running in the embedded SFS2X webserver?
In 1.6, this would have been done using smartfoxserver.getInstance() and finding the zone extension from there, and then calling handleInternalEvent.
Is there a similar mechanism exposed to servlets running in the embedded SFS2X webserver?
Yes, same exact system.
The SmartFoxServer.getInstance() is always there.
I would suggest something like:
The SmartFoxServer.getInstance() is always there.
I would suggest something like:
Code: Select all
Zone myZone = SmartFoxServer.getInstance().getZoneManager().getZoneByName("MyZone");
SFSExtension ext = myZone.getExtension();
Who is online
Users browsing this forum: No registered users and 62 guests