EJB 3.0 Persistence out of a J2EE conE container Tutorial (EJB)
Thursday, March 5th, 2009In this article we will learn how to manage the persistence issues without being tied to use a J2EE application server.
We will build a very basic sample application that saves and loads data on a database using an EJB 3.0 persistence implementation.
At present (April 2007) there exist two implementations of the EJB 3.0 persistence specification: the first is Hibernate-based and was adopted by JBoss, while the other is Oracle Toplink, included into the Oracle Application Server OC4J and into the EJB 3.0 Sun Reference Implementation also known as Glassfish Project .
Note that EJB 3.0 persistence specifications are only a part of the EJB 3.0 specifications. They do not deal with Session Beans (stateless or stateful), but only with the Entity Beans.
Well, the good news is that, as long as we need only the EJB 3.0 persistence layer and do not need Session Beans, we can use Hibernate or Toplink implementation (our choice!) just into any Java application, without the need of a J2EE container, not even a web server, just from a plain Java class!
Related Websites - Choosing a Home Improvement Project Before you engage in a home improvement project, you luckily do not need to be trained technically in order to be successful. There are standing landscaping and home improvement project ideas that you can implement that will enable you to work quite similarly to the pros. The secret that you......
- Glossary of Perfume Scents pt 3 Chypre – This is the French word for Cyprus, and it is pronounced as "sheepra". It typically describes fragrances that have sparkling floral and citrus notes laid over dark and earthy bases of patchouli, oak moss, woods and labdanum. This is a fragrance family, but fragrance families are largely subjective......
- Writing UDFs for Firebird Embedded SQL Server Written by: Ivan Komarov, Deputy Team Leader of Network Security Team Table of content Who may be interested What is UDFs What do you require Sample project structure About the sample Creating UDFs-based binary data parser UDFs Declaration UDFs implementation Using UDFs Outside initialization Conclusion Who may be interested This......
- Guide To VPS Hosting - Virtual Private Servers Explained For a long time the sole platform option in hosting was between low- price shared servers or higher- cost dedicated servers. Now there is a sensible third choice – mid- priced Virtual Private Servers or VPS. Virtual is the key description here. A VPS offers most of the advantages of......
- Free Business Software - Open Office Vs Microsoft Office For many small businesses Microsoft Office is a GOLD standard software package. It includes Excel for accounting, tracking inventory, developing spreadsheets, etc. I have been working with Excel since it was introduced and it has gotten better and better every year. With someone who knows what they are doing......

