Hi,
I want to add custom WAR/JAR file in SFS tomcat to call few API that will update SFS Custom class variables.
If it is possible, Can you help me?
Where to put WAR/JAR or some code example.
Can i add custom WAR in smartfoxserver tomcat?
Re: Can i add custom WAR in smartfoxserver tomcat?
Hi,
.war files can be deployed in the SFS2X/www/ folder, so that Tomcat can load and deploy them.
Here's an article about the interaction between web-apps and the SFS API.
https://smartfoxserver.com/blog/http-re ... tegration/
Cheers
.war files can be deployed in the SFS2X/www/ folder, so that Tomcat can load and deploy them.
Here's an article about the interaction between web-apps and the SFS API.
https://smartfoxserver.com/blog/http-re ... tegration/
Cheers
Re: Can i add custom WAR in smartfoxserver tomcat?
In case this trips you up, in that tutorial, there's a line about testing the server that says
http://localhost:8080/servlet?numbers=100,60,50,112,88
That's actually incorrect. It should be http://localhost:8080/ExtensionTest?num ... ,50,112,88
Tripped me up for a while. The web.xml defines the path as ExtensionTest, not servlet
http://localhost:8080/servlet?numbers=100,60,50,112,88
That's actually incorrect. It should be http://localhost:8080/ExtensionTest?num ... ,50,112,88
Tripped me up for a while. The web.xml defines the path as ExtensionTest, not servlet
Re: Can i add custom WAR in smartfoxserver tomcat?
albymack wrote:In case this trips you up, in that tutorial, there's a line about testing the server that says...
Thanks for spotting this. We have now corrected it.
Cheers
Who is online
Users browsing this forum: Baidu [Spider] and 141 guests