tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: Sharing data between servlets
Date Wed, 08 Jan 2003 19:34:02 GMT
create a class to serve the shared data and put it in /common/classes. This
way all your webapps will be able to access the same instance. 

> -----Original Message-----
> From: Lars Preben S. Arnesen [mailto:lars@preben.no]
> Sent: Tuesday, January 07, 2003 7:54 PM
> To: Tomcat Users List
> Subject: Re: Sharing data between servlets
> 
> 
> [ nobody ]
> 
> > are they in the same webapp?
> 
> Yes, for now. It might be useful to split them into different webapps
> later on.
>  
> > your best best may be to create a singleton which acts as a 
> datastore and
> > both the servlets can access
> 
> Do you have a code example for this? (I'm still a servlet newbie. :)
> 
> -- 
> Lars Preben
> 
> --
> To unsubscribe, e-mail:   
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message