users@glassfish.java.net

Re: communication between web applications

From: <glassfish_at_javadesktop.org>
Date: Sat, 27 Oct 2007 23:57:25 PDT

Yes, that's precisely what's wrong.

A simple workaround would be to create a simple wrapper class with your static variable in it, but you do not deploy that class with your webapps. Rather you plop the class in to a jar, and then place that jar "outside" the container (say $domain/lib/ext). Then everything within the app server can see any classes in that jar, so both your web service and your JSP will both be able to access the variable from the static instance.
[Message sent by forum member 'whartung' (whartung)]

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