Dear All,

I would like to send a request from one WAR (application) to another 
WAR(application) ....

Ex: 
--------------------------------------------------------------------------------------CODE
 => THIS IS A CODE EXCERPT FROM SERVLET DEPLOYED UNDER A CONTEXT 'XYZ'
 
ServletContext ctx = getServletContext().getContext("abc");
     RequestDispatcher rd = null;
     if(ctx!=null)
      rd = ctx.getRequestDispatcher("login.jsp");
     else
      out.println("OOPPPS!!! abc Context is null...");
     
     
     if(rd!=null)
      rd.forward(req,response);
     else
      out.println("OOPPPS!!! RequestDispatcher is null..");
--------------------------------------------------------------------------------------
Following are the jboss-web.xml files for two applications

'xyz' context : <jboss-web>
<virtual-host>initial.test.com</virtual-host>
<context-root>/xyz</context-root>
</jboss-web>

'abc' context:
<jboss-web>
<virtual-host>initial.test.com</virtual-host>
<context-root>/abc</context-root>
</jboss-web>

------------------------------------------------------------------------

I remember a similar kind of functionality in Tomcat where in server.xml we 
have to set 'crossContext=true'.

Can any one tell me how can i acheive the same thing in JBOSS?

Thanks in advance.

Kind Regards,
prakalp

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911354#3911354

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911354


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to