tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirchev, Lazar" <l.kirc...@sap.com>
Subject NameAlreadyBoundException when deploying two applications using one and the same custom DataSource
Date Fri, 06 Apr 2012 14:13:17 GMT
Hello,

I am writing in a relation to a problem with deploy of two applications using JPA from EJB.
They use identical (same id) custom DataSources, which are specified in the resources.xml
files.

When the second application is deployed a NameAlreadyBoundException is thrown because the
DataSource was already bound from the first application deployment. The binding is done in
Assembler.createResource(), line 1540, and the resource is bound in the container jndi context,
under openejb/Resource/<data_source_id>.

Is this a problem with custom DataSources, or I make the configuration of the custom DataSources
in a wrong way?

Lazar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message