Re: Is possible to create to a OutputPipe direct a peer?

Antonio Carlos <[email protected]>
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
Mohamed,
 in my question i´'m trying to use a 2 pipe ( one input other output), because i need to send a string (an clause select sql) and peerid from peer "A", to execute the string in other peer "B" ( this is ok ) and peer "B" to return, in this moment to test, other string.... In return, i'm try to create this OutputPipe direct a peer with peerid that peer B received (in message).
 But, i didn´t create the OutputPipe direct a peer.
 
PS: i increased the timeout .... but the exception continue...
op=pipe.createOutputPipe(pipeAdv2,peers.elements(),60000);  

Mohamed Abdelaziz <[email protected]> escreveu:
yes it is possible. increase the timeout a bit to allow for peer route 
resolution, you also may utilize the asynchronous based API instead (see 
the tutorial PipeExample for reference)

Mohamed

-- 

http://blogs.sun.com/roller/page/hamada
http://weblogs.java.net/blog/hamada



Antonio Carlos wrote:

> I´m 2.3.3 and i would like know if is possible to create to a 
> OutputPipe direct a peer?
> I trying and a exception is created "Output Pipe could not be resolved 
> after 6000"
> Vector peers= new Vector(1);
> OutputPipe op = null;
> peers.add(idPeer);
> System.out.println("Waiting....");
> op=pipe.createOutputPipe(pipeAdv2,peers.elements(),6000);
> My peers was idpeer has this code : 
> urn:jxta:uuid-59616261646162614A7874615032503378FBF1C79DDF40E7AB37A0E9A17D106B03 
> ad was created in this mode, where i sent the uid with a element 
> string from message...
> RETRIVING idPeer...
> idPeer= (PeerID)PeerID.create( 
> java.net.URI.create(msgElement.toString()));
>
> Thanks!



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


		
---------------------------------
Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.