The interface that is used will depend on the home interface that is looked up.

If the home interface that you lookup is the remote home interface you will use the 
remote interface to the bean.

If the home interface that you lookup is the local interface you will use the local 
interface of the bean.

You can test the interfaces to see if the are EJBHome / EJBLocalHome instances or 
EJBOBject or EJBLocalObject but the client should know which one it is using as for 
remote interfaces it will need to use PortableRemoteObject.narrow on the looked up 
interface (Although not required for JBoss PortableRemoteObject.narrow is required for 
J2EE apps if they are to be portable)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848212#3848212

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848212


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to