[jboss-dev-forums] [Design of EJB 3.0] - Kill Default Remote Binding if 1+ @RemoteBinding is specifie

ALRubinger do-not-reply at jboss.com
Fri Oct 24 03:09:07 EDT 2008


The current implementation treats @RemoteBinding as an additional binding to the defaults.  This makes for a situation that may present collisions.

Given:

@Stateless(name="MyBean")
  | @Remote(MyRemote.class)
  | @RemoteBinding(jndiBinding="MyBean")
  | class MyBean{...}

Right now this would produce:

/MyBean - Explicit from @RemoteBinding
  | /MyBean/remote - Default Remote Business Interface Proxy Binding

...this makes for a CCE when attempting a Context.bind() on the 2nd entry because "MyBean" would not be a subcontext.

So I'm going to make a rule that says:

"If at least one @RemoteBinding is specified, then the default remote business interface binding will not be applied."

Anyone see problems w/ this approach?

S,
ALR

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

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



More information about the jboss-dev-forums mailing list