Hi all,
I'm trying to get XMPP running. Lack of documentation is a bit of a pain
- I'll jot a few notes down on the wiki once I get things running.
The connection to the XMPP server is no problem - I can see the user
sessions on the server. However, messages aren't being passed between
separate instances of the client. On the server, a separate chat room is
being created for each client which connects. The room is named not for
the shared session name provided to the Hessian Connection but instead
for the session handle generated by the XMPP bridge code. Each client
then sends its messages to its own chat room - a little antisocial.
Is something in my configuration/code wrong? My connection code is
included below.
Also, the documentation for the CayenneContext constructor which enables
graph events suggests that the subjects are in ObjectContext when
actually they are in DataChannel.
Cheers
Marcel
--------------------
public ObjectContext getObjectContext(String address) {
DataChannel channel;
if (connections.containsKey(address)) {
channel = connections.get(address);
}
else {
HessianConnection connection = new
HessianConnection(address, null, null, "conference");
channel = new ClientChannel(connection);
connections.put(address, channel);
}
ObjectContext context = new CayenneContext(channel, true, false);
channel.getEventManager().addListener(this, "handleXMPP",
Object.class, DataChannel.GRAPH_CHANGED_SUBJECT);
channel.getEventManager().addListener(this, "handleXMPP",
Object.class, DataChannel.GRAPH_FLUSHED_SUBJECT);
return context;
}
public void handleXMPP(Object o) {
System.out.println("XMPP : " + o);
}
This archive was generated by hypermail 2.0.0 : Sun Jul 23 2006 - 22:28:37 EDT