-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: do I need to use EJB3?
PostPosted: Sun Jul 12, 2009 11:48 am 
Newbie

Joined: Mon Jul 06, 2009 10:38 am
Posts: 17
I'm developing a web app and it runs on Tomcat using Java/AJAX/MySQL. Currently
we're just using this app to give our users quotes based on information they enter. This
is where hibernate comes into play. I'm using Hibernate Entity Manager right now
and have the Entity Manager application-managed. We're also using a JDBC url to
connect to the database in our persistence.xml. Should I be using EJB's with openEJB
and Tomcat? This isn't a big web app and I'm trying to figure out if it's worth the extra
time to invest in setting up EJB's based on what I have now. Thanks.


Top
 Profile  
 
 Post subject: Re: do I need to use EJB3?
PostPosted: Sun Jul 12, 2009 3:39 pm 
Regular
Regular

Joined: Fri Jan 30, 2009 10:10 am
Posts: 74
Location: London
Is there any particular functionality that you expect EJB to bring to your application?

Are you using anything to set up your EntityManagers, such as Spring or some other dependency injection framework?


--
Stephen Souness


Top
 Profile  
 
 Post subject: Re: do I need to use EJB3?
PostPosted: Mon Jul 13, 2009 11:10 am 
Newbie

Joined: Mon Jul 06, 2009 10:38 am
Posts: 17
I guess after switching to Hibernate Entity Manager, all the guides seem to say to use EJB3 with a managed JTA layer, etc. I don't know if we need all that. The features that I think we could benefit from would be the ability to inject an entity manager instance into our code and have something that manages our transactions, so we don't have to manually open/close transactions. I don't know much about Spring, but it appears that you might be able to do this with Spring. Can anyone confirm this? We're eventually going to put this system on the market and the J2EE spec seems to say that the applications should be container-managed instead of application-managed. Can someone point me to a starting point to how to do this with Spring? Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.