Page 1 of 1

running Jetty/Bluebox on a different host/IP

Posted: 09 Apr 2008, 00:38
by newbie2008
Is there anyway for Smartfox to be configured in such a way that when a bluebox connection is required, it actually redirects the request to a different host rather than the same host running on different port?

e.g. server-a.domain.com is running smartfox on port 80.
server-b.domain.com is running bluebox with jetty running on port 80

is there any way for the client trying to connect to smartfox server-a to post a bluebox request to server-b.domain com?

I know BlueBoxPort is a configurable parameter on the client. Is there such a thing as a BlueBoxHost?

Posted: 10 Apr 2008, 12:13
by Lapo
In other words you'd like to put SFS on machine A and BlueBox on machine B? Yes it is possible but you would need a standalone version of the BlueBox which is quite simple to create.

You simply have to download a standalone version of Jetty from here -> http://docs.codehaus.org/display/JETTY/ ... g#download
and copy the BlueBox.war and bluebox.properties in the standalone Jetty webapps/ folder

The bluebox.properties file should be edited like this:

Code: Select all

...
serverMode=standalone

# These 2 are available only in stand-alone mode
sfsAddr=127.0.0.1
sfsPort=9339
...
where sfsAddr and sfsPort are the address and port of SmartFoxServer

NOTE: It is mandatory that both machine A and B are located in the same local network.

Finally on the client side you will have to set the blueBoxIpAddress and blueBoxPort properties to the same values.

HTH

Posted: 10 Apr 2008, 20:09
by newbie2008
Thanks very much Lapo. This is exactly what I was looking for.

Posted: 11 Apr 2008, 07:20
by Bax
Just a side note. If you own a SmartFoxServer+BlueBox license, when moving the BlueBox to a different machine you will have to ask for a license update: write us an email asking to activate the BlueBox for the new IP (while SFS will remain bound to the previous IP).