The Artima Developer Community
Sponsored Link

Java Answers Forum
servlet to servlet communication

2 replies on 1 page. Most recent reply: Jul 22, 2004 6:56 AM by Jeroen Wenting

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
sureshavvai

Posts: 1
Nickname: sureshavva
Registered: Jun, 2004

servlet to servlet communication Posted: Jun 29, 2004 10:45 PM
Reply to this message Reply
Advertisement
when one servlet is running on one web server and another servlet is running on different server.

How to communication among those. whether i can use the servlet-applet-servlet communication or any other way to communication between servlet to servlet.

Thaks for your reply


vijaya

Posts: 5
Nickname: vijji
Registered: Dec, 2002

Re: servlet to servlet communication Posted: Jul 20, 2004 6:21 AM
Reply to this message Reply
You can not communicate two servlets from different servers.You can communcate servlet from different contexts.

You can do like this, when servlets are with in server but different contexts or with in the same context.

RequestDispatcher requestdispatcher = ServletContext.getRequestDispatcher("AnotherServlet.servlet");

requestdispatcher.forward(request,response);or requestdispatcher .include(request,response);

Hope it may be useful to u.

Thanks & Regards
Vijaya.

Jeroen Wenting

Posts: 88
Nickname: jwenting
Registered: Mar, 2004

Re: servlet to servlet communication Posted: Jul 22, 2004 6:56 AM
Reply to this message Reply
The only way to communicate between them is through HTTP requests (unless you provide some custom communication protocol using TCP or UDP yourself).

Flat View: This topic has 2 replies on 1 page
Topic: copile problems. Previous Topic   Next Topic Topic: WfMS and Jbpm...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use