Re: How does Tomcat manage sesssions ?

2004-05-27 Thread Xavier MOGHRABI
Hello,
That solution doesn't pleased me a lot because I want to store the
session for all deployed context. How can I do that ?
   

Put the Manager inside the Host, not the Context.
 

I did it in the host but it doesn't seem to work. I don't see any 
Session stored in my database.
Do you know how can I ask Tomcat which Manager he is using ?

Thanks for your precious help.
Xavier


RE: How does Tomcat manage sesssions ?

2004-05-27 Thread Shapira, Yoav

Hi,

>That solution doesn't pleased me a lot because I want to store the
>session for all deployed context. How can I do that ?

Put the Manager inside the Host, not the Context.

>I have an other question : should I write something in my servlet to
>recover a session for example after a crash or does tomcat do it
>automatically ?

Depends on the type of crash.  It's safe to assume if tomcat can't
recover the session, you won't be able to either, so don't waste time
writing such code.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: How does Tomcat manage sesssions ?

2004-05-27 Thread Xavier MOGHRABI
I used that example to write my Manager config. However when the manager 
is nested inside the host it doesn't look to work since I don't have any 
row in my database.
So I nest the manager in a context as below, and I can see my sessions 
in the database.


...

   
   
   sessionAppCol="app_name"
   sessionDataCol="session_data"
   sessionIdCol="session_id"
   sessionLastAccessedCol="last_access"
   sessionMaxInactiveCol="max_inactive"
   sessionTable="DBA.tomcat_sessions"
   sessionValidCol="valid_session"/>




That solution doesn't pleased me a lot because I want to store the 
session for all deployed context. How can I do that ?

I have an other question : should I write something in my servlet to 
recover a session for example after a crash or does tomcat do it 
automatically ?

Thanks a lot
Xavier
Shapira, Yoav a écrit :
Hi,
 

I've read all the server.xml file and there is no marks of the Manager
configuration.
   

The example was removed a while ago, but you can still see it in older
versions of server.xml by going to the CVS or downloading an old
release:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/c
onf/server.xml?annotate=1.2 for example has a complete example of a
persistent manager commented out.
 

I saw in the documentation that "A Manager element MAY be nested inside
a Context component". And In the server.xml there aren't any contexts.
   

It MAY be nested inside a Context, but doesn't have to be.  It can be
inside a Host or an Engine, both of which are more common than having a
Manager inside a Context.
 

So don't you think that the file to be configured must be
${CATALINA_HOME}\conf\Catalina\localhost\manager.xml ?
   

No, that's for tomcat's Manager webapp, which is not the same thing as
the session Manager.  I realize the names might be confusing.
 

By the way, don't you have an example ?
   

We used to ship one with tomcat in server.xml, so see above for
accessing older versions of that file.
Yoav Shapira

This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




Re: How does Tomcat manage sesssions ?

2004-05-26 Thread Veniamin Fichin
Xavier MOGHRABI wrote:
Hi,
I've read the documentation but I don't understand clearly where can I 
configure TOmcat to use *PersistentManager* instead of *StandardManager*.

Do you know it ?
   Shortly:

 
 
  
 
 

   By the way, I wrote this lines to disable default manager behavoiur 
to store sessions between server shutdown/startup. But SESSIONS.ser is 
still appearing, can anybody explain this?

