[ Michael Yuan ] [Permalink]
Okay, I jumped the gun. Java EE 5.0 is not yet released and time travel has been "scientifically proven" impossible. But still, the recent release of EJB 3.0 Proposed Final Draft (PFD) is very very close to the final EJB 3.0 spec, which is core to Java EE 5.0. The JBoss AS 4.0.4 RC1, released yesterday, is the world's first Java server that supports EJB 3.0 PFD. Of course, it also supports other Java EE core technologies, such as the JSF (JavaServer Faces). Try it out! If you are still on JBoss AS 4.0.3 or earlier, you can download and install our EJB3 RC5 to bring yourself up to speed with the latest spec. We also updated our EJB3 TrailBlazer learning application to make it compatible with the latest spec.
Now, we know many users have been using EJB3 in production systems -- ourselves included (JBoss Network and JBoss Labs make extensive use of EJB3 in their production web sites). So, if you are updating from a previous RC version of JBoss EJB3, you can refer to this document for the major differences. If you are interested in using EJB3 in clustered web applications, checkout this guided tour.
With the new EJB3 release, we also see a new beta release of the JBoss Seam framework for Java EE 5.0. Seam expands the EJB3 annotation driven programming model to the entire web application. It enables seamless integration (no pun intended!) between the EJB3 business tier and the JSF web layer. But most important, Seam has a component model that is designed for stateful web applications from ground up. It supports declarative state management much beyond what the traditional HTTP session could do. For instance, it supports multiple "conversations" in a single HTTP session, allows each browser window to maintain its own private state ("workspaces"), and even supports long business process states across several users (via tight integration with the jBPM Business Process Manager). If you are interested in Seam, checkout two of our "self-explanatory" Seam demo applications: the hotel booking example and the dvd store example. The DVD store example showcases the integration between Seam and jBPM. It is very very cool.
Posted on Thu, 9 Feb 2006 22:44 by admin ( day(s) old)
Trackbacks [0]
[ Michael Yuan ] [Permalink]

I am happy to announce that two JBoss TrailBlazer learning applications are live today! A TrailBlazer is a collection of interactive demos, runnable sample applications, technical articles, and other materials to help developers learn a new technology. It is our latest effort to make enterprise Java more easily accessible to everyone. The two TrailBlazers released today are both about the JBoss EJB 3.0 technology.
- The JBoss EJB 3.0 TrailBlazer focuses on the EJB 3.0 POJO programming model, which is supported out of the box in JBoss AS 4.0.3. This TrailBlazer has 20 technical articles, more than a dozen live sample applications (with online source code), and several flash demonstrations. It covers almost all aspects of EJB 3.0 programming.
- The JBoss IDE TrailBlazer has a series of flash demonstrations to show you how to develop, deploy, and debug a JBoss EJB 3.0 application from scratch using the IDE.
Both TrailBlazers are available from our JavaOne booth (#405). Stop by if you get a chance! They are also available online at http://www.jboss.com/docs/trailblazer.
Posted on Tue, 28 Jun 2005 13:33 by admin ( day(s) old)
Trackbacks [0]
[ Michael Yuan ] [Permalink]
Back in February, I wrote an article for JavaWorld to introduce how to develop lightweight POJO applications in JBoss 4.0. The idea is to replace session EJBs with annotated service POJOs and replace entity EJBs with Hibernate POJOs. The tight integration between Hibernate and JBoss transactional services allows us to write simple and elegant POJO applications. Best of all, this approach works in JDK 1.4 environments. To illustrate the new approach, the article features four alternative implementations for the same application:
- A EJB 2.1 application as a reference point
- A POJO + Hibernate application in JDK 1.4
- A POJO + Hibernate application in JDK 5.0
- A EJB 3 POJO application
However, in the past several weeks, I have been getting a lot of user emails complaining that the POJO versions of the application "do not work" in newer JBoss versions (i.e., 4.0.1+). As it turns out, JBoss 4.0.2 integrates Hibernate 3.0 as opposed to Hibernate 2.x bundled in 4.0.0. In this blog entry, I will discuss how to bring the POJO + Hibernate application up to JBoss 4.0.2. It could serve as an "upgrade guide" for your JBoss POJO applications as well. To run the POJO sample in JBoss 4.0.2, you need to do the following:
- JBoss 4.0.2 has a bug in its Hibernate integration library: it misses a third party jar. Very silly bug, I know. We will try our best to prevent this sort of bugs from happening again. :) But for now, the fix is simple: Just copy the commons-collections-2.1.1.jar file into your JBoss server's
deploy/jboss-hibernate.deployer directory.
- In all your source code files and the
hibernate-service.xml file, change the package name net.sf.hibernate to org.hibernate. This is one of the major API difference between Hibernate 2.0 and 3.0.
- The old Hibernate query API is deprecated. Change the code to use the new query API, which is very similar to the EJB 3 entity manager query API.
- Finally, before you deploy the application, do not forget to turn on aspect manager's
EnableTransformer attribute in the deploy/jboss-aop.deployer/META-INF/jboss-service.xml file.
Anyway, here is the zip file for the updated JBoss POJO + Hibernate sample application. It is tested in JBoss 4.0.2 (with the Hibernate bug fix and aspect transformer enabled). Just unzip it, enter the pojo-jdk14 or pojo-jdk50 directories, and run build.sh. The build target is in the build/jar directory. Enjoy!
I am not updating the EJB 3.0 sample application at this moment. Our new EJB 3.0 release will come out later this month and I will update the EJB 3.0 then. We will have a very comprehensive set of EJB 3.0 tutorials and sample applications to be released with the software. So, stay tuned!
Michael Yuan
Come visit us @ JavaOne!
Nokia Smartphone Hacks -- Unleash your phone!
Posted on Fri, 3 Jun 2005 11:00 by admin ( day(s) old)
Trackbacks [0]