[daisy] JMS Documentation

Bruno Dumon bruno at outerthought.org
Tue Jan 15 10:11:43 CST 2008


Hi,

On Tue, 2008-01-15 at 09:48 -0600, Shon Schetnan wrote:
> Hi,
> 
> I wondering if someone can point me to some documentation or examples for
> hooking up to JMS events.  I found a class called EventDumper which seems to
> listen to JMS events and simply output them to the console. However, when I
> use the username and password in their, I am getting a
> javax.jms.JMSException: User name or password is invalid.
> 

A password is generated as part of the Daisy installation. You can find
it in

<repository data dir>/conf/users.properties

where you will see a line like

admin=the_password

> Can someone point me to some examples of how to work with the JMS piece?

Assuming you get the above working, one more interesting thing is that
if you want to parse the XML blurbs in those events, you can reuse the
existing XML Beans generated classes (= classes generated from XSD
schemas). You don't need to know anything about XSD for this, it's just
an easy and efficient way to get a Java object structure out of XML.

To see example code of this, have a look at the class
RemoteEventDispatcher:
http://svn.cocoondev.org/viewsvn/trunk/daisy/repository/client/src/java/org/outerj/daisy/repository/clientimpl/RemoteEventDispatcher.java?revision=4524&view=markup

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org


More information about the daisy mailing list