You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Power-Netz (Schwarz)" <sc...@power-netz.de> on 2002/07/29 11:58:42 UTC
TC and applicationwide beans
Hi,
can tomcat swap beans from one application to another if both use the
classes?
If I have a webapp A which granted access to the system and uses a login
bean to store
the data, does tc accept this bean ( in the same session ) on the webapp B
with same classes?
Or is a new session created if the user switches from one app to another???
(related to tc 3.3.2dev)
Ihr Support-Team
>>> POWER-NETZĀ®
Full-Service-Provider <<<
Online-Support:
Support: 0190 - 15 11 15 (EUR 0,62/Min)
http://Support.Power-Netz.de (kostenlos)
http://Support.Power-Netz.com (kostenlos)
Vertrieb Tel: 01805 - 57 35 57 (EUR 0,12/Min.)
Vertrieb Fax: 01805 - 57 45 57 (EUR 0,12/Min.)
Power-Netz
Am Plan 1
37581 Bad Gandersheim
http://www.Power-Netz.de
mailto:info@Power-Netz.de
+=========================================+
<----------I N F O C E N T E R---------->
+ Senden Sie eine leere e-mail an:
+ Providerwechsel: mailto:Wechsel@Power-Netz.de
+ Daten/Preise Webspace: mailto:Webspace@Power-Netz.de
+ Reseller-Programm: mailto:Reseller@Power-Netz.de
+ Dedizierte Server: mailto:Server@Power-Netz.de
+ Adult/Erotikserver: mailto:Adult@Power-Netz.de
+ Domainpreise: mailto:Domain@Power-Netz.de
+ Domain-Nameserver: mailto:DNS@Power-Netz.de
+ SSL-Zertifikate: mailto:SSL@Power-Netz.de
+ Geschaeftsbedingungen: mailto:AGB@Power-Netz.de
+ =========================================+
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: TC and applicationwide beans
Posted by "Power-Netz (Schwarz)" <sc...@power-netz.de>.
> If you need only one instance, how about some sort of static factory that
> creates one instance of your bean JVM-wide?
good idea. thx.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: TC and applicationwide beans
Posted by Michael Locasto <lo...@cs.columbia.edu>.
If you need only one instance, how about some sort of static factory that
creates one instance of your bean JVM-wide?
----- Original Message -----
From: "Power-Netz (Schwarz)" <sc...@power-netz.de>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, July 29, 2002 10:56 AM
Subject: AW: TC and applicationwide beans
>
> > So, you can use the same class definition of a bean in two
> > separate webapps
> > if the class definition is in $TOMCAT_HOME/lib/apps...
> > (or alternatively, in the WEB-INF/lib directories of your two webapps,
but
> > that is just wasted space). The webapps will create two separate
instances
> > of your bean.
>
> I feared that :-(
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: TC and applicationwide beans
Posted by "Power-Netz (Schwarz)" <sc...@power-netz.de>.
> So, you can use the same class definition of a bean in two
> separate webapps
> if the class definition is in $TOMCAT_HOME/lib/apps...
> (or alternatively, in the WEB-INF/lib directories of your two webapps, but
> that is just wasted space). The webapps will create two separate instances
> of your bean.
I feared that :-(
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: TC and applicationwide beans
Posted by "Michael E. Locasto" <lo...@cs.columbia.edu>.
Tomcat 3.3.x provides the lib/apps directory (see the README file in there)
for Jar files that contains classes to be shared among all webapps.
Sessions are not cross-context. Sessions are specific to the webapp they are
created in for security reasons. Sessions are created via a
"request.getSession()" call in your servlet or JSP.
So, you can use the same class definition of a bean in two separate webapps
if the class definition is in $TOMCAT_HOME/lib/apps...
(or alternatively, in the WEB-INF/lib directories of your two webapps, but
that is just wasted space). The webapps will create two separate instances
of your bean.
Regards,
Michael
----- Original Message -----
From: "Power-Netz (Schwarz)" <sc...@power-netz.de>
To: "tomcat liste" <to...@jakarta.apache.org>
Sent: Monday, July 29, 2002 5:58 AM
Subject: TC and applicationwide beans
>
> Hi,
>
> can tomcat swap beans from one application to another if both use the
> classes?
>
> If I have a webapp A which granted access to the system and uses a login
> bean to store
> the data, does tc accept this bean ( in the same session ) on the webapp B
> with same classes?
> Or is a new session created if the user switches from one app to
another???
>
> (related to tc 3.3.2dev)
>
> Ihr Support-Team
>
> >>> POWER-NETZĀ®
> Full-Service-Provider <<<
>
> Online-Support:
> Support: 0190 - 15 11 15 (EUR 0,62/Min)
> http://Support.Power-Netz.de (kostenlos)
> http://Support.Power-Netz.com (kostenlos)
>
> Vertrieb Tel: 01805 - 57 35 57 (EUR 0,12/Min.)
> Vertrieb Fax: 01805 - 57 45 57 (EUR 0,12/Min.)
>
> Power-Netz
> Am Plan 1
> 37581 Bad Gandersheim
>
> http://www.Power-Netz.de
> mailto:info@Power-Netz.de
>
>
> +=========================================+
> <----------I N F O C E N T E R---------->
> + Senden Sie eine leere e-mail an:
> + Providerwechsel: mailto:Wechsel@Power-Netz.de
> + Daten/Preise Webspace: mailto:Webspace@Power-Netz.de
> + Reseller-Programm: mailto:Reseller@Power-Netz.de
> + Dedizierte Server: mailto:Server@Power-Netz.de
> + Adult/Erotikserver: mailto:Adult@Power-Netz.de
> + Domainpreise: mailto:Domain@Power-Netz.de
> + Domain-Nameserver: mailto:DNS@Power-Netz.de
> + SSL-Zertifikate: mailto:SSL@Power-Netz.de
> + Geschaeftsbedingungen: mailto:AGB@Power-Netz.de
> + =========================================+
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>