[jboss-dev-forums] [Design of EJB 3.0] - Re: JNDI Bindings
jaikiran
do-not-reply at jboss.com
Tue Sep 16 12:20:45 EDT 2008
"ALRubinger" wrote :
| So I read many @RemoteBindings as targeted to expose any N number of bindings for the Default Business Interface Proxy.
|
| So if we have:
|
| @RemoteBinding(jndiBinding="Busi1")
| | public interface MyBusinessInterface1{...}
| |
| | @RemoteBinding(jndiBinding="Busi2")
| | public interface MyBusinessInterface2{...}
| |
| | public interface MyBusinessInterface3{...}
| |
| | @Stateless
| | @RemoteBindings({
| | @RemoteBinding(jndiBinding="MyBean")
| | @RemoteBinding(jndiBinding="MySSLBean", clientBindUrl="sslsocket://0.0.0.0:3843")
| | })
| | public class MyBean implements MyBusinessInterface1, MyBusinessInterface2, MyBusinessInterface3{...}
|
| ..then we've defined @RemoteBindings at both the interface and EJB level. As a user I'd expect to find in the JNDI Tree:
|
| + Busi1 (Proxy implements MyBusinessInterface1)
| | + Busi2 (Proxy implements MyBusinessInterface2)
| | + MyBean (Proxy implements MyBusinessInterface1, MyBusinessInterface2, MyBusinessInterface3)
| | + MySSLBean ((Proxy implements MyBusinessInterface1, MyBusinessInterface2, MyBusinessInterface3) < Exposes SSL Transport
|
| This way, an interface-targeted JNDI Binding is specified at the interface level, and any @RemoteBinding(s) on the class level apply to all Remote Business Interfaces. And it'd require no API changes.
|
|
Going by what we are suggesting here, it looks like we are trying to provide an option for the bean developer to specify multiple bindings for the default business interface proxy.
1) One of the possible reasons, that i can think of, why the bean developer would want to do this is to provide a different transport to use. Is there any other valid reason why the developer would want to do this?
2) Does this multiple bindings apply on to Remote business interfaces? Is there any specific reason why the same reasoning can't be used to have something like @LocalBindings?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176864#4176864
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176864
More information about the jboss-dev-forums
mailing list