I did a significant amount of work on this, but I do not yet have anything ready for 
prime time yet.  I have moved onto
some other projects, and don't know when I will get a chance to return to the code.

Some tips on the issues I faced.

Since the Jabber communication is through a tcp socket that is  kept open for the 
entire client session, it is not
conducive to the asynchronous nature of a web browser hitting a web page.

I created a JabberConnection java class that I initiate through Cold Fusion, the 
object instance is stored in a session
variable to be accessed when the browser makes the next request to the CF server.

Since the CF server cannot send a message to a web browser when it receives a message 
for a user, there is no need to
write any type of event handler for incoming communication.  Each time the browser 
connects to the CF server, I send it
the entire stream of XML data that the JabberConnection class has received for that 
client.  I use the torchbox XML
toolkit to transform the stream into HTML output for the client.

I have not used the XML features of MS SQL2000, but my reading suggests that it might 
be possible to feed the XML stream
directly into a SQL2000 database.

Hope some of this helps.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of tom dyson
Sent: Wednesday, September 26, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: [cf-xml] Jabber, CF and XML


Hi there

I've recently become interested in Jabber, the open source instant messaging
platform which packages all its information in XML. There are various web
applications which integrate with Jabber (http://jogger.jabber.org is a good
example), but most are written in Perl and PHP. Does anyone have any
experience of using Jabber with CF? I remember there was a brief discussion
about parsing Jabber XML files on this list a while ago. I'm particularly
interested to know how you would get a Jabber message into a database, via
ColdFusion.

Thanks

Tom

P.S. If you know nothing about all this, visit http://jabber.org
-----------------+
tom dyson
t: +44 (0)1608 811870
m: +44 (0)7958 752657
[EMAIL PROTECTED]
http://torchbox.com


-----------------------+
cf-xml mailing list
[EMAIL PROTECTED]
http://torchbox.com/xml


-----------------------+
cf-xml mailing list
[EMAIL PROTECTED]
http://torchbox.com/xml

Reply via email to