Xavier
Shapira, Yoav a écrit :
Hi,
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html
http://jakarta.apache.org/tomcat/faq/misc.html#persist
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Xavier MOGHRABI [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 11:29 AM
To: Tomcat Users List
Subject: How does Tomcat manage sesssions ?
Hello,
I'm instested to know how does Tomcat manage user sessions. I'd like to
build a robust application that can survive after server's crashes.
Thereby, I'd like that the application is able to recover the session
  
to
 

allow users to go on their work where they were.
I've searched information on tomcat's website and I've read that in
using clustering features it would be possible to share sessions with
differents Tomcat instances by storing them in a shared storage such as
DBMS or XML file.
Thus, I thought my application could save sessions in a DBMS to recover
them after crashes or network failure. However I don't know how to do
this. Does somebody could bring me more documentation or tell me more
about it.
I would like to know :
- how should I configure Tomcat for doing that ?
- how tomcat save sessions and what does it do of objets linked to the
session ?
- how can I recover sessions and get it back to the right user?
Thanks for your help.
Xavier
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  


This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

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

 



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


RE: How does Tomcat manage sesssions ?

2004-05-26 Thread Shapira, Yoav

Hi,

>I've read all the server.xml file and there is no marks of the Manager
>configuration.

The example was removed a while ago, but you can still see it in older
versions of server.xml by going to the CVS or downloading an old
release:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/c
onf/server.xml?annotate=1.2 for example has a complete example of a
persistent manager commented out.

>I saw in the documentation that "A Manager element MAY be nested inside
>a Context component". And In the server.xml there aren't any contexts.

It MAY be nested inside a Context, but doesn't have to be.  It can be
inside a Host or an Engine, both of which are more common than having a
Manager inside a Context.

>So don't you think that the file to be configured must be
>${CATALINA_HOME}\conf\Catalina\localhost\manager.xml ?

No, that's for tomcat's Manager webapp, which is not the same thing as
the session Manager.  I realize the names might be confusing.

>By the way, don't you have an example ?

We used to ship one with tomcat in server.xml, so see above for
accessing older versions of that file.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: How does Tomcat manage sesssions ?

2004-05-26 Thread QM
On Wed, May 26, 2004 at 03:09:23PM +0200, Xavier MOGHRABI wrote:
: I've read all the server.xml file and there is no marks of the Manager 
: configuration.

You should check out a stock server.xml, then -- it sounds like yours has
been customized and trimmed.  Read on:


: I saw in the documentation that "A Manager element MAY be nested inside 
: a Context component". And In the server.xml there aren't any contexts.

Either you're using the default settings of autoDeploy and/or
deployOnStartup (so you'll have to create  tags yourself), or all
of your webapps use a file named "context.xml" for their per-context
settings (in which case you must update context.xml).


: So don't you think that the file to be configured must be 
: ${CATALINA_HOME}\conf\Catalina\localhost\manager.xml ?

No, the "Context" in question refers to the "" element of
server.xml (or context.xml, depending on your setup).

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com

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



Re: How does Tomcat manage sesssions ?

2004-05-26 Thread Xavier MOGHRABI
It's nice to answer me but I didn't catch you.
I've read all the server.xml file and there is no marks of the Manager 
configuration.

I saw in the documentation that "A Manager element MAY be nested inside 
a Context component". And In the server.xml there aren't any contexts.

So don't you think that the file to be configured must be 
${CATALINA_HOME}\conf\Catalina\localhost\manager.xml ?

By the way, don't you have an example ?
X
Shapira, Yoav a écrit :
Hi,
Yes, I know it: in server.xml.  Take a close read through that file, it contains 
further comments on configuring the session manager.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Xavier MOGHRABI [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 6:32 AM
To: Tomcat Users List
Subject: Re: How does Tomcat manage sesssions ?
Hi,
I've read the documentation but I don't understand clearly where can I
configure TOmcat to use *PersistentManager* instead of *StandardManager*.
Do you know it ?
Xavier
Shapira, Yoav a écrit :
   

Hi,
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html
http://jakarta.apache.org/tomcat/faq/misc.html#persist
Yoav Shapira
Millennium Research Informatics

 

-Original Message-
From: Xavier MOGHRABI [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 11:29 AM
To: Tomcat Users List
Subject: How does Tomcat manage sesssions ?
Hello,
I'm instested to know how does Tomcat manage user sessions. I'd like to
build a robust application that can survive after server's crashes.
Thereby, I'd like that the application is able to recover the session
   

to
 

allow users to go on their work where they were.
I've searched information on tomcat's website and I've read that in
using clustering features it would be possible to share sessions with
differents Tomcat instances by storing them in a shared storage such as
DBMS or XML file.
Thus, I thought my application could save sessions in a DBMS to recover
them after crashes or network failure. However I don't know how to do
this. Does somebody could bring me more documentation or tell me more
about it.
I would like to know :
- how should I configure Tomcat for doing that ?
- how tomcat save sessions and what does it do of objets linked to the
session ?
- how can I recover sessions and get it back to the right user?
Thanks for your help.
Xavier
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


This e-mail, including any attachments, is a confidential business
 

communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender.  Thank you.
   

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


 



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




RE: How does Tomcat manage sesssions ?

2004-05-26 Thread Shapira, Yoav

Hi,
Yes, I know it: in server.xml.  Take a close read through that file, it contains 
further comments on configuring the session manager.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Xavier MOGHRABI [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 26, 2004 6:32 AM
>To: Tomcat Users List
>Subject: Re: How does Tomcat manage sesssions ?
>
>Hi,
>
>I've read the documentation but I don't understand clearly where can I
>configure TOmcat to use *PersistentManager* instead of *StandardManager*.
>
>Do you know it ?
>
>Xavier
>
>Shapira, Yoav a écrit :
>
>>Hi,
>>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html
>>http://jakarta.apache.org/tomcat/faq/misc.html#persist
>>
>>Yoav Shapira
>>Millennium Research Informatics
>>
>>
>>
>>
>>>-Original Message-
>>>From: Xavier MOGHRABI [mailto:[EMAIL PROTECTED]
>>>Sent: Tuesday, May 25, 2004 11:29 AM
>>>To: Tomcat Users List
>>>Subject: How does Tomcat manage sesssions ?
>>>
>>>Hello,
>>>
>>>I'm instested to know how does Tomcat manage user sessions. I'd like to
>>>build a robust application that can survive after server's crashes.
>>>Thereby, I'd like that the application is able to recover the session
>>>
>>>
>>to
>>
>>
>>>allow users to go on their work where they were.
>>>
>>>I've searched information on tomcat's website and I've read that in
>>>using clustering features it would be possible to share sessions with
>>>differents Tomcat instances by storing them in a shared storage such as
>>>DBMS or XML file.
>>>
>>>Thus, I thought my application could save sessions in a DBMS to recover
>>>them after crashes or network failure. However I don't know how to do
>>>this. Does somebody could bring me more documentation or tell me more
>>>about it.
>>>I would like to know :
>>>- how should I configure Tomcat for doing that ?
>>>- how tomcat save sessions and what does it do of objets linked to the
>>>session ?
>>>- how can I recover sessions and get it back to the right user?
>>>
>>>Thanks for your help.
>>>
>>>Xavier
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>>
>>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an) intended
>recipient, please immediately delete this e-mail from your computer system
>and notify the sender.  Thank you.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: How does Tomcat manage sesssions ?

2004-05-26 Thread Xavier MOGHRABI
Hi,
I've read the documentation but I don't understand clearly where can I 
configure TOmcat to use *PersistentManager* instead of *StandardManager*.

Do you know it ?
Xavier
Shapira, Yoav a écrit :
Hi,
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html
http://jakarta.apache.org/tomcat/faq/misc.html#persist
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Xavier MOGHRABI [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 11:29 AM
To: Tomcat Users List
Subject: How does Tomcat manage sesssions ?
Hello,
I'm instested to know how does Tomcat manage user sessions. I'd like to
build a robust application that can survive after server's crashes.
Thereby, I'd like that the application is able to recover the session
   

to
 

allow users to go on their work where they were.
I've searched information on tomcat's website and I've read that in
using clustering features it would be possible to share sessions with
differents Tomcat instances by storing them in a shared storage such as
DBMS or XML file.
Thus, I thought my application could save sessions in a DBMS to recover
them after crashes or network failure. However I don't know how to do
this. Does somebody could bring me more documentation or tell me more
about it.
I would like to know :
- how should I configure Tomcat for doing that ?
- how tomcat save sessions and what does it do of objets linked to the
session ?
- how can I recover sessions and get it back to the right user?
Thanks for your help.
Xavier
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 




RE: How does Tomcat manage sesssions ?

2004-05-25 Thread Shapira, Yoav

Hi,
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html
http://jakarta.apache.org/tomcat/faq/misc.html#persist

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Xavier MOGHRABI [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 25, 2004 11:29 AM
>To: Tomcat Users List
>Subject: How does Tomcat manage sesssions ?
>
>Hello,
>
>I'm instested to know how does Tomcat manage user sessions. I'd like to
>build a robust application that can survive after server's crashes.
>Thereby, I'd like that the application is able to recover the session
to
>allow users to go on their work where they were.
>
>I've searched information on tomcat's website and I've read that in
>using clustering features it would be possible to share sessions with
>differents Tomcat instances by storing them in a shared storage such as
>DBMS or XML file.
>
>Thus, I thought my application could save sessions in a DBMS to recover
>them after crashes or network failure. However I don't know how to do
>this. Does somebody could bring me more documentation or tell me more
>about it.
>I would like to know :
>- how should I configure Tomcat for doing that ?
>- how tomcat save sessions and what does it do of objets linked to the
>session ?
>- how can I recover sessions and get it back to the right user?
>
>Thanks for your help.
>
>Xavier
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: How does Tomcat manage sesssions ?

2004-05-25 Thread Filip Hanik - Dev
look into the PersistanceManager, that will store the session in a DB for you

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html

Filip

- Original Message - 
From: "Xavier MOGHRABI" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 25, 2004 10:29 AM
Subject: How does Tomcat manage sesssions ?


Hello,

I'm instested to know how does Tomcat manage user sessions. I'd like to 
build a robust application that can survive after server's crashes. 
Thereby, I'd like that the application is able to recover the session to 
allow users to go on their work where they were.

I've searched information on tomcat's website and I've read that in 
using clustering features it would be possible to share sessions with 
differents Tomcat instances by storing them in a shared storage such as 
DBMS or XML file.

Thus, I thought my application could save sessions in a DBMS to recover 
them after crashes or network failure. However I don't know how to do 
this. Does somebody could bring me more documentation or tell me more 
about it.
I would like to know :
- how should I configure Tomcat for doing that ?
- how tomcat save sessions and what does it do of objets linked to the 
session ?
- how can I recover sessions and get it back to the right user?

Thanks for your help.

Xavier


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


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