Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3.0 without app server

 
Elihu Smails
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34672
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Elihu,
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.
 
Raghu Kodali
author
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Elihu,
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.

Raghu
Beginning EJB 3 Application Development
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic