[jboss-dev-forums] [Design of JBoss ESB] - Re: ESB and the use of EJB

jgilbert do-not-reply at jboss.com
Sat Jul 29 14:51:32 EDT 2006


That is a good example. However, we aren't using maven and testng in JBossESB. But, Ant and JUnit will work just fine.

Here is a link to the JBoss documentation:
http://docs.jboss.org/ejb3/embedded/embedded.html

I followed this to create the following:

- this is a well testes JUnit TestSetup class that could be ported to JBossESB/common
http://taylor.cvs.sourceforge.net/taylor/taylor/commons/src/main/java/net/taylor/jboss/EJB3Container.java?view=log

- this is an application that uses it. ignore the fact that it uses maven2.
http://taylor.cvs.sourceforge.net/taylor/taylor/tracker/

- this directory contains all the setup files. they can also be found in the ejb3 embedded container distro
    src/test/resources/

- i also like to use the hsql in-memory db so that tests start fresh each time. hsql is available in the third-part jar in the distro

- we just need to add three jars to the JBossESB lib directory:
-- jboss-ejb3-all-alpha8.jar
-- hibernate-all-alpha8.jar
-- thirdparty-all-alpha8.jar

- also not that jms can also be tested in the junit. pretty cool!


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

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



More information about the jboss-dev-forums mailing list