About EJB

tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in a NetBeans Java EE web application.... will be performed by an instance of a session bean (EJB) class that we will define in this step: Open the [New ... clicking Next . Enter GuestDao as the EJB class name - use exactly that case sensitive class name. ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application.... will be performed by an instance of a session bean (EJB) class that we will define in this step: Open the [New Java Class] ... Click Finish to create the new session bean (EJB) class. Now replace the content of the new source file with ...

 
tutorial

Java EE 6 Web Tutorial

This tutorial demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application in Eclipse - using GlassFish, ObjectDB and JPA.... and JPA. Since this web application uses Java EE 6 EJB (session beans) it requires a full Java EE 6 application server, such as ...

 
tutorial

Eclipse/JPA Java EE 6 Tutorial

Step by step tutorial that demonstrates how to build a simple Java EE web application (with Servlet, JSP and an EJB Session Bean) in Eclipse using JPA.... Class and Persistence Unit Step 3: Define an EJB Session Bean Step 4: Add a Servlet Class Step 5: Add a JSP ...

 
tutorial

NetBeans/JPA Java EE 6 Tutorial

Step by step tutorial that demonstrates how to build a simple Java EE web application (with Servlet, JSP and an EJB Session Bean) in NetBeans using JPA.... Class and Persistence Unit Step 3: Define an EJB Session Bean Step 4: Add a Servlet Class Step 5: Add a JSP ...

 
forum_thread

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml file for example: ... and all contents into the root of jar file when the (EJB) project is built. When that EJB is deployed to e.g. GlassFish 3.1.1 all apperar to be OK, and a singleton ...

 
issue

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

I have marked this as CRITICAL because although there probably is no database integrity problem, the inability to robustly query relationship fields in a web application renders the ObjectDB system seemingly useless. objectdb-2.2.5_10 NetbeansIDE6.9.1 Glassfish3.01 client-server mode. odb file written to db-files/greendesk/greendesk.odb (see persistence.xml), copy of odb output attached. ... performed later form a served JSF page via a querying @EJB gives many fields null (and not even empty, I mean truly null). In ... query. When I serve the query via and @EJB TestQuery and @RequestScoped Page JSF to a simple XHTML page the list field ...

 
issue

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null:

The following error appears under and extended persistence context, and with creation, configuration and wiring code that is known to work perfectly with EclipseLink+Glassfish: SEVERE: Unexpected internal exception ... : A system exception occurred during an invocation on EJB ExtGreenStarRequestBean method public com. greensoft . entity . Element com. greensoft . greenstar . ejb . ext . ExtGreenStarRequestBean . ... ,com. greensoft . entity . Source ) javax. ejb . TransactionRolledbackLocalException : Exception thrown from ...

 
forum_thread

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

Hi,   I don't have a useful test case to expose this issue, but I am getting an intermittent "Attempt to reuse an existing primary key value". In this particular instance, the error is: ... java : 857 ) at com. sun . ejb . containers . BaseContainer . completeNewTx ( BaseContainer. java : 5115 ) at com. sun . ejb . containers . BaseContainer . postInvokeTx ( BaseContainer. ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to define an EJB session bean in a NetBeans Java EE 6 web application.... java. io . IOException ; import javax. ejb . EJB ; import javax. servlet . ServletException ; import ...