Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
AW: AW: Tomcat 5.5 Cluster: Session Replication before sending the response

AW: AW: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-16       - By Andy.Scherzinger@(protected)

 Back
Reply:     1     2  

Hi Filip,

I understand that I will just change the session in a way the delta manager
will replicate everything.
But is there no other Manager I can use which just replicates the complete
session and not just the changed data (like the DeltaManager does)?!

I couldn't find a Manager which replicates everything. Is there one?

Thanks in advance!

Andy


-- --Urspr?ngliche Nachricht-- --
Von: Filip Hanik - Dev Lists [mailto:devlists@(protected)]
Gesendet: Dienstag, 16. Januar 2007 15:35
An: Tomcat Users List
Betreff: Re: AW: Tomcat 5.5 Cluster: Session Replication before sending the
response

even with this method, you are not managing the sessions, you're just making
sure that everything gets replicated, so doing this, you are not changing the
session manager.
remember, the code below would be inserted into a filter or a valve

Filip

wrote:
> Hi Filip,
>
> Thanks for your answer. I also thought about this solution of just setting
all objects again at the end of the doGet method.
> But if possible I would like to use a tomcat replication mechanism
> since I do not want to "manage" session since I have a tomcat-built-in
> session manager :)
>
> Andy
>
> -- --Urspr?ngliche Nachricht-- --
> Von: Filip Hanik - Dev Lists [mailto:devlists@(protected)]
> Gesendet: Mittwoch, 10. Januar 2007 16:52
> An: Tomcat Users List
> Betreff: Re: Tomcat 5.5 Cluster: Session Replication before sending
> the response
>
> to achieve what you want, although slower, you can create a filter,
> and in that filter simply set all the attributes again
>
> Enumeration e = session.getAttributeNames(); while ( e.hasNext() ) {
>   String name = e.next();
>   Object value = session.getAttribute(name);
>   if ( value != null ) session.setAttribute(name,value); }
>
> you get the point :)
>
> Filip
>
> wrote:
>
>> Hi everybody,
>>
>> I have a Tomcat 5.5 cluster with 2 nodes on SLES8 and want to replicate the
complete session before the response is send. According to the Tomcat
Clustering documentation the example with the DeltaManager does this since the
ReplicationValve triggers the replication after the request has been processed
and before the response is sent.
>>
>> Unfortunately the DeltaManager only replicates the changed data. Only
changes made by using methods like setAttribute make changes visible to the
DeltaManager and changes made to the object (like changing one field value noch
setAttribute-call) do not.
>> Thus I would need to change the way these objects are handled in the
application. So I thought it would be the easiest way to just replicate the
complete session instead of changes only. Is this possible?
>>
>> JavaDoc of org.apache.catalina.session.StandardManager Source code of org.apache.catalina.session.StandardManager:
>> "Standard implementation of the Manager interface that provides simple
session persistence across restarts of this component (such as when the entire
server is shut down and restarted, or when a particular web application is
reloaded."
>>
>> This sounds like the session is only replicated when the server ist shutdown
/restarted/app reloaded. It also doesn't specify what is replicated - the
complete session?
>>
>> Any suggestions?
>>
>> Thanks in advance
>> --Andy


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail:
users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.