Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can we share any information between two web application  RSS feed

 
Chidanand Chauhan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anybody solve my problem that how can we share information(Can be string or int) between the two web application.

Thanks,
Chidanand Chauhan
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One option would be, with the help of a database.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or a shared file, or a JNDI repository, or using JMS messaging, or a JavaSpace, or direct process communication such as a named pipe, or sending HTTP requests to each other, or by email, or using a third web application as a "dead letter box", or ...

There are so many choices.

To help you decide between them we really need to know more about what information you need to transfer, how big it is and how often it will need to be transferred, and what the two app servers have in common (are they running in the same VM? are they on the same machine? are they on the same network? etc.)

In general, the more you can tell us, the more we can help.
 
Chidanand Chauhan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frank:

Yes the two webapps resides in the same VM. and we just wanna to share the String.
 
Chidanand Chauhan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi MyActual qurey is suppose i have two different servlet resides in two different webapps then how do they share their information.
please help me.
 
Ben Wood
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe Adeel and Frank just gave you some suggestions of possible ways of doing this.

Have you looked into any of these? What about writing the values to a shared database as Adeel suggests?
[ November 25, 2005: Message edited by: Ben Wood ]
 
aditya seth
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We also faced same situation in our project.
we used URLConnection and used streams to write and read data.
This is think is very much easy.
Just check the forum i had posted code for this around 2 weeks back.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!