Skip to content

Biting the hand that feeds IT

The Register ®

Software:


Related Whitepapers

[Print][Mobile][Alerts]

Migrating EJB 2.1 Entity and Session Beans to EJB 3.0

The nuts and bolts

Page: < Prev 1 2 3 4 5 6 7
Published Tuesday 25th April 2006 06:02 GMT

Summary

So, to summarise this tutorial:

  • EJB development in EJB 3.0 specification is simplified by replacing abstract bean classes with POJOs.
  • Component and Home interfaces are not required in EJB 3.0.
  • Deployment descriptors are replaced with metadata annotations in the bean class. Familiarity with JDK 5.0 annotations is required to migrate EJB 2.0/2.1 to EJB 3.0.
  • The EntityManager API is used to create and find entity bean instances in EJB 3.0 instead of the create, and finder methods in EJB 2.1.
  • JNDI, which is required to obtain references to resources in EJB 2.1 is replaced with the @Resource, @Inject and @EJB annotations in EJB 3.0 specification.

Deepak Vohra is a Sun Certified Java Programmer and Sun Certified Web Component Developer. Deepak is a Web developer; and has published in XML Journal, WebLogic Developer's Journal and ONJava.com.

Page: < Prev 1 2 3 4 5 6 7
Track this type of story as a custom Atom/RSS feed or by email.
Previous Article Next Article
whitepaper title

The Register Guides : The status of iSCSI

Now that the hype's abated, have companies backing iSCSI have run out of energy and patience, or is the technology becoming commonplace and accepted?.
whitepaper title

How IT Management Can "Green" the Data Center

This Gartner research provides managers with an outline of the trends affecting datacenters and offers strategies with which to address these changes..
Whitepapers

The MSDN Developer Zone

Top 20 storiesAll The Week’s HeadlinesArchiveSearch