• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Best Container for learning EJBs

 
Ranch Hand
Posts: 144
Oracle Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JBoss is a good option to learn EJB !
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 623
1
IntelliJ IDE Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 140
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using for EJB 3.1, eclipse + glassfish 3.1
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic