4 Replies Latest reply on Jul 26, 2008 6:41 PM by alrubinger

    Questionable, but working, fix for JBMETA-83

    alrubinger

      https://jira.jboss.org/jira/browse/JBMETA-83

      When a mappedName for an EJB is equal to the deplomentScopeBaseName (ie. EAR name), BasicJndiBindingPolicy will issue conflicts because the mappedName will have been bound, and hence become an invalid target for a SubContext as a base.

      So my solution was when these two properties match, append a "_" to the baseName and issue a warning to the user:

      23:42:44,521 WARN [BasicJndiBindingPolicy] The EAR name, which is used as a base, is equal to the mappedName for EJB "AroundInvokeBean", to avoid JNDI Naming Conflict appending a '_' to the base JNDI name. [JBMETA-83]


      If anyone's got a more elegant idea, all ears.

      S,
      ALR