JBoss 7.0.2--More Than A Smoke Test 📎
The test:
- Download size of Jboss 7.0.2. "Web Profile Only (Java EE6 Certified)" is: 68 MB. The size of "everything edition" is: 75 MB
- Installation = Unzip
- Disc size: 88,9 MB after installation
- Startup: Execution of
jboss-as-7.0.2.Final/bin/standalone.sh -server-config=standalone-preview.xml
(this activates the "full" Java EE 6 features) is:07:40:42,312 INFO [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.2.Final "Arc" started in 2384ms - Started 93 of 148 services (55 services are passive or on-demand)
- Instead of the simplistic ServerSmokeTest.war, I used the fully featured x-ray application for test this time. Only the name of the datasource was changed and a single hibernate parameter provided. You will find these changes in the jboss-as-7 branch in the GIT repo The persistence.xml was changed at two places:
<?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="hitscounter" transaction-type="JTA"> <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source> <properties> <property name="eclipselink.ddl-generation" value="create-tables"/> <property name="eclipselink.cache.size.default" value="10000"/> <property name="eclipselink.cache.type.default" value="Soft"/> <!-- <property name="eclipselink.logging.parameters" value="true"/> --> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> </properties> </persistence-unit> </persistence>
- X-ray (it is the statistic application in the right upper corner in my blog, and a book sample), works without any modification on GlassFish 3.1.1 and Jboss 7.0.2. X-ray uses JPA, EJB 3.1 (@Asynchronous, @Schedule, dynamic timers), CDI (@Produces, @Qualifiers), Interceptors, JMX beans etc… The deployment took ~3 sec (with table creation etc.) and worked without any problems.
- Jboss 7 works in the clouds as well.
- Conclusion: Jboss 7.0.2 looks promising: it is fast and lean. The only problem is rather "political". It is not easy (impossible?) to get commercial support from RedHat for Jboss 7.0.2.
- Startup: Execution of