Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB version and first program  RSS feed

 
Anah Dordi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to EJB. While going through some post i've seen versions of EJB mentioned. How do i know what version I'll be using. Rather which one to use and how?

Also please help me type a simple starter program.

Thanks
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think your query is very generic without a specific answer. The current EJB version is 3.0.
I guess you may like to go briefly through the basic EJB tutorial for the basic groundwork.

EJB is a framework like servlets which is managed by an application server. As with any framework, it has its syntax, life cycle and terminology. But in very rudimentary terms, this framework is for writing the business logic of your enterprise application along with its database persistence mechanisms.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anah,
Welcome to CodeRanch!

What server are you planning to deploy to? This may limit your choice of EJB. All current servers support EJB 3.0.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anah Dordi wrote: Also please help me type a simple starter program.

What book or tutorial are you using? EJB isn't like Java where you compile and run at the command line.
 
Anah Dordi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everybody for your replies. I am using Apache Tomcat 5.5 and NetBeans IDE 6.8 I've got some Sun microsystem books for EJB.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that Tomcat doesn't support EJB out of the box. You'll need the Open EJB plugin or the like.
 
Anah Dordi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok how about GlassFish?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!