You'll (unfortunately) have to query the MBean server and check each registered MBean.
The names have to be tagged with a unique id, since the the same named EJB can be present.
I don't really know the particulrs. I would have expected, if there were conflicts something like "instance=1" to "instance=n" would have been added to the name.
thank you for reply.
here is allready a topic about this problem:
<message-driven> [...] <local-jndi-name>local/docImportProcessorEJB</local-jndi-name> [...] </message-driven>
now it works for me.
but i'm not sure, if i have a new (hidden) problem, when i overlay the jndi-name!?