Hi
Having a look at location of admin page, I see it locates inside folder : SmartFoxServer_2X/SFS2X/www/root/admin
I also want to use jetty on this location to store my 1 http service(static). How can I make this static http service interact with SmartFoxServer ?
Thank you
Doanh
Integrate
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Integrate
Hi,
I am not sure what you mean by "static" service.
In order to interact with SmartFoxServer you need to deploy a java servlet which in turn can call SmartFoxServer code by accessing the main SmartFoxServer class.
For example:
Here's an article that will help:
http://smartfoxserver.com/blog/http-req ... tegration/
Cheers
I am not sure what you mean by "static" service.
In order to interact with SmartFoxServer you need to deploy a java servlet which in turn can call SmartFoxServer code by accessing the main SmartFoxServer class.
For example:
Code: Select all
SmartFoxServer sfs = SmartFoxServer.getInstance();
ISFSApi api = sfs.getApiManager().getSFSApi();
api.createRoom(...);
Here's an article that will help:
http://smartfoxserver.com/blog/http-req ... tegration/
Cheers
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Integrate
Thanks Lapo
I am reading and applying it now , I am glad knowing this feature of SmartFoxServer
Cheers,
I am reading and applying it now , I am glad knowing this feature of SmartFoxServer
Cheers,
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Integrate
I have done it,
Thank you very much, that kind of integration is great. Never thought about that before.
That kind of integration can be implemented because jetty classes and SmartFoxServer classes are loaded by 1 class loader, can't it ?
I met some troubles with asm library version that causes scanning annotation. But it is okay now.
Cheers,
Thank you very much, that kind of integration is great. Never thought about that before.
That kind of integration can be implemented because jetty classes and SmartFoxServer classes are loaded by 1 class loader, can't it ?
I met some troubles with asm library version that causes scanning annotation. But it is okay now.
Cheers,
Re: Integrate
hoangdoanh wrote:I have done it,
Thank you very much, that kind of integration is great. Never thought about that before.
That kind of integration can be implemented because jetty classes and SmartFoxServer classes are loaded by 1 class loader, can't it ?
Yes, they run in the same JVM and share the same top class loader.
(Although Extensions don't)
Cheers
Who is online
Users browsing this forum: No registered users and 92 guests