Discussion:
@Singleton duplicate deployment ids
Matthew Broadhead
2017-11-25 22:32:06 UTC
Permalink
Hi,
I am sure I have had this problem before but I wondered if you could
clarify.
If I have 2 different webapps containing 2 singletons with the same
simple name I get
org.apache.openejb.assembler.classic.Assembler.createApplication
Application cannot be deployed as it contains deployment-ids which are
in use
if one is called
com.example.MySingleton
and the other is called
com.example2.MySingleton
then why do they clash?
What is the best way to avoid this?

Matthew
Romain Manni-Bucau
2017-11-26 09:52:25 UTC
Permalink
Default id is the ejbname - historical reason. You can tune it with a
system property to add the app name in the id.
Post by Matthew Broadhead
Hi,
I am sure I have had this problem before but I wondered if you could
clarify.
If I have 2 different webapps containing 2 singletons with the same simple
name I get
org.apache.openejb.assembler.classic.Assembler.createApplication
Application cannot be deployed as it contains deployment-ids which are in
use
if one is called
com.example.MySingleton
and the other is called
com.example2.MySingleton
then why do they clash?
What is the best way to avoid this?
Matthew
Loading...