2012-12-13

Bootstrapping JBoss Embedded server

Maven dependencies:

<dependency>
  <groupId>org.jboss.embedded</groupId>
  <artifactId>jboss-embedded-all</artifactId>
  <version>beta3.SP12</version>
  <scope>test</scope>
  <exclusions>
    <exclusion>
      <groupId>org.jboss.microcontainer</groupId>
      <artifactId>jboss-deployers-client-spi</artifactId>
    </exclusion>
  </exclusions>
</dependency>
<dependency>
  <groupId>org.jboss.embedded</groupId>
  <artifactId>thirdparty-all</artifactId>
  <version>beta3.SP12</version>
  <scope>test</scope>
</dependency>
<dependency>
  <groupId>org.jboss.embedded</groupId>
  <artifactId>hibernate-all</artifactId>
  <version>beta3.SP12</version>
  <scope>test</scope>
</dependency>

Bootstrapping:

Bootstrap.getInstance().bootstrap("bootstrap");
Bootstrap.getInstance().scanClasspath("target/test-classes,target/classes");

References

http://shrubbery.mynetgear.net/…mbedded_EJB3

http://www.jboss.org/…ddedAndJUnit

Thanks to Pavel Slavicek.


0