[jboss-dev-forums] [Design of POJO Server] - Questionable, but working, fix for JBMETA-83
ALRubinger
do-not-reply at jboss.com
Sat Jul 26 00:47:03 EDT 2008
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166774#4166774
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166774
More information about the jboss-dev-forums
mailing list