RE: Session Objects

2005-02-08 Thread Peter Crowther
> From: Jagadeesha T [mailto:[EMAIL PROTECTED] 
>   I' am storing session objects in a SINGLEON class 
> object to keep all active sessions. Does it give any problems 
> in clustered enviornment since singleton is a static referrence.

Yes.  Singletons are one-per-classloader.  Classloaders are per-webapp,
per-virtual-machine.  So you will have one instance of your singleton
for each node in your cluster.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Session Objects

2005-02-08 Thread Dale, Matt

Yes it will, this won't work accross a cluster. You need to use the regular 
session manager.

Is there any reason why you put the sessions in a singleton?

Ta
Matt

-Original Message-
From: Jagadeesha T [mailto:[EMAIL PROTECTED]
Sent: 08 February 2005 17:25
To: tomcat-user@jakarta.apache.org
Subject: Session Objects


Hi all,
  I' am storing session objects in a SINGLEON class object to keep all 
active sessions. Does it give any problems in clustered enviornment since 
singleton is a static referrence.
 
Regards,
Jagga
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Session Objects

2005-02-08 Thread Shey Rab Pawo
Could you explain why this won't work across a cluster?  Thanks.


On Tue, 8 Feb 2005 17:28:59 -, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> Yes it will, this won't work accross a cluster. 
> Hi all,
>   I' am storing session objects in a SINGLEON class object to keep all 
> active sessions. Does it give any problems in clustered enviornment since 
> singleton is a static referrence.
> 
> Regards,
> Jagga
> 

-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Session Objects

2005-02-08 Thread Jagadeesha T
Thanks for responding.
 
To manage session between an apllication and web servers. Is there any way to 
get that worked in clustered enviornment?
 
Thanks 
Jagga


"Dale, Matt" <[EMAIL PROTECTED]> wrote:

Yes it will, this won't work accross a cluster. You need to use the regular 
session manager.

Is there any reason why you put the sessions in a singleton?

Ta
Matt

-Original Message-
From: Jagadeesha T [mailto:[EMAIL PROTECTED]
Sent: 08 February 2005 17:25
To: tomcat-user@jakarta.apache.org
Subject: Session Objects


Hi all,
I' am storing session objects in a SINGLEON class object to keep all active 
sessions. Does it give any problems in clustered enviornment since singleton is 
a static referrence.

Regards,
Jagga



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
Do you Yahoo!?
 All your favorites on one personal page – Try My Yahoo!

RE: Session Objects

2005-02-08 Thread Dale, Matt

It's not impossible to make this work over a cluster but not with the included 
clustering classes in tomcat. You would have to write your own clustering 
classes.

The reason why it won't work is that each singleton will be individual to a 
classloader and each tomcat accross the cluster will obviously have its own 
classloaders. The standard clustering only shares the sessions that are stored 
within the standard session manager in tomcat.

-Original Message-
From: Shey Rab Pawo [mailto:[EMAIL PROTECTED]
Sent: 08 February 2005 17:44
To: Tomcat Users List
Subject: Re: Session Objects


Could you explain why this won't work across a cluster?  Thanks.


On Tue, 8 Feb 2005 17:28:59 -, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> Yes it will, this won't work accross a cluster. 
> Hi all,
>   I' am storing session objects in a SINGLEON class object to keep all 
> active sessions. Does it give any problems in clustered enviornment since 
> singleton is a static referrence.
> 
> Regards,
> Jagga
> 

-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Session Objects

2005-02-09 Thread Mario Winterer
Hi!
Is it really necessary to hold all active session objects in a global 
variable? I can't imagine a situation that would require this!

Tex
Jagadeesha T wrote:
Thanks for responding.
To manage session between an apllication and web servers. Is there any way to 
get that worked in clustered enviornment?
Thanks 
Jagga

"Dale, Matt" <[EMAIL PROTECTED]> wrote:
Yes it will, this won't work accross a cluster. You need to use the regular 
session manager.
Is there any reason why you put the sessions in a singleton?
Ta
Matt
-Original Message-
From: Jagadeesha T [mailto:[EMAIL PROTECTED]
Sent: 08 February 2005 17:25
To: tomcat-user@jakarta.apache.org
Subject: Session Objects
Hi all,
I' am storing session objects in a SINGLEON class object to keep all active 
sessions. Does it give any problems in clustered enviornment since singleton is 
a static referrence.
Regards,
Jagga

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments.
Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
		
-
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Session Objects

2005-02-09 Thread nyhgan
 
Have you considered storing your session objects to database? 
 
 


Mario Winterer <[EMAIL PROTECTED]> wrote:Hi!

Is it really necessary to hold all active session objects in a global 
variable? I can't imagine a situation that would require this!

Tex

Jagadeesha T wrote:

>Thanks for responding.
> 
>To manage session between an apllication and web servers. Is there any way to 
>get that worked in clustered enviornment?
> 
>Thanks 
>Jagga
>
>
>"Dale, Matt" wrote:
>
>Yes it will, this won't work accross a cluster. You need to use the regular 
>session manager.
>
>Is there any reason why you put the sessions in a singleton?
>
>Ta
>Matt
>
>-Original Message-
>From: Jagadeesha T [mailto:[EMAIL PROTECTED]
>Sent: 08 February 2005 17:25
>To: tomcat-user@jakarta.apache.org
>Subject: Session Objects
>
>
>Hi all,
>I' am storing session objects in a SINGLEON class object to keep all active 
>sessions. Does it give any problems in clustered enviornment since singleton 
>is a static referrence.
>
>Regards,
>Jagga
>
>
>
>__
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>Any opinions expressed in this E-mail may be those of the individual and not 
>necessarily the company. This E-mail and any files transmitted with it are 
>confidential and solely for the use of the intended recipient. If you are not 
>the intended recipient or the person responsible for delivering to the 
>intended recipient, be advised that you have received this E-mail in error and 
>that any use or copying is strictly prohibited. If you have received this 
>E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED]
>Unless expressly stated, opinions in this email are those of the individual 
>sender and not beCogent Ltd. You must take full responsibility for virus 
>checking this email and any attachments.
>Please note that the content of this email or any of its attachments may 
>contain data that falls within the scope of the Data Protection Acts and that 
>you must ensure that any handling or processing of such data by you is fully 
>compliant with the terms and provisions of the Data Protection Act 1984 and 
>1998.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
> 
>-
>Do you Yahoo!?
> All your favorites on one personal page ? Try My Yahoo!
> 
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'