This content has been marked as final.
Show 1 reply
-
1. Re: Test the Home Validity - avoid NullPointerException
wmprice Aug 28, 2003 10:53 PM (in response to noel.rocher)Hello,
In terms of a stateless session bean you should be ok regardless. If kept in session, the object should remain valid. However, I trust what you are trying not to do is serialzie the javax.ejb.Handle, and then recreate the reference at some later point. Of course you can always do:
if(ejbReference == null)
//Create new reference here
else
proceed
If I have missed something in your problem let me know.
Regards,
Weston