| Niranjan Soni 2005-01-05, 7:55 am |
| Hi All
I am currently migration EJB Code of my WCS 5.1 application to make it
compliant with WC 5.6. There are couple of things which are not clear to me
and i couldn't find any explanation in any of the Redbooks as well.
1. The migration guide talks about removing java.rmi.RemoteException from
certain methods within EJB Code. The methods which are pointed out are
ejbCreate, ejbPostCreate, ejbActivate, ejbPassivate, ejbLoad,
ejbStore,ejbRemove and All Remote Methods.
What about methods getEntityContext, setEntityContext and unsetEntityContext
methods for Entity Beans and getSessionContext and setSessionContext for
Session Beans? EJB Code in my application has RemoteException in throws
clause for these methods as well.
2. As pointed out in the above point that RemoteException needs to be
removed from ejbRemove method as well, but when i try to do it i get error
in my ejb code as ejbRemove is calling a method
_removeLinks()
This method is generated by default when we create EJB for WCS 5.1. The
implementation of this method is provided in the same ejb code and is
throwing RemoteException and RemoveException and the code inside this
method's implementation is forcing it to throw the remote exception. Under
this situation, how can i remove the RemoteException from ejbRemove method?
Thanks to all in advance
Niranjan Soni
|