[jboss-user] [EJB 3.0] - Re: How to look up one of the many interfaces that a bean im

2007-02-22 Thread ALRubinger
The value stored in JNDI is an object - a proxy object that implements the interfaces you define. So...no, you can't pull out an object that only implements one of the interfaces you've defined. However, you should be casting the proxy from JNDI into the interface you want... Interface1 myBea

[jboss-user] [EJB 3.0] - Re: How to look up one of the many interfaces that a bean im

2007-02-22 Thread forumer
This will do what I want - only easier! Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020869#4020869 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020869 ___ jbo

[jboss-user] [EJB 3.0] - Re: How to look up one of the many interfaces that a bean im

2007-02-22 Thread ALRubinger
Word. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020906#4020906 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020906 ___ jboss-user mailing list jboss-user@lists.

[jboss-user] [EJB 3.0] - Re: How to look up one of the many interfaces that a bean im

2007-02-24 Thread forumer
If I may revisit this again, this is what I am doing: | Interface MyRemoteIF extends Interface1, Interface2 | | @Remote(MyRemoteIF.class) | @RemoteBinding(JndiBinding="MyCompany/MySessionBean/remote") | public Class MySessionBean implements MyRemoteIF | | At the client: | I

[jboss-user] [EJB 3.0] - Re: How to look up one of the many interfaces that a bean im

2007-02-24 Thread ALRubinger
Right...so the proxy object is going to be created by JBoss and will implement all the interfaces you designate. When your client does a lookup for this object, it's going to get loaded by the classloader, along with all dependencies it has. So if the definition in the classfile is something li