1 Reply Latest reply on Oct 9, 2012 4:31 AM by Wolf-Dieter Fink

    Same datasource with two different JNDI names

    Pasqualino Imbemba Newbie

      Hi,

       

      for legacy reasons I need the register the very same datasource with JBoss twice, i.e. with two different JNDI names.

      Is this possibile?

      So far, I use two different ds files with different JNDI names and different Security Domains set inside login-conf.xml, but I keep geeting org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.jboss.util.NestedSQLException: Unable to get managed connection for (JNDI name).

      I want to exclude this has something to do with the datasource configured as I did.

       

      Thanks in advance,

      ~pasquale

       

      Message was edited by: Pasqualino Imbemba: typo and better explanation