Re: Transfer all HttpSessions from one cluster node to another

2009-02-11 Thread nlif
Filip, I've got a basic implementation of this. Since I didn't want to change Tomcat code, this is not the most elegant design. Here's what I've done: I created a ManualFailoverManager class, which extends StandardManager. This is a copy of the BackupManager, with these changes: 1) In the

Re: No URL rewriting when cookies are disabled

2009-02-08 Thread nlif
Yep, that was it exactly... I've been spoiled by frameworks :) I did some experimentation myself, and dug a little in framework code, and indeed, this has been taken care for me in the past, and I assumed it's done by Tomcat (or any servlet container, for that matter), but it isn't. Thanks,

Re: Transfer all HttpSessions from one cluster node to another

2009-01-28 Thread nlif
Thanks, Chris, Yes, this is an option, but we prefer being able to offload session at will. However, if that proves to be too difficult to do, we may settle for the behavior you describe. Naaman Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nilf, nlif

Re: Transfer all HttpSessions from one cluster node to another

2009-01-28 Thread nlif
Filip, Thanks. If you could elaborate some more, then maybe I can go ahead and implement this, and I'd be happy to send you the result, so you can use it and save yourself some of the work. Naaman Filip Hanik - Dev Lists wrote: nlif wrote: Hi all, We intend to run in a cluster

Transfer all HttpSessions from one cluster node to another

2009-01-25 Thread nlif
Hi all, We intend to run in a cluster, with stickiness enabled, and without replication. This of course does not give us failover capabilities, in case of a server crash, but it is sufficient for our needs. However, we would like to be able to transfer all sessions currently on one node, to

How to serve two docBases under the same context path

2008-10-23 Thread nlif
Hi all, I am using Tomcat 6, and I have the following problem: I am trying to separate the static content from the dynamic content of my application. In production, I intend to use Apache to serve the static content, and Tomcat to process requests to the application (mainly JSP's). This can be

RE: How to serve two docBases under the same context path

2008-10-23 Thread nlif
post. The problem stems from the decision to separate the web-app and static-content to two projects in SVN, and this is due to the fact that different people maintain them. Thanks anyway. Caldarale, Charles R wrote: From: nlif [mailto:[EMAIL PROTECTED] Subject: How to serve two docBases

Re: How to serve two docBases under the same context path

2008-10-23 Thread nlif
Schroeder-2 wrote: On Thu, Oct 23, 2008 at 7:56 AM, nlif [EMAIL PROTECTED] wrote: I am trying to separate the static content from the dynamic content of my application. In production, I intend to use Apache to serve the static content, and Tomcat to process requests to the application

Re: Problem serializing JDK dynamic proxies

2008-04-06 Thread nlif
Hi Chris, Thanks for the link. I found the following workaround: instead of placing my Proxy object in the HttpSession, I put it in a serializable wrapper class first, and then put the wrapper in the HttpSession. The wrapper overrides the default de-serialization to set a different class-loader

Problem serializing JDK dynamic proxies

2008-04-03 Thread nlif
Hi all, I am using Tomcat 6, and running in a cluster, with session-replication. When I put in the session a JDK dynamic proxy, the serialization fails, like so: Apr 3, 2008 2:09:24 PM org.apache.catalina.ha.session.DeltaManager messageReceived SEVERE: Manager [localhost#/users]: Unable to

Re: Problem serializing JDK dynamic proxies

2008-04-03 Thread nlif
Christopher Schultz-2 wrote: This doesn't look like the proxy is failing; it looks like the TestBean class is not available to the receiving Tomcat instance. This happens on the /other/ Tomcat, right (i.e. not the one where the object was put into the session)? Are you sure you put

Interacting with an embedded Tomcat

2007-08-29 Thread nlif
Hi, If I run Tomcat as embedded, is it possible for the application that contains Tomcat to interact with web-apps that run inside that Tomcat? For example, the external application, in addition to starting the embedded Tomcat, also manages other services, and the web-apps that runs inside the

Re: Interacting with an embedded Tomcat

2007-08-29 Thread nlif
on the external application and let the tomcat applications from webapps connect to it and exchange sweet talk on a mutually agreed protocol. On Wed, 2007-08-29 at 00:05 -0700, nlif wrote: Hi, If I run Tomcat as embedded, is it possible for the application that contains Tomcat to interact with web

Re: Interacting with an embedded Tomcat

2007-08-29 Thread nlif
on the returned ServletContext will help? Just a thought. Do let me know if it makes sense. Sonal On 8/29/07, nlif [EMAIL PROTECTED] wrote: Hmm, I guess I did not explain myself very well... I have an application, that acts as bootstrap: it creates and initializes various services