Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

EJB 3: is it good time to start using it?

Thread view: 
aostrik@gmail.com - 12 Jun 2006 13:34 GMT
Hi ALL,

I want to start using EJB.
Since only JBoss supports that technology,
is it a good idea to start with EJB 3 or the time has not come yet?

Thanx.
Danno - 12 Jun 2006 17:38 GMT
> Hi ALL,
>
[quoted text clipped - 3 lines]
>
> Thanx.

I love it, so my answer is yes, and if you are designing a web app,
JBoss Seam is awesome!
Marc E - 12 Jun 2006 23:53 GMT
Wow. I think you're the first person i've heard who hasn't said "no way,
ejb3 still isn't as good as spring and hibernate".

what do you love about it? say i'm just starting out and want to ramp up,
get a quickie website going on my machine to kick the tires so to speak, see
what it's made of and how it might make life easier, where to start? what's
ejb3 have to offer that i can't get with a few plain old java objects and
anything else doable under tomcat?

>> Hi ALL,
>>
[quoted text clipped - 6 lines]
> I love it, so my answer is yes, and if you are designing a web app,
> JBoss Seam is awesome!
Danno - 13 Jun 2006 15:07 GMT
> Wow. I think you're the first person i've heard who hasn't said "no way,
> ejb3 still isn't as good as spring and hibernate".
[quoted text clipped - 4 lines]
> ejb3 have to offer that i can't get with a few plain old java objects and
> anything else doable under tomcat?

Well, if I were to point out one major thing that I like about it is
extensible persistence context.   That's the stateful mechanism that
comes with EJB3 that allows you to retreive information from your ORM
without the use of joins.  So essentially you can do....

Query query =  em.createQuery("from Customer where customer.id = :id");
query.setParameter("id", 560);
Customer customer = (Customer) query.getSingleResult();

//This is the power of EPC in a contrived example
customer.getOrders().get(4).getOrderItems().get(0).getProduct().getSales().get(3).getStartDate();

I can get any and all information I need on demand without having those
annoying join commands and persistance context destroyed exceptions.

EJB3 you can bundle with tomcat without an application server too.
Also with EJB3 everything is a POJO. So when you said "What's ejb3 have
to offer that i can't get with a few plain old java objects", it
sounded weird to me since everything is a POJO.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.