JavaBeat Certifications Certifications Kits Articles Interview Questions OCAJP 7 OCPJP 5 OCPJP 6 OCEJWCD 6 SCBCD 5.0 SCEA SCJA

Open EJB Faqs

Topic :
Feedback Request New QnA Print Email

What spec version does OpenEJB support?

OpenEJB supports the Enterprise JavaBeans 3.0 specification and previous versions 2.1, 2.0 and 1.1.

I don't plan to use EJBs, so why would I embed OpenEJB into Tomcat.

Adding OpenEJB to Tomcat gives servlets several new Java EE 5 capabilities such as JPA, JAX-WS, JMS, J2EE Connectors, transactions, and more as well as enhancing the injection features of Tomcat 6 to now support injection of JavaEE objects like Topics, Queues, EntityManagers, JMS ConnectionFactories, JavaMail Sessions, as well as simpler data types such as Dates, Classes, URI, URL, List, Map, Set, Properties, and more. In the case of Tomcat 5.5 which doesn't support dependency injection at all, even more is gained.

Can I run OpenEJB with a JVM for any vendor?

The Sun, Mac, and IBM vms are regularly tested, however any vm should work.

Which version of Java is required to run OpenEJB?

Java versions 5 or 6, aka Java 1.5 or 1.6.

Do I need Apache Maven to work with OpenEJB?

Definitely not. Most of the examples include both Maven and Ant build files. OpenEJB is usable as a plain library, much like an embedded database like Derby, so it is usable in any application regardless if that application is run via Maven, Ant, Intellij, Eclipse, NetBeans, JUnit, TestNG, etc.

Can I start and stop OpenEJB from an IDE? If yes, which IDE is supported by OpenEJB?

The short answer is yes. The basic approach for all embedding scenarios is to 1) add OpenEJB to your classpath, and 2) construct your InitialContext using org.apache.openejb.client.LocalInitialContextFactory. The LocalInitialContextFactory will boot OpenEJB in your vm and all ejb applications visible in the classpath will be deployed. See Application discovery via the classpath for various ways to have your applications discovered.

Container-Managed Persistence

What engine does OpenEJB use for CMP?

The CMP engine is written as a layer over JPA with OpenJPA doing the persistence work.

What is the format for the CMP mapping files?

The standard JPA mapping file and annotations are also used for CMP mappings.

Topic :
Feedback Request New QnA Print Email

All api java java 6.0 java 7.0 jdbc jsp servlet ejb jndi jms ejb 3.0 j2ee jee 5.0 jee 6.0 jsf struts spring Hibernate ajax JBoss Seam netbeans eclipse ant xml maven dojo junit javafx j2me log4j ESB JBoss Apache Quartz scjp mysql oracle gwt openjpa jmx yui google-guice android JBoss scwcd 5.0 scjp 1.5 scjp 1.6 scja scbcd 5.0

javabeat | advertise | about us | contact | useful resources
Copyright (2004 - 2013), JavaBeat