-->
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.  [ 1 post ] 
Author Message
 Post subject: Which is the best practice for use EJB and Hibernate?
PostPosted: Tue Mar 09, 2010 3:39 pm 
Newbie

Joined: Wed Mar 03, 2010 12:53 pm
Posts: 4
Which is the best practice for use EJB and Hibernate in a multi layer application (WEB,Logic, Data/Model)?
I would use EJB 3.0 and i thought that use Entities managed by Hibernate and Staless Session Beans that implements the application logic is good.
The dubt is about the interaction Web-Logic in which i would pass directly as session beans response entity object (detached) like simple beans that the view can use without problems.
Is more correct to divide completly the view from the logic implementing other beans or is this the correct way(use directly entities like beans)?
In the first case, what i can do for divide it? Exist a pattern that i can use or an API that can help me to do this?
In the second case, how i can pack the model+logic in a EAR and the WEB in another? The problem is that web need Session interfaces and bean classes.

I hope you can help me
Thanks

Best regard
R


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

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.