Struts Action on a different application server
1 posts in topic
Flat View  Flat View

Posted By:   akhilesh_singh
Posted On:   Wednesday, May 19, 2004 09:26 AM

Hpw do I redirect Action on a different Application Server


I've deployed a war on two different application server (server1 and server2), with the same copy of struts code and struts_config.xml.

Each request to our web site comes to the server1 and the redirected to server2. However, when the struts form is submitted on server2, it always comes back to the action servlet of server1.

Is there any way to force the application to go to the Action class of server1

Re: Struts Action on a different application server

Posted By:   Sean_Owen  
Posted On:   Wednesday, May 19, 2004 11:28 AM

This sounds like a load balancer issue or something, not a Struts issue. If something is redirecting all requests to server1 first, then, well, all requests are going to go to server1 first -- there's your problem!

Are you trying to balance load between two servers, so that all requests relating to one user's session go to the same server? That is possible, but you need to check your load balancer's configuration so that it is "pinning" sessions to one instance. This is a sort of thing that has to be explicitly configured.

If that's not the issue, maybe you can explain your problem in more detail?

About | Sitemap | Contact