-
1. Re: ESB and the use of EJB
jgilbert Jul 29, 2006 2:51 PM (in response to kurtstam)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! -
2. Re: ESB and the use of EJB
daniel.brum Jul 30, 2006 9:04 AM (in response to kurtstam)I'm not sure we can use the EJB3 embedded container. Please talk with Mark Little to clarify this Kurt.
-
3. Re: ESB and the use of EJB
marklittle Jul 30, 2006 10:45 AM (in response to kurtstam)The current situation is that we can test EJB3 with the embedded container, but we can't use it within our product. I always like to test what we release, so it probably doesn't make sense to use the EJB3 support in the container.