When you define an EAR application that contains several web modules (WAR 
files), should not be the session shared between all the modules to the 
application?.
  I think that this is one of the advantages of having several modules on 
the same application.

I have tried it with two webapps but they do not share the session. They 
are defined on the same application, but the session is not shared.
What should I do to have the session object shared between all the modules 
of the application ?

Ismael Blesa Part wrote:

   But are you able to share the session between this two applications?

   Is it possible to use the same root for the two applications?

   Simon Knott wrote:

   > Yes you can.  You set up your two web modules in your application.xml (as
   > you have done), and then put two entries in the default-web-app.xml as so:
   >
   > <web-app application="applicationName" name="firstwebappname"
   > root="/firstwebapproot" />
   > <web-app application="applicationName" name="secondwebappname"
   > root="/secondwebapproot" />
   >
   > This works for us, although we can't access classes that reside within one
   > web application's web-inf from the other web application.
   >
   > Hope that helps,
   > Simon
   >
   > This email and any attachments are confidential and are intended only for
   > the addressee. If you are not the intended recipient of this email and 
have
   > received it in error, please notify the sender immediately by reply email
   > and then delete it from your system.
   >
   > -----Original Message-----
   > From: Mike Weissman [mailto:[EMAIL PROTECTED]]
   > Sent: 26 April 2001 00:45
   > To: Orion-Interest
   > Subject: 2 web apps in an ear
   >
   > Can I deploy an ear that contains 2 .war files or 2 web apps?  I was
   > able to add a 2nd web module within my application.xml.  The war expands
   > correctly.  The second war is a servlet.  I cannot seem to access this
   > servlet.
   > When I put a second entry in my default-web-site.xml then the first does
   > not work.  I am sure I am just missing a config item.
   > thanx ahead of time,
   > mike
   > --
   > ##############################################################
   > Michael Weissman e-mail: [EMAIL PROTECTED]
   > Clarent Corporation 303-734-5003 Fax 303-734-4244
   > 1221 W. Mineral Ave.  Littleton, Co 80120
   > In the land of the dark, the ship of the sun is
   > drawn by the grateful dead -- Egyptian Book of the Dead
   > ##############################################################



Reply via email to