[jdev] Need help reading message from server
Matthew A. Miller
linuxwolf at outer-planes.net
Tue Nov 11 10:13:52 CST 2008
You really are better off to start with an existing library (see http://www.jabber.org/web/Libraries#Java
for some possibilities). XMPP doesn't exactly fit the JAXB model,
since this protocol is essentially two continuous streams (inbound and
outbound) of an XML (like) document.
Openfire is fairly compliant to the actual specifications (e.g. RFC
3920, 3921, and the various XEPs), so looking at its source code
shouldn't be necessary to get connected to it.
On Nov 11, 2008, at 09:00, ricky ricky wrote:
> 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
>
>
> _______________________________________________
> JDev mailing list
> FAQ: http://www.jabber.org/discussion-lists/jdev-faq
> Forum: http://www.jabberforum.org/forumdisplay.php?f=20
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: JDev-unsubscribe at jabber.org
> _______________________________________________
--
Matthew A. Miller
linuxwolf at outer-planes.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2238 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20081111/159108f0/attachment-0003.bin>
More information about the JDev
mailing list