Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement Inter site communication using servlet?

 
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any body explain how to implement inter-site communication using servlet ?

Scenario:

I have one Object or XML file which is part of website A and want to transfer it to website B.

Kind of Data Push and Pull mechanism.

Is it possible to implement without using web service.

Thanks in advance,
Bhavesh
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are lots of ways: RMI, email, messaging (JMS), file, database, HTTP, raw TCP/IP, etc. etc. Which of these might make sense (or are even possible) depends on the circumstances.
 
Vish Shukla
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bhavesh,

This can be achieved using EJB session beans. EJB3 session beans can be exposed as web service, remote method or local method. Use servlet as EJB client. Using web service, client can be any application .NET application, remote think client application in any language or any web application or mobile application. In case of Remote EJB, client can be any client in java.

This may help. http://www.coderanch.com/t/468498/Web-Services/java/Design-Pattern-Migrate-BL-As
 
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vish,

I have figured that WebServices are the most suggested technology for inter site communication.

So, Right now I have started to get my hands on the WebServices along with the Plain Java Beans.

Could you please suggest me reference or guide that make me learn it quickly which also makes my basic required fundamental clear ?

Regards,
Bhavesh Shah.





 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic