IAS claims that the spec requires you to use PortableRemoteObject.narrow() on objects in the Collection returned in a find(). Monson-Haefel backs this up on p.135 of Enterprise JavaBeans (2nd Edition). The spec seems to imply that its a good idea to do PortableRemoteObject.narrow() in this situation, but never says so explicitly, or gives an example where this is done.
So is this really a requirement? I know that for the code to work in a straight RMI (no CORBA) implementation, its not necessary, since the Collection contains actual EJBObjects. However SHOULD it be used anyway? Is it bad form NOT to use it?
-Dan
Dragan Milic wrote:
Hello ricky,On Fri, 23 Mar 2001, Ricky wrote:
>
> Hi all , I am using Linux6.1 , jdk1.3 , postgresql7.0.2 and jboss2.1.
>
> I have a question regarding finder method code below :
> ....
>
> Why in the line 2 , i do not need the PortableRemoteObject.narrow() ?
> Cause why i tried to put the code in the IAS4.1.1 container , it
> complained.
>
> Anybody any ideas why jboss do not need the PortableRemoteObject
> method to get the remote reference ??
>jboss uses RMI and not corba as framework fo distributed objects, with
corba you must narrow() the references and with RMI you don't have to ..Dragan
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
-- Daniel G. Koulomzin Sr. Software Engineer Digital Media On Demand 244 Brighton Ave. 3rd Floor Allston MA 02134