EJB 3.1 Support in JBoss 6.0M2 - Building JBoss

JBoss recently announced that initial support for EJB 3.1 will be available in the upcoming JBoss 6.0 M2 application server.

At present, the EJB 3.1 functionality supported is:

  • developing EJBs without declaring interfaces; and
  • deploying EJBs in WAR files

Since JBoss AS 6.0 M2 isn’t currently available, the best way to get it to try out this new finctionality is to check the source out from the JBoss Subversion repository and build the application server.

Building JBoss AS 6.0 from the trunk is very straightforward to build. To checkout and build the code, you need to have Subversion and Maven installed on your development system.

The code can be checked out from the anonymous JBoss Subversion repository:

svn co http://anonsvn.jboss.org/repos/jbossas/trunk  

After checking out (which may take up to an hour or more), the source can be built using the build/build.bat (build/build.sh) command or by using Maven.

> cd trunkbuild
> mvn clean install
After about 10 minutes or so, you should have a snapshot build of the upcoming JBoss 6.0. The distribution is placed in the buildtargetjboss-6.0.0-SNAPSHOT directory.

> cd targetjboss-6.0.0-SNAPSHOTbin
> run.bat
Calling E:Developjboss6trunkbuildtargetjboss-6.0.0-SNAPSHOTbinrun.conf.bat  

JBoss Bootstrap Environment

JBOSS_HOME: E:Developjboss6trunkbuildtargetjboss-6.0.0-SNAPSHOT

JAVA: C:Program FilesJavajdk1.6.0_18binjava

JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M  
-Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server

CLASSPATH: C:Program FilesJavajdk1.6.0_18libtools.jar;  


19:46:47,792 INFO [AbstractJBossASServerBase] Server Configuration:

JBOSS_HOME URL: file:/E:/Develop/jboss6/trunk/build/target/jboss-6.0.0-SNAPSHOT/  
Bootstrap: $JBOSS_HOMEserver/default/conf/bootstrap.xml  
Common Base: $JBOSS_HOMEcommon/  
Common Library: $JBOSS_HOMEcommon/lib/  
Server Name: default  
Server Base: $JBOSS_HOMEserver/  
Server Library: $JBOSS_HOMEserver/default/lib/  
Server Config: $JBOSS_HOMEserver/default/conf/  
Server Home: $JBOSS_HOMEserver/default/  
Server Data: $JBOSS_HOMEserver/default/data  
Server Log: $JBOSS_HOMEserver/default/log/  
Server Temp: $JBOSS_HOMEserver/default/tmp

19:46:47,855 INFO [AbstractServer] Starting: JBossAS  
[6.0.0.SNAPSHOT (build: SVNTag=JBoss_6.0.0-SNAPSHOT date=r99956)]