Title: Message
Hi,
 
You can try ServletContext.getContext(...) to share info from one web app to another web app.
 
Things to remember :
    i)    Both applications must be running on the same JVM
    ii)    Your web/app container should support 'cross-context'
    iii)   The other web app is considered to be already loaded.
            In other words, one of it's web resources got already invoked by some way (either by direct call or by a Startup-Servlet)
            so that it's web context got already established.
 
 
 
HTH
John
 
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]On Behalf Of Katz Guy
Sent: Thursday, May 29, 2003 3:21 PM
To: [EMAIL PROTECTED]
Subject: Re: HTTP session communication between VMs

thanks for the reply
what if i have different HTTP session of two different applications packaged on different EAR file but on the same VM.
would i be able to communicate between sessions using a context listener?
-----Original Message-----
From: Pavnesh [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: Re: HTTP session communication between VMs

As far as I know, you can't do this. i mean inter VM HTTP session is not possible. Possible solution for this is to take the intermediate approach...
 
   Use the database table to access the shared information from servlets/JSp/Bean running both VMs. in this case the point of conatct will be the database table.
 
Thanks
Pavnesh
----- Original Message -----
From: Katz Guy
Sent: Thursday, May 29, 2003 12:10 PM
Subject: HTTP session communication between VMs



Hi all;

I need to solve a problem where one HTTP session on Machine A notifies
another HTTP session on machine B that 'something happened'.

I cant seem to find a good solution for this.
Any suggestions?
Thanks.

_______________________
Guy Katz
Chief Software Architect, CAP-IFS
Comverse
[EMAIL PROTECTED]
+972 3 7663686

Reply via email to