[jdom-interest] JMS and XML
Duane Stoddard
Duane_LS at yahoo.com
Thu Mar 29 16:03:35 PST 2001
Hello,
Both of these methods will work, and depending on your needs and your environment either could be used. I would like to
offer an additional solution to this problem - you could use a JMS provider that supported XML messages directly.
Although XML messages aren't a part of the JMS specification, a number of providers actually have created XML message
types (as an extension). You should look to see if you are using such a provider.
===== Shameless Plug Here ====
If you are not using such a provider, there is a fairly good open source JMS implementation that you might be interested
in. Open3 Technologies has created a full featured JMS implementation that uses XML messages as its core messaging
format. This implementation offers an XML message type (org.open3.jmsx.XMLMessage) that you could use to store and
deliver a DOM document object (or a string that represents the XML).
Main Site: www.open3.org
Binary Download: www.open3.org/redirect/downloads/open3_latest_bin_all.tar.gz
===== End Shameless Plug =====
Since this is relatively off topic, I won't spend any more time on this subject here. But feel free to contact me for
more information.
Hope that help,
Duane L. Stoddard
duane at open3.org
-----Original Message-----
From: jdom-interest-admin at jdom.org
[mailto:jdom-interest-admin at jdom.org]On Behalf Of Matthew MacKenzie
Sent: Thursday, March 29, 2001 8:35 AM
To: 'Brunner Wolfgang'; markham.r at gmx.de
Cc: jdom-interest at jdom.org
Subject: RE: [jdom-interest] JMS and XML
One thing that I have done successfully is to put a JDOM Element into an
JMS ObjectMessage, and simply do Element el =
(Element)theObjMsg.getObject(). If that's an option in your app, try
it.
Cheers,
-Matt
-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
On Behalf Of Brunner Wolfgang
Sent: Thursday, March 29, 2001 6:12 AM
To: 'markham.r at gmx.de'
Cc: jdom-interest at jdom.org
Subject: AW: [jdom-interest] JMS and XML
Hi,
SAXBuilder as well as DOMBuilder offered a variety of overwriiten
"build"-method allowing to parse XML-messages from different sources:
from
file, from java.io.InputStream and from java.io.Reader.
java.io.Reader e.g. is specialised by StringReader, serving eactly your
purposes.
Wolfgang Brunner
START AMADEUS GmbH
Marienbader Platz 1
D-61348 Bad Homburg
* +49 (0) 6172 91-4375
K +49 (0) 6172 91-55 4375
* mailto:Wolfgang.Brunner at start.de
> ----------
> Von: markham.r at gmx.de[SMTP:markham.r at gmx.de]
> Gesendet: Donnerstag, 29. März 2001 15:35
> An: jdom-interest at jdom.org
> Betreff: [jdom-interest] JMS and XML
>
>
>
> Hello,
>
> I want to send a message from the server to the client and from client
to
> the server. The messages are sent using JMS(Java Message System). The
Data
> format is XML.
>
> The parses always uses File as medium, using JMS the messages are
already
> in
> the main Memory.
>
> My problem is there a method how I can parse XML data directly out of
the
> main memory.
>
> Regards
> Richard Markham
>
> _______________________________________________
> To control your jdom-interest membership:
>
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@you
rh
> ost.com
>
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@you
rhost.com
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the jdom-interest
mailing list