Showing posts with label EJB 3.0 Session Bean WebSphere IRAD 7.5 Rational Glassfish 7.0 Beta Enterprise Java Beans Sun JSR 220 JDBC entity mdb message cameron mckenzie stateless stateful SLSB SFSB. Show all posts
Showing posts with label EJB 3.0 Session Bean WebSphere IRAD 7.5 Rational Glassfish 7.0 Beta Enterprise Java Beans Sun JSR 220 JDBC entity mdb message cameron mckenzie stateless stateful SLSB SFSB. Show all posts

Wednesday, August 13, 2008

Creating EJB 3.0 Entity Beans in IRAD 7.5 - The JPA Entity Wizard in Rational

Entity Beans with IRAD 7.5 - EJB 3.0 JPA Annotated Entities

Just something neat about an EJB project in WebSphere IBM Rational Application Developer 7.5. You'll notice there is no option to create an EJB 3.0 entity bean, only 1.x and 2.x entity beans.

Of course, you can certainly create entity beans, but they're not so much entity beans of old, but instead, JPA entity is the more appropriate terminology, and it's created through the JPA wizard for creating an entity.

Creating Stateless & Stateful Session Beans - EJB 3.0 Java Development

When it comes to development, there are really three different types of components you can develop, namely, a Session Bean, an Entity Bean, and a Message Driven Bean.

As you could probably guess, Message Driven beans interact with a messaging system, reading messages off of a topic or a queue. Entity Beans represent data, and as you might expect, Entity Beans interact with some type of data storage facility, which is usually, but not exclusively limited to, a JDBC database. Session Beans on the other hand are much simpler. Session EJBs don't need to interact with a messaging system or a database. Session beans are simply components that contain Java code and business logic, and as such, they have no real dependency on any external infrastructure other than the EJB container in which they are deployed.

In light of the fact that they do not need a configured message queue, or a full database installation, in order to be developed, tested and deployed, Session Bean EJBs are definitely the best place to start when tackling the EJB 3.0 specification, and that's exactly what we're going to do right now - look at how to develop EJB 3.0 Session Beans.