Jetty8 virtual hosts

Posted by Martin on Server Fault See other posts from Server Fault or by Martin
Published on 2010-06-14T09:38:01Z Indexed on 2010/06/14 9:43 UTC
Read the original article Hit count: 308

Filed under:
|
|

I have a server JAR that is deployed once per customer, it is the API server for their software package. To that end, the port for each API instance must be the same, so that anything programmed against it can always find it. Each instance is deployed on a different domain name

The problem I'm having is that, even when using a SelectChannelConnector and setting the host property, I can't get two instances to run simultaneously, I get a BindException with "Address already in use".

I suppose my question is: can Jetty do this, or do I need to do some external re-writing, or is there a better way I can go about achieving the same ends?

Thanks.

© Server Fault or respective owner

Related posts about java

Related posts about virtualhost