building a channel listener on client and open a channel on server side
"Russell Hung" <[email protected]> Thu, 15 Aug 2002 10:10:52 -0700
| Newsgroups | gmane.network.beep.beepcore.java.general |
|---|---|
| Message-ID | <D0720E03FE8450489330A332BDB17643057E68@exchange.visionsolutions.com> |
Hi,
I am trying to build a channel from server to client (server ---->
client) so the server could send the messages actively.
I have successfully built a channel from client to server (client ---->
server) using -
on server side:
startChannelListener = profile.init(uri, profileConfiguration);
profileRegistry.addStartChannelListener(uri, startChannelListener,
sessionTuningProperties);
and client side:
// builds a session using "AutomatedTCPSessionCreator.initiate(...)"
channel = session.startChannel(EchoProfile.EchoProfile_URI);
After that (there is already a channel "client ---> server"), I try to
build a channel from server to client ("server -----> client") so the
server could actively send messages to client using the same algorithm -
on client side:
startChannelListener = profile.init(uri, profileConfiguration);
profileRegistry.addStartChannelListener(uri, startChannelListener,
sessionTuningProperties);
and server side:
// after the server agree with client's session request, it obtains
a session.
session = AutomatedTCPSessionCreator.listen(listenPort,
profileRegistry);
channel = session.startChannel(EchoProfile.EchoProfile_URI);
It returns the error messages below after the server side tries to start
a channel:
"org.beepcore.beep.core.BEEPError: all requested profiles are
unsupported"
Is building a channel from server to client feasible? Or maybe I did
something wrong! Thanks.
Russell Hung
[email protected]
Leaves Bkgrd.jpg
(image/jpeg, 4.3 KB) - not displayed