Link to home
Start Free TrialLog in
Avatar of mlps_umesh
mlps_umeshFlag for United States of America

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.
Avatar of mlps_umesh
mlps_umesh
Flag of United States of America image

ASKER

Just spelling mistake in earlier question..:)
ASKER CERTIFIED SOLUTION
Avatar of bpmurray
bpmurray
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yah...Solution I got was not exactly I was looking for. But definately pointing me to right direction.