[jdev] Need help reading message from server

ricky ricky rl71084 at gmail.com
Tue Nov 11 10:00:33 CST 2008


Hi,

I am writing a message listener that would listen (on a socket) for message
comming out of an Openfire server #1 on one host to Openfire server #2 on
another host.
Openfire server #1 is configured to send the chat message to the message
listener and the message listener would read the message (thru a socket) and
then
forward the message to openfire server # 2.

My initial design is to use JAXB binding compiler (xbj) to generate a set of
Java classes from the XMPP XML Schemas and unmarshalling incomming xml
message to the corsponding Java class.   However, I am having problem
generating the Java classes from the XMPP schemas (downloaded from xmpp.org)
because some of the shemas contain errors.  A few of the shemas that I
looked at that contains errors are "component-accept.xsd", "x-data.xsd",
"component-connect.xsd", "eature-neg.xsd", etc..  Also, this may not work
because the message comming out from the Openfire server may not follow the
schemas exactly.

My next step is to looking into the Openfire server src code and see how the
server reads in message from another server. I am a newbie to Openfire any
help would greatly appreciated.

thanks,
-ricky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20081111/2c16eaab/attachment-0003.htm>


More information about the JDev mailing list