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 :
>
> ArrayList result = new ArrayList();
> Collection collection = usercompanyHome.findByLikeTrade(trade);
> Iterator iterator = collection.iterator();
> while(iterator.hasNext()){
> UserCompany usercompany = (UserCompany)iterator.next();--> line 2
> UserCompanyJB usercompanyJB = usercompany.getCompanyJB();
> result.add(usercompanyJB);
> }
>
> return result;
>
> 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 ??
IAS needed the 'narrow' because of its IIOP based
implementation. Historically, calls to narrow were needed so that the ORB
could associate the proper stubs with the object (bad explanation, but it
goes something like that). I'm told that some Java containers that run
over IIOP do not need this. For portability, you should always include the
call to narrow.
>
> Thanks wt
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
--
Dan Christopherson (danch)
nVisia Technical Architect (www.nvisia.com)
Opinions expressed are mine and do not neccessarily reflect any
position or opinion of nVISIA.
---------------------------------------------------------------------------
If you're a capitalist and you have the best goods and they're
free, you don't have to proselytize, you just have to wait.
-Eben Moglen
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user