-->
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: Ignored Hibernate Question Regarding Web Services
PostPosted: Fri May 08, 2009 11:21 pm 
Beginner
Beginner

Joined: Sat Feb 07, 2009 12:31 am
Posts: 21
Are you tired of banging your head against wall because of the infamous LazyInitializationException? You're not the only one. Exposing your EJBs that return JPA entities as a web service is really bugging most developers crazy.

Or are hibernate entity objects shouldn't be used as a return type for any web methods in a web service? This is not only applicable to web services, it is also applicable to all scenarios where the entity bean is being inspected during marshaling and unmarshalling.

For more information, read the articles below:

http://www.techienuggets.com/Detail?tx=15869
https://forum.hibernate.org/viewtopic.php?f=1&t=971390&p=2342092&hilit=LazyInitializationException+WebService#p2342092

Perhaps maybe hibernate is not really meant for web services if you're using FetchType=LAZY yeah? Or you might provide your boiler plate for iterating the whole object graph and setting null all properties that are proxies, and if you're working on an EJB, you will be forced to use bean managed transaction to do this.

Is there an elegant solution to this most ignored hibernate problem? Anyone?

_________________
A good framework is hard to misuse or it's obvious when you misuse it.


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.