RE: [Beepcore-java-users] Piggyback data API deprecated.
Status: Beta
Brought to you by:
huston
|
From: Wladimir A. <wa...@ju...> - 2004-07-26 13:28:58
|
These methods have been deprecated, yes. For you to piggyback
data you can do the following:
send it with (Session):
public Channel startChannel(String profile, boolean
base64Encoding,
String data)
throws BEEPException, BEEPError;
you'll get it on the other side with (Channel):
public void startChannel(Channel channel, String
encoding, String data)
throws StartChannelException;
There was (is), however, a problem with the SessionImpl start-up
(processStartChannel). I had submitted a fix a while ago, but I don't
know the status of where it went. I am attaching my previous message
with the fix. The detail is that you must send back some data (using
setStartChannel). That solved my problem. Maybe you can improve the fix
in the case no reply is sent.
I hope it helps. Detail: I still use the deprecated methods.
Cheers,
Wladimir de Lara Araujo Filho
Juniper Networks, Inc.
-----Original Message-----
From: bee...@li...
[mailto:bee...@li...]On Behalf Of
Greg Wilkins
Sent: Sunday, July 25, 2004 10:49 PM
To: bee...@li...
Subject: [Beepcore-java-users] Piggyback data API deprecated.
The setStartData and getStartData methods have been deprecated, but I=20
can't see how to avoid their use to receive a piggyback reply?
You can send piggyback data with an arg to startChannel.
You can receive piggyback data with a RequestHandler and send a reply=20
normally.
But I can't see how to receive this reply without using getStartData
after the startChannel?
I'm also seeing a problem that after using piggyback data, the channel
does not appear to work. But I think this is a bug in 0.9.08 that has
been discussed in the "PiggyBacked data, MessageListener and=20
RequestHandler" thread.
regards
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick
_______________________________________________
Beepcore-java-users mailing list
Bee...@li...
https://lists.sourceforge.net/lists/listinfo/beepcore-java-users
|