wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Best Container for learning EJBs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Best Container for learning EJBs" Watch "Best Container for learning EJBs" New topic
Author

Best Container for learning EJBs

Mike Zal
Ranch Hand

Joined: May 04, 2011
Posts: 144

I am in the process of preparing for the EJB EE6 (then JPA exam). I started off using Glassfish for my container, but it seems a bit difficult to do anything without using Netbeans. It seems like there is a bunch of unnecessary fluffy (I should have expected that from a complete EE server) or weird limitations such as EJBs must be deployed as part of a web app (Maybe I'm not setting the project up right or I am not understanding some EJB basics). I want to do as must development using the command line tools (ant/maven and shell scripts). Does anyone have any suggestions for which containers they found to be command line and newbie friendly?

I also have some other related, but slightly off topic questions.
1) Does anyone know if Ms. Sierra or Mr. Bates will ever be updating the Head First EJB or Servlet books?
2) Are there any good prep exams or simulators besides Enthuware available?


OCJP6, OCWCD5
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

JBoss is a good option to learn EJB !


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Huachaitou Peek
Greenhorn

Joined: Aug 07, 2010
Posts: 17
I am learning EJB too. I use Glassfish3.1 and Eclipse EE. After you build EJB jar file, you can drop the file into "autodeploy" directory. The "autodeploy" dir should be under your domain dir. From Eclipse EE, you can use export feature to export EJB module directly to specify dir.
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi

JBoss is a great piece of software but sometime he follws its own ways. The Glassfish is the reference implementation for the all the related JSRs so if you are a beginner start with Glassfish. More if you are a beginner start with Netbeans - this IDE brigs the Glassfish with - so it is grantee to with Glassfish.

Regards,
Mihai


SCJP, SCJD, SCWCD, OCPJBCD
Piotr Nowicki
Ranch Hand

Joined: Jul 13, 2010
Posts: 610

As Huachaitou Peek said, you can always build your JAR with EJB's and deploy it manually into the app server. In this way you have the fine control on the overall packaging, deployment and server startup process.

If you are interested in building a more complex testing environment I would suggest using the following:

- OpenEJB implementation - it's a lighweight EJB container,
- JBoss Arquillian - JUnit runner which control the deployment process on whatever container you choose (in this case it's OpenEJB but you can use i.e. JBoss as well),
- JBoss ShrinkWrap - tool which allows you to create your deployment package 'on-the-fly'; you don't have to prepare JAR with your EJB's manually; the prepared archive is treated as a deployment which should be used with Arquillian,
- JUnit itself for running tests.

It might seem a lot of new stuff if you're new in the EE world, but after you know what's happening (by manually packaging, deploying, etc.) it really gives you a boost.

PS. I use Eclipse with all these tools, but it really isn't a 'must' requirement.

Cheers!


OCP Java SE 6 Programmer, OCM Java SE 6 Developer, OCE Java EE 6 JSPSD, OCE Java EE 6 EJBD, OCE Java EE 6 JPAD, Spring 3.0 Core Professional.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Mike Zal wrote:I am in the process of preparing for the EJB EE6 (then JPA exam). I started off using Glassfish for my container, but it seems a bit difficult to do anything without using Netbeans. It seems like there is a bunch of unnecessary fluffy (I should have expected that from a complete EE server) or weird limitations such as EJBs must be deployed as part of a web app (Maybe I'm not setting the project up right or I am not understanding some EJB basics). I want to do as must development using the command line tools (ant/maven and shell scripts). Does anyone have any suggestions for which containers they found to be command line and newbie friendly?

I also have some other related, but slightly off topic questions.
1) Does anyone know if Ms. Sierra or Mr. Bates will ever be updating the Head First EJB or Servlet books?
2) Are there any good prep exams or simulators besides Enthuware available?


Unanimously JBoss.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
kurt hanni
Ranch Hand

Joined: Aug 11, 2007
Posts: 140

I'm using for EJB 3.1, eclipse + glassfish 3.1


SCJA, SCJP, SCJD, SCMAD, SCWCD, SCBCD, SCDJWS, SCEA, SOA, Spring Certified, OCP MySQL 5 Developer, PMP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Best Container for learning EJBs
 
Similar Threads
Writing a remote client to access EJBs
J2EE SDK 1.3 vs an AppServer?
EJB Deployment using ant tool
Ejb components in container, how about Corba components?
EJB container - how to initialize a class at server startup ?