ObjectDB ObjectDB

Internal Website Search

1-10 of 126 resultsRefresh
103

Step 3: Define an EJB Session Bean

Operations on the database will be performed by an instance of a session bean (EJB) class that we will define in this step: Open the [New Session Bean] dialog box by right clicking the guest package ... ) > Session Bean and clicking Next. Enter GuestDao as the EJB class name - use exactly that case sensitive
100

Step 3: Define an EJB Session Bean

Operations on the database will be performed by an instance of a session bean (EJB) class ... the new session bean (EJB) class. Now replace the content of the new source file with the following ... ORDER BY g.id", Guest.class); return query.getResultList(); } } The GuestDao session
26

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

from findElements. @Stateful // Change 1 - EXTENDED requires a Stateful session bean public class ... session bean I apologise that our exchange got out of sync, and I was busy looking at the JPA spec ... having performed a query in an EJB and having returned that from a JSF backing bean getter
14

Step 6: Set the Spring XML

</url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp ... ="windows-1252"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http
14

Step 6: Set the Spring XML

-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome ... -1252"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3
5

Step 2: Entity Class and Persistence Unit

database url. The next step is adding an EJB Session Bean that will manage Guest entity objects.
5

JPA Tutorials

application uses Java EE 6 EJB (session beans) it requires a full Java EE 6 application server, such as
5

Step 2: Entity Class and Persistence Unit

provider with the specified database url. The next step is adding an EJB Session Bean that will manage Guest entity objects.
5

Java EE Web Tutorial

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

Step 4: Add a Servlet Class

session bean, which is instantiated and injected by the application server into the guestDao field

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support