-->
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: Multi-tiered architecture + CGLIB
PostPosted: Fri Mar 12, 2004 6:23 am 
Newbie

Joined: Thu Mar 11, 2004 5:39 am
Posts: 13
Hi,
I have a persistent bean, that uses lazy loading with CGLIB. Hence, I need to have cglib.jar in my classpath. Is there any possibility to remove any dependancy between my bean and cglib.jar once my bean is fully loaded? doing so I'll be able to send my bean to the presentation layer which doesn't have cglib.jar in its classpath.
i have been told that Hibernate.initialize(bean) might do that but I'm not sure...
any clue?
thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 6:54 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
HibernateProxyHelper.getLazyInitializer((HibernateProxy)myObj).getImplementation();


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 9:19 am 
Newbie

Joined: Thu Mar 11, 2004 5:39 am
Posts: 13
got it!
it works great!
thanks a lot :-)


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.