Yes u shld use the PortableRemoteObject.narrow() method. The short
reason for this 
Is is this will ensure that ur code is portable across different
software 
Platforms(Corba, EJB)


Thanks,
Satish
-----Original Message-----
From: Viral_Thakkar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 28, 2004 1:19 PM
To: Struts Users Mailing List
Subject: PortableRemoteObject.narrow() 


Hi All,
 
This is an EJB question. Sorry to put this in struts forum.
 
I am using servicelocator component to get the EJB home object. Method
inside this component uses PortableRemoteObject.narrow() to get the Home
object after Jndi lookup.
 
I also uses Business Delegate component which has init() method and
wrapper business methods. 
 
Should I also need to do PortableRemoteObject.narrow() in init() method
of BD? Here I get the remote object from Home by home.create() method.
 
In short, should I use PortableRemoteObject.narrow() casting for
home.create() method?
 
Regards,
Viral 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to