[jboss-dev-forums] [Design of EJB 3.0] - Re: JNDI Bindings

ALRubinger do-not-reply at jboss.com
Wed Sep 17 01:23:54 EDT 2008


The following should be treated equally:

* @Stateful/@Stateless/@WhateverEJB.mappedName (or XML equivalent)
* jndi-name (jboss.xml)
* @RemoteBinding.jndiName

The question is, what to do in case of conflict?

@Stateless(mappedName="MyBean")
  | class MyEJB{...}

ejb-jar.xml:
<mappedName>MyBeanInSpecXML</mappedName>

jboss.xml:
<jndiName>MyBeanInJBossXML</jndiName>

I say make these additive (little harm in unintentional extra bindings).  The fail-fast would be to throw an error.

S,
ALR

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

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



More information about the jboss-dev-forums mailing list