users@glassfish.java.net

Re: How to use same port on two different domains ?

From: Alexis Moussine-Pouchkine <alexis.moussine-pouchkine_at_oracle.com>
Date: Wed, 7 Sep 2011 08:19:10 +0200

Would @DatatSourceDefinition or GlassFish app-scoped resources help here?
If so, one domain would suffice.
-Alexis

[1]: http://java.sun.com/javaee/6/docs/api/javax/annotation/sql/DataSourceDefinition.html
[2]: http://download.oracle.com/docs/cd/E18930_01/html/821-2417/giydj.html

On 6 sept. 2011, at 19:07, forums_at_java.net wrote:

> I'd like to deploy two identical war. Application contained in this war use a
> database using a named data source defined in the glassfish 3 domain.
>
> This two wars must not connect to the same database ! So i'd like to create a
> domain for each of them.
>
> But, i want that this two application could be access on the same port with
> two different domain names. Is there a way to do that ?
>
>
>
> Thanks !
>
>
> --
>
> [Message sent by forum member 'le2tbomi']
>
> View Post: http://forums.java.net/node/840551
>
>