users@glassfish.java.net

Re: Deployment of an EAR with multiple WARs to different HTTP listeners

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Tue, 26 Jan 2010 11:47:29 +0100

you could split up the ear and deploy the classes of the ear as an own
application
and access them with ejb from two separate web-applications.. You can
then assign
the web-applications to different vhosts

On Tue, Jan 26, 2010 at 10:42 AM, <glassfish_at_javadesktop.org> wrote:
> 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.




-- 
Dominik Dorn