users@glassfish.java.net

Is it possible to bind a web-app inside an EAR to a specific http port or virtualserver?

From: Dunstan, Tom (EPA) <"Dunstan,>
Date: Wed, 16 Oct 2013 10:19:22 +1030

Hi all

We have an application with two web apps which gets packaged up as a single EAR file. We would like one of the webapps to be accessible on one port, and the other to be accessible on a different port. Having both accessible on the same port is not acceptable.

It is not clear how to do this in Glassfish. I can see that when deploying a WAR file that it seems possible to specify a virtual server to bind it to, but I can't see how I would accomplish this for different WARs inside an EAR.

Is what we want to do possible?

Any help appreciated

Regards

Tom