This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Light-weight EJB 3 container

 
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I want to learn EJB 3.0, and to do that, I need a container. Until yesterday, I had been considering Glassfish / Sun WebApp server or JBoss. However, after downloading those and running, I have to admit that they are real resource hogs (my computer is not so powerful as I would like it to be) and pretty darn complex to start working with (especially JBoss). So, I have been googling for quite some time now, and foud EasyBeans, which is an implementation of EJB 3.0 used in JonAS (whatever it is, I don't know this AS), but which can be used without it, as an embedded container, for example in Tomcat. I must say it is pretty attractive to me, as I have worked with Tomcat before so there would be no learning curve on how to use the web container, or even use the EJB in a plain JSE environment. However, as I want to learn for SCBCD (and more), I need something that is fully compliant, that's why I considered Glassfish, as the reference implementation.
Have you ranchers ever used EasyBeans? If so, what are your feelings about it? Do you think it is a good option for me right now? Any problems encountered?
Thanks.
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know EasyBeans, but if you want to compare Glassfish versus JBoss, I really advice you to choose Glassfish. In my opinion, it is better than JBoss regarding the EJB3 specification. Also, JBoss uses a different JNDI name than the default pattern, it's boring.

In EJB 3.1 there will be a EJB light, where you do not need a full application server to run the EJBs, however it will be release in a soon future.
 
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Raf,

Give OpenEJB a try. It is super-fast, lightweight and closely integrates with Tomcat. It will also allow you to deploy EJBs directly in WEB-INF/classes.

I am a bit surprised to hear that you are having performance problems with GlassFish. I use it on my desktop without any noticeable impact (2 Gig processor, 515 MB memory). I would say GlassFish performance is on par with Tomcat on my machine. In addition GlassFish has a very polished console for application configuration that JBoss doesn't have. It's also almost a drag-and-drop experience using Java EE 5 annotations, as opposed to older, more XML based solutions.

As to the learning curve, most people I've seen find that Java EE 5 is very easy to pick-up, as is GlassFish. It's even better while using Seam. I would suggest getting a one-or-two days training course on Java EE 5...you'll see the difference pretty quickly :-).

Cheers,
Reza
 
Your mind is under my control .... your will is now mine .... read this tiny ad
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic