• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Application level communication

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have designed two web applications using servlets. Can servlet of one web application communicate with servlet of another web application
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends on what you mean by communicate.

Can you tell us what you're trying to do?
 
Vrushali Gore
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to send some data from servlet in one web application to servlet in another web application.

Let's say I am having 2 webapps like abc.war(having servlet A) & xyz.war(having servlet B) so from now servlet A data is to be transferred to servlet B

Thanks for your reply.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are any number of ways: HTTP (which might be easiest), shared files, web service, JMS, Email, shared DB, TCP/IP, ...

Direct access to objects or sessions in another web app can be enabled on some servlet engines, but is server-specific. For Tomcat, have a look at the crossContext attribute of the Context. It enables the use of RequestDispatchers across web apps.
[ August 24, 2006: Message edited by: Ulf Dittmer ]
 
Vrushali Gore
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply.
Do Tomcat only provides the way? Servlet technology is not having any approach to this. Suppose if two webapps are running in the same webserver or two webapps are running in differnet servers do i will have to go for some other mechanism?

If you can elaborate your answer more i would be very thankful to you.

Thnaks once again.
 
reply
    Bookmark Topic Watch Topic
  • New Topic