This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need to intercept requests meant for webapp1 and filter them through webapp2  RSS feed

 
Abhineet Kapil
Ranch Hand
Posts: 52
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a webapp1 deployed in an application server with context say /WebApp1 .

Now I want to write another webapp2 and deploy in the same server.

And I want to intercept the requests meant for webapp1 ( /WebApp1) and filter them through webapp2 servlet.

Is there any remote possibility of such kind of interception ?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37230
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You can forward the requests from web app 1 to web app 2. But the apps have different context roots so one app can't handle requests under the other context root.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best you can do is a redirect.
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,


you can use the crosscontext to pass the values between two web applications.

Regards
Jatan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!