This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 93
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: 41073
    
  43
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 - my free Android networking tools app
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: 93
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.





 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to implement Inter site communication using servlet?
 
Similar Threads
Inter Portlet communication
IIOP question
Inter Portlet Communication in liferay using AJAX
url connection
Servlet Filter