[daisy] JMS Documentation

Shon Schetnan shon.schetnan at carol.com
Tue Jan 15 11:12:25 CST 2008


Bruno,

Thanks a lot!  That is getting me going.  Thanks also for the lead to the RemoteEventDispatcher example!

Shon


On 1/15/08 10:11 AM, "Bruno Dumon" <bruno at outerthought.org> wrote:

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=markup <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
_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/site/services/daisy/daisysupport.html
mail to: daisy at lists.cocoondev.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy



________________________________
This message is intended only for the use of the individual or entity to whom it is addressed, and may contain information that is PROPRIETARY and CONFIDENTIAL. If you are not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the above named sender at the above telephone number.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20080115/98baf7d2/attachment.htm


More information about the daisy mailing list