A complete mess
-
- Posts: 72
- Joined: 24 Aug 2013, 09:15
- Location: Barcelona
- Contact:
A complete mess
Hi, I'm editing this post again from scratch and will try to make it a coherent question. I've spent too much time in front of the screen and just did'nt know where else to ask for help about a probably simple problem I was too saturated to even think right. I will print out any relevant info instead of surfing around not knowing exactly where to look... I use wamp in combination with smartfox and would like to find out about communicating from the extensions via php. I'll look around smartfox older documentation ...
Re: A complete mess
You mean that you would like to call external PHP pages from your Extension code?
It can be done using a Java Extension and a HTTP library such as this one which will hide the complexity of performing the HTTP calls: http://httpd.apache.org/
You will probably also need a Thread Pool for the HTTP calls to make sure that your code is scalable, in other words that you can run multiple calls in parallel.
Thread pools are a breeze with the java.util.concurrent package.
Hope it helps
It can be done using a Java Extension and a HTTP library such as this one which will hide the complexity of performing the HTTP calls: http://httpd.apache.org/
You will probably also need a Thread Pool for the HTTP calls to make sure that your code is scalable, in other words that you can run multiple calls in parallel.
Thread pools are a breeze with the java.util.concurrent package.
Hope it helps
-
- Posts: 72
- Joined: 24 Aug 2013, 09:15
- Location: Barcelona
- Contact:
Re: A complete mess
thanks, Lapo. But I am using php from the wamp server. I was only hoping fo a stroke of luck expecting someone to tell me where to place the javaxmail class if I ever managed to compile it by myself. It just seemed more pratcical in order to avoid having to imstall a different server each time I restore my software, but it's alright. I'll keep working to try and catch up with a minimum basic knowledge of this all. Thanks again.
Cheers
Cheers
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 32 guests