• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Different ContextRoot ..??

 
Karan V Praba
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have to access the servlet in the other context root in different server(not in the same Server/Container).Is it possible..?
Please give me an idea to solve this issue.
Thnaks in advance.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is running in the same cluster, you may still be able to use getServletContext().getContext("name of other context") to get a reference to the Servlet, but you may also need to enable this in security settings.... somewhere. (Sorry, I've done it, but I'm drawing a blank)
I'm not sure it's ever worth the effort though, and it's easier to just include the servlet code in your application.
Dave
[ December 15, 2003: Message edited by: David O'Meara ]
 
Mani Narain
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to access a servlet which is in a different sever,u could use sendRedirect() method...
 
Karan V Praba
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I don't want to use redirect method since all my response has to go from my first servlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic