mlps_umesh
asked on
How to redirect a request to different servlets by identifying URL patterns in JBoss
Hi,
I am working on writing a Servlet that will route requests to appropriate servers received from differnt clients based on URLs received in request. Target deployment environment is JBoss for Servlet. Client can be a WebService response (XML Text). Any one can provide a sample code or base code for reference.
I am working on writing a Servlet that will route requests to appropriate servers received from differnt clients based on URLs received in request. Target deployment environment is JBoss for Servlet. Client can be a WebService response (XML Text). Any one can provide a sample code or base code for reference.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks bpmurray for reply. As you pointed out, JBOSS web.xml is confirmed to J2EE standards for Web Deployment and change in web.xml will resolve routing issue. My problems was bit different. In real word, I am getting a response from WebService as XML. XML will contain different URLs that, I need to redirect. My approach for this problem is to write a servlet that will actually do pattern matching to take out URL's in response and route them to differnt servers. Instead of doing any parsing and redirection manually (thr' servlet code), can any one provide better approach which will give a portable solution like use of JBOSS feature like RewriteValve or similar.
May be, I was not very clear with question.
May be, I was not very clear with question.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yah...Solution I got was not exactly I was looking for. But definately pointing me to right direction.
ASKER