you can try to do something like this:
public class ClsAction extends Action { // Start Intialize the
instance of the graphics serverpublic Object lockObj = new Object();public
static GraphicsServer myServer = ClsInitializeServer.getInitializeInstance();
// End another methods(){ . . . } public
void resetGServer()
{
synch..(lockObj)
{myServer = null;
}
}}- A Fei -> From: [EMAIL PROTECTED]> To: user@struts.apache.org> Subject: The
class variable reference null problem> Date: Fri, 1 Jun 2007 10:51:14 +0900> >
> Hi,> > I have one problem> > In my action class , I am initilazing my graphic
software server as a static> variable e.g.> > public class ClsAction extends
Action {> > > // Start Intialize the instance of the graphics server> > public
static GraphicsServer myServer => ClsInitializeServer.getInitializeInstance();>
> // End > > another methods(){> . . . > }> > > }> > The code is executing
perfectly OK, But I am not able to make "myserver"> object reference null when
logging out of the application.> > I tried calling the "myServer = null", but
the next time I come to this java> class the "public static GraphicsServer
myServer => ClsInitializeServer.getInitializeInstance();"> > does not seem to
exceute, but is available to other parts of the program. I> think in struts it
becomes the application level variable and
does not null.> I am new , Plz help me how to make its reference null.> > >
Thanks and Regards,> Kapil Sharma > > >
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE