-->
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.  [ 2 posts ] 
Author Message
 Post subject: look for Architecture advice
PostPosted: Tue May 25, 2004 5:18 pm 
Newbie

Joined: Tue May 25, 2004 4:56 pm
Posts: 2
hi

i want to implement three tiered application with a java server background and .net client part . I plan to use "JANEVA" a borland connector to my server J2ee side ,and it's just compatible with EJB or CORBA.
right
in the server side i want to persist data with HIBERNATE cuz CMP sound bad for me (i just begin in ejb) so how can i implement my buisness layer know that i should use at least an EJB sessionfacade (for janeva) :
-using spring.
-or using dao coupling to ejb.


in the two case i have no idea of how to do this so if you have any link with complete tutorial wiring spring ejb and hibernate it will welcom.

or completely other idea.........

help me please !


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 25, 2004 9:27 pm 
Expert
Expert

Joined: Thu Jan 08, 2004 6:17 pm
Posts: 278
Write some simple session beans.

Set their transaction attribute to "Required".

Write POJO Hibernate code inside your session bean methods.

Presto, you've got Hibernate persistence inside your session beans.

Forget about Spring until you get the basic EJB stuff working -- if you have this much confusion about that alone, then you aren't ready for Spring.

Forget about DAOs too until you have some simple session beans that can store and load Hibernate data. Once you have a simple little prototype running, then you can refactor it to hide your Hibernate logic.

Cheers!
Rob


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.