Prerequisites
Product | Version | Required |
---|---|---|
Java Development Kit (ie. Sun JDK) | >=1.6.0, <1.7 | Yes |
Apache Maven | >=2.0.9 | Yes |
Subversion | >=1.4.x | Yes |
Eclipse IDE | ||
m2eclipse | ||
IntelliJ IDEA |
Configure Environment
- Configure Maven to include the JBoss SNAPSHOT and Release repositories
- Configure JAVA_HOME to point to a JDK6 installation
Check Out, Build, and Test JBoss Embedded Libraries
Now that we have the latest AS SNAPSHOTs installed, and a local M2 repository copy of JBOSS_HOME built, we can build the Embedded libraries.
- Obtain the source using Subversion SCM
- Anonymous Access
$> svn co http://anonsvn.jboss.org/repos/jbossas/projects/embedded/trunk/ locationToEmbedded
- Anonymous Access
- Committers
$> svn co https://svn.jboss.org/repos/jbossas/projects/embedded/trunk/ locationToEmbedded
$> cd locationToEmbedded
locationToEmbedded $> mvn clean install
Run the Embedded Integration TestSuite in an IDE
After running from the command line (which ties into the Maven cycle which will copy all resources to the appropriate target locations), you may perform subsequent runs straight from the IDE. The following is an example of doing just this from within Eclipse.
- Create a Run Configuration
- Set JBOSS_HOME Environment Variable
- Set Runtime Arguments to the JVM (ie. take a look at testsuite/pom.xml for examples of setting Endorsed Dirs, etc)
- Run
We currently have coverage for:
- Local EJB3 Stateless Session Bean invocation
- JMS via EJB3 Message Driven Bean
- Simple Servlet + JSP Webapp
- Hibernate / JPA / EJB3 Entity Bean
- Jax-WS
- MC Integration
Any developers looking to ensure their project runs in Embedded are welcome and encouraged to add some support to the ServerIntegrationTest.
Comments