-->
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: Patterns for non-web application...
PostPosted: Wed May 06, 2009 2:19 pm 
Newbie

Joined: Thu Feb 24, 2005 10:50 pm
Posts: 7
Hi,

I'm currently working on a batch/job processing application using JPA (Hibernate) and EJBs and I was wondering if there was existing patterns to manage transaction demarcation and lazy initialization exception problem... Currently all of my DAO are stateless EJBs and it works great until you need to access a lazy collection...

I've implemented the Command pattern as suggested in Java Persistence With Hibernate (Chapter 16) but I don't think the other devs in my team will like this approach (having to write a new command class each time you need to initialize a lazy collection)...

All Hibernate documentation seems to be about developing web application and there seems to be a lack of how-to for other type of application...

Like I can't use the OpenSessionInView pattern in the kind of application we develop here...

Any ideas or recommendations would be much appreciated!

Thanks

Christian


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.