[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBM 2.0 examples

ataylor do-not-reply at jboss.com
Mon Mar 30 11:51:32 EDT 2009


Ive added a new jms example template into trunk. There should also be a core one butthat isn't complete yet.

The jms template. each example should live in its own directory under examples/jms and should have its own build.xml file and src folder. The example itself will extend JMSExample and implement the runExample() method, See QueueExample or TopicExample. The JMSExample class takes care of starting the server (if needed) and deploying any topics/queues etc. If you look under examples/jms/common/config you'll see the config files that are used by the server. These can be modified if needed. The build file doesnthave to do much since all the compile and run scripts are in the base script. You just have to call a couple of ant targets, again see the queue or topic example and you'll see.

The core tests should be the same but found under examples/core. The only difference is how we start the server. The CoreExample base class should just programmatically start the server with the correct configuration. 

Take a look and if any thing needs change or improving feel free to do it or post suggestion here. 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222053#4222053

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222053



More information about the jboss-dev-forums mailing list