Are you calling commission.getSupplier(); on the client side or within the 
session bean ? 

If you are calling it on the client side you will get a LazyException as you 
are trying to access an object outside of it's persistent context. In this case 
to fix the problem you will need to either:
1.) fetch the associated objects within the session bean and return both to the 
client
2.) Set the type to EAGER if the two objects are closely related. (Composition 
Relationship ???)

I hope this helps. If you have further input please send it.

Alex
ejb3workshop.com
Video Podcasts on EJB3


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917344#3917344

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917344


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to