aspose file tools*
The moose likes Servlets and the fly likes How to implement Inter site communication using servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to implement Inter site communication using servlet?" Watch "How to implement Inter site communication using servlet?" New topic
Author

How to implement Inter site communication using servlet?

Bhavesh Dak
Ranch Hand

Joined: Jun 27, 2009
Posts: 91
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


SCJP 6(83%), SCWCD 5.0(100%)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Vish Shukla
Ranch Hand

Joined: Oct 12, 2008
Posts: 111
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


Thanks & Regards,
Vishal S Shukla (SCJP 93%, SCWCD 94%, SCBCD 100%)
Bhavesh Dak
Ranch Hand

Joined: Jun 27, 2009
Posts: 91
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.





 
wood burning stoves
 
subject: How to implement Inter site communication using servlet?
 
Similar Threads
Inter Portlet communication
IIOP question
url connection
Servlet Filter
Inter Portlet Communication in liferay using AJAX