HI all!! My idea is to keep Entity Beans in client side and set fetch to LAZY. Session Beans returns Entity Instances with empty references. If I get empty reference I catch Lazy exception and call another session bean method that returns full reference and I replace empty reference with return value from remote server. I WOULD LIKE DO IN THIS WAY but don't know if it is possible. code example:
| try{ | customer.getListOfPhones() | }catch(lazyexception e){ | customer.setListOfPhones(UserRemoteInterface.getListofPhonesByCustId(customer.getId)) | } | I don't even know if it's possible what do you think? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911158#3911158 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911158 ------------------------------------------------------- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user