Is narrowing required on return object(EJBHome) when we call getEJBHome() on EJBObject stub?
I assume this method usage is much less with stateless bean when compared to statefull bean and entity bean. Because we have different way of creating beans here which is NOT in statless bean.Hope i m right. If somebody has more information about this method usage, please share with me.
Hi, The narrow() method is used when a remote reference to an EJB home or EJB object is returned without a specific Remote interface type. That means in following cases:
1) when you do lookup 2) when getting home or remote interface from the handles. 3) Get the home from EJBMetaData 4)When getting EJB object in a collection returned by a Home interface finder method 5) EJB object is returned from any business method