• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to do Communication between two web applications

 
Prafulla N. Patil
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

any idea about how to do Communication between two web applications?

Thanks in advance
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many ways.
The right one for you depends on what you're doing and where the applications are located.
If you search this forum you'll find that this question is asked and answered a lot here.
 
Cristian Popovici
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way is to use the crossContext atribute in your context.xml file.

 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this part of the spec or something proprietary for a certain web container implementation?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Ku:
is this part of the spec or something proprietary for a certain web container implementation?

Not part of specification and I think its only available to Tomcat.
 
paritosh ranjan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way to communicate is through the ServletContext of different web applications.Firstly you will have to get the ServletContext of different web applications.You can get the ServletContext of another web application by using this.getServletContext().getContext(uripath),and use this ServletContext which is of another web application to share objects and this way you will be able to communicate through them.
There may be more and better ways to do this,I am just specifying one.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to throw a few other methods into the mix: mail, JMS, database, files, web service, HTTP -which probably would be the most natural for a web application-, ...

As was mentioned before, you'll find this discussed plenty of time if you search through old posts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic