File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB3.0 without app server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3.0 without app server" Watch "EJB3.0 without app server" New topic

EJB3.0 without app server

Elihu Smails
Ranch Hand

Joined: Jan 12, 2005
Posts: 37
I want to develop an application that is a stand-alone system with a back end database. Can I still use EJB3.0 since I don't need something like JBoss or Sun AppServer?

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32848

No. By definition, EJB is a part of J2EE. J2EE is a standard for applications that run on an app server. It provides services like security.

If you are writing a stand alone application, EJB 3.0 wouldn't work. What in EJB 3.0 are you trying to leverage. Comparable projects are out there for most if not all of the things EJB 3.0 provides. For example, you could use Spring or Hibernate for the database access.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Raghu Kodali

Joined: Oct 05, 2006
Posts: 18
If you are just going to use the persistence part (Java Persistence API - JPA )of the EJB 3.0 specification, then you will be able tor run the JPA entities outside container as well.

The application can be run in a Java SE environment.

Beginning EJB 3 Application Development
I agree. Here's the link:
subject: EJB3.0 without app server
jQuery in Action, 3rd edition