Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Best Container for learning EJBs

 
Mike Zal
Ranch Hand
Posts: 144
Fedora Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss is a good option to learn EJB !
 
Huachaitou Peek
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Piotr Nowicki
Ranch Hand
Posts: 611
1
IntelliJ IDE Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
kurt hanni
Ranch Hand
Posts: 140
Eclipse IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using for EJB 3.1, eclipse + glassfish 3.1
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic