ObjectDB ObjectDB

Internal Website Search

11-20 of 81 resultsRefresh
5

JPA Tutorials

, including Servlets, JSP and HTML. The first tutorial demonstrates a simple JPA web application with a Servlet and a JSP: JPA Web Application Tutorial This web application does not use EJB, so you should be able to run it on any servlet container (e.g. Apache Tomcat, Jetty, etc.), as well as
5

Step 3: Define an EJB Session Bean

application servers such as GlassFish and JBoss, and not by servlet containers, such as Tomcat ... of the EJB class and injects an instance of the EJB class into the servlet (as shown in the next step ... . The next step is adding a Servlet Class that will serve as the application controller.
5

Step 3: Add a Context Listener Class

: package guest; import javax.persistence.*; import javax.servlet.*; @WebListener public class ... attribute in the servlet context - when the web application starts (contextInitialized). Retrieves ... and the database - when the application stops (contextDestroyed). The next step is adding a servlet class that will manage the guestbook page.
5

Step 3: Define an EJB Session Bean

are only supported by Java EE application servers such as GlassFish and JBoss, and not by servlet ... : Manages the instantiation of the EJB class and injects an instance of the EJB class into the servlet (as ... transaction begin and commit. The next step is adding a Servlet Class that will serve as the application controller.
4

Step 4: Add a Controller Class

.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired ... .RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class
4

Step 4: Add a Controller Class

replace the content of the new source file with the following code: package guest; import javax.servlet ... .RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class
3

Java EE Web Tutorial

. If you need a web application that can run on a simple servlet container (such as Tomcat or Jetty
3

Step 5: Add a JSP Page

the servlet in the previous step). The next step (and the last in this tutorial) is running the web application.
3

Step 6: Run the Java EE 6 Application

You can run the application now by right clicking the GuestServlet node (in the [Projects] window), selecting Run File, and then clicking OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created under the GlassFish directory (e.g
2

[ODB1] Chapter 1 - About ObjectDB

integrated into any JSP/servlet web application. The JDO Guest Book sample provided with ObjectDB ... to deploy a web application with ObjectDB on any web hosting system that supports servlets/JSP. Just drop

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