Skip to main content

RMI or Web Service to implement P2P ????

4 replies [Last post]
yasseen
Offline
Joined: 2009-05-31

Hi mates

Actually I'm going to develop an P2P information sharing system and I'm confused whether I use RMI or Web Service to implement this system.
I'll relay on XML document to be sent among peers .

could you help me please to select on of those two methods : RMI or Web Service .

for Web Service : Do I have to install Tomcat server in each peer ?

Thanks a lot .

Yasseen

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
origama
Offline
Joined: 2007-04-19

Hi yasseen,
isn't jxta enough for your purpouse?

yasseen
Offline
Joined: 2009-05-31

Hi origama

Thank you for your reply

Yes , I' going to rely on JXTA . however , which technique can I use with JXTA platform RMI or Web service ?

Regards

origama
Offline
Joined: 2007-04-19

HI,
I'm not sure I've understood. JXTA already provide mechanisms for the comunication between peers (pipes) which already rely on XML messages. If you want to implement other mechanisms to communicate with other entities, i think that you have to choose between a JAVA-only technology (RMI) or a widely used technology (webservice).

There is an implementation of soap upon jxta, you could take a look https://soap.dev.java.net/ .

I don't know if i've answered to your question, feel free to ask again.

Origama.

yasseen
Offline
Joined: 2009-05-31

Hi Origama

Thank you so much ..
I have been reading for a week about RMI , Socket , web service and I just realized that my reading was useless :(.
anyway I have got some questions that may clarify the story :

1- You've said that JXTA is another mechanism that differs from web service .. what do you advise me JXTA or web service to p2p information sharing system.

2- If I wanted to use JXTA , would be easy to deal with XML documents ?

best wishes

Yasseen