WebSphere Commerce suite - EJB Code Migration from WCS 5.1 to WC 5.6

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Commerce suite > January 2005 > EJB Code Migration from WCS 5.1 to WC 5.6





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author EJB Code Migration from WCS 5.1 to WC 5.6
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




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com