• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Hibernate or EJB

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are developing an application and are planning to use Hibernate. But few are suggesting to go for EJB. The application basically contains adding new records, editing, removing, searching etc. So which one should i go for and can you also tell me about the performance of each. Application will be deployed using JBoss 4.5.

Thanks
Bunty Paul.
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By EJB, I presume you mean EJB 3.0 - JPA?

In which case, it's not really going to make much difference as you're using the JBoss technology stack either way.

Unless there's some good reason to use Hibernate, you may as well just use EJB 3.0 in the app server (which is based on Hibernate anyway). That will at least reduce your maintenance because you'll have one less thing to manage.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hibernate is an implementation of EJB 3.0 JPA. So it isn't an either or question. You can choose to make sure you only use the API classes of JPA, and not Hibernate specific add-ons to JPA.

Mark
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Personally, I think we should still have some patience with EJB 3 implementations. Most major vendor offer them, but it is still a rather new technology. I think that once we see one or two service packs for tje first GA EJB3 version we can start take this option seriously.

Im not always in favor of taking the cautious path but in this case I think you can enjoy most EJB3 features with plain old Hibernate (and Spring).

If you do take the EJB3 path, make sure you have a strong commitment and support from your application-server vendor representatives. You will need it.


Cheers.
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Yuval Goldstein:
Personally, I think we should still have some patience with EJB 3 implementations. Most major vendor offer them, but it is still a rather new technology. I think that once we see one or two service packs for tje first GA EJB3 version we can start take this option seriously.

Im not always in favor of taking the cautious path but in this case I think you can enjoy most EJB3 features with plain old Hibernate (and Spring).

If you do take the EJB3 path, make sure you have a strong commitment and support from your application-server vendor representatives. You will need it.


Cheers.



You do make is it sound like it is very new. But I will say that the Hibernate implementation of JPA is already about 2 years old. It is very mature and very stable. You do not need to be any more patient.

Mark
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:


You do make is it sound like it is very new. But I will say that the Hibernate implementation of JPA is already about 2 years old. It is very mature and very stable. You do not need to be any more patient.

Mark



Actually I think it is more than 2 years old. Because I have been using EJB3 in production for almost 2 years myself (Have found no issues at all to JBoss's implementation), and I know that Hibernate had some implementations of JPA well before that.

Mark
 
Yuval Goldstein
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BEA only released EJB 3 Support about a month ago.
JBoss did it a while ago but their EJB GA version is no more than 3 monnths old i think (the version that they say the recommend for production use).
IBM Websphere 6.1 with EJB? Only several months old.

If youre starting a 2 year (calendar time) project, go ahead, the technolcogy will be ok when the time for production comes but if your starting a tight 6 month project today, I recommend doing it the hibernate way,

I had (and still having) my own share of scary bleeding edge near-GA java products and i prefer to take it more slowly this time,
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Yuval Goldstein:
BEA only released EJB 3 Support about a month ago.
JBoss did it a while ago but their EJB GA version is no more than 3 monnths old i think (the version that they say the recommend for production use).
IBM Websphere 6.1 with EJB? Only several months old.

If youre starting a 2 year (calendar time) project, go ahead, the technolcogy will be ok when the time for production comes but if your starting a tight 6 month project today, I recommend doing it the hibernate way,

I had (and still having) my own share of scary bleeding edge near-GA java products and i prefer to take it more slowly this time,




there is a slight difference between fully passing Sun's tests to be "certified" but I promise you that the implementation by JBoss has been compliant for even longer than that. And it works very well in production. As I have experience using it in production for about 2 years now.

Not really bleeding edge in my experience. But that is fine, we can all have our own opinions.

Mark
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic