hello I am doing one appliocation for sending one messege from my tomcat to other tomcat in LAN. can i do this ? please give me some hint .
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35249
7
posted
0
Sure. HTTP would seem simplest since both servers are obviously equipped to handle it, but many other options exist: Mail, JMS, shared file system, database, sockets, web service, ...
Through mail how can we do this ? My application is client-server(request-response) type. if suppose there 3 machines in network ,then they should communicate with each other ,having inbox(mail saved ) on their machines.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35249
7
posted
0
Obviously, there would need to be a mail server that all machines can access. The client access to that server can be handled using the JavaMail API.
I think that HTTP would be far easier to implement, though, and have other advantages (like synchronicity). [ August 07, 2008: Message edited by: Ulf Dittmer ]
There is the Java Mail API for mail communication, but if you need to communicate among two servers (or a client and a server), then I think that HTTP is the best way
[edit] Well Ulf said it before me although his post was not visible the time I posted.And since we both are saying the same thing then it must be right [/edit] [ August 07, 2008: Message edited by: Amit Ghorpade ]