users@glassfish.java.net

Deployment of an EAR with multiple WARs to different HTTP listeners

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Jan 2010 01:42:25 PST

Hi,

I have an application EAR that consists of two WARs and a single EJB JAR.

For security reasons (let's say, different SSL trust stores), the web applications must use different HTTP listeners, and each web application must only be accessible by one of the listeners, e.g.:

https://myhost:8443/webapp1 --> OK
https://myhost:8443/webapp2 --> FAIL

https://myhost:9443/webapp1 --> FAIL
https://myhost:9443/webapp2 --> OK

From what I have discovered, if you deploy an EAR, it is only possible to assign it to a virtual server as a whole. Assigning the WARs contained in the EAR to different virtual servers is not possible. Therefore, both web applications are visible from all of the HTTP listeners assigned to the virtual server.

Are my assumptions correct?

Is there a way to achieve the above scenario, preferably within a single domain?

Regards,
Patrick
[Message sent by forum member 'patrick_peck' (patrick_at_zync.at)]

http://forums.java.net/jive/thread.jspa?messageID=382963