Re: [JXTA user] Re: [jxta] [JXTA user] About create pipes between server and client.

"Ron Zohar" <[email protected]> Thu, 15 Sep 2005 16:42:59 +0200 (MEST)
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
I am also a newbee and had a hard time getting the discovery of my
advertisements work. I then took a look at the http://jxtanetmap.jxta.org/
project source code and copied the configuration from this project. I also
removed the usage of a group. Now my client has no problems finding the pipe
advertisement.

Refer also to my mail:
http://www.jxta.org/servlets/ReadMsg?list=user&msgNo=7242

The main problem I see is the question of Jxta configuration. I have
searched the jxta wiki, the jxta mailing list and jxta books but could not
find material on how the configuration affects the system. As you state I
also find it very difficult to understand "do I have to create my own group?
If I do then do I have to  have a rendezvous running in my group? things
like that..".

I find that Jxta has a wonderful API and is a well designed framework. But 
all developers I know have dismissed using it because they did not find
enough information on HOW TO and had given it up after some hours of trial
and error.

Ron


> --- Ursprüngliche Nachricht ---
> Von: Mark Griffin <[email protected]>
> An: [email protected]
> Betreff: Re: [JXTA user] Re: [jxta] [JXTA user] About create pipes between
> server and client.
> Datum: Wed, 14 Sep 2005 15:41:11 -0500
> 
> 
> For me, I don't think xml-rpc is the best place to point this guy.
> 
> What he's outlined should be a simple application.
> 
> What he's looking for are the steps to:  Start JXTA, look for your  
> group, if you're the server and you don't see your group then create/ 
> publish it.  Then discover and join the group. Then do the same thing  
> for a pipe advertisement (discover it and create in/out streams) or  
> create/publish it, then discover it. If you're the client then you  
> discover/join the group then discover the pipe and create in/out  
> streams.
> 
> Now, that said, I am new to JXTA/P2P and am stuck at the part where  
> I'm trying to publish a pipe advertisement in my own group. It  
> publishes ok but I never get a discovery event for my pipe  
> advertisement.
> 
> I'd like to get my steps correct and then try it from there.
> 
> Getting into this stuff it's not easy to figure out the states that a  
> server should go through to join a group and publish a socket. And,  
> likewise, the steps a client should go through to join the group and  
> discover the socket.  I've got the JXTA in a Nutshell book but I  
> can't tell where it's samples are dated now that we're working with  
> much newer releases of JXTA.
> 
> The jxta.org tutorials show the syntax of the separate steps but  
> don't make it clear, to me at least, the overall setup/connection flow.
> 
> Like, do I have to create my own group? If I do then do I have to  
> have a rendezvous running in my group? things like that..
> 
> 
> -Mark
> 
> 
> On Sep 14, 2005, at 3:02 PM, rzo wrote:
> 
> > Hi,
> >
> > take a look at jxta xmlrpc:
> > http://xmlrpc.jxta.org/doc/usersguide.html
> >
> > it is easy to use and will give you the client server function you are
> > looking for.
> >
> > Ron
> >
> > 查 杰 wrote:
> >
> >
> >> Hi,everyone, I am writing a simple program using pipe.
> >> There are two parts in the program:server and client. And I want to
> >> let them communicate with each other.
> >> The server side should run first, and it also have initiate a pipe to
> >> listen to the client's message.
> >> And then, the client send a message to the server, the server should
> >> get it and return it to the client.
> >> That's all.And I don't know how to initiate the pipe listening to the
> >> client's message.Should I create a unidirection or bidirection pipe?
> >> Could you show me the steps?
> >> And also, when there are many clients, the server should response to
> >> everyone, how can I make the server listen at several port,so the
> >> requests can be response at the same time?
> >> Please give me some simple code.Thank you!
> >>
> >> _________________________________________________________________
> >> 与联机的朋友进行交流,请使用 MSN Messenger: http:// 
> >> messenger.msn.com/cn
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner