1 Reply Latest reply on Oct 9, 2012 4:31 AM by wdfink

    Same datasource with two different JNDI names

    pi4630

      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

        • 1. Re: Same datasource with two different JNDI names
          wdfink

          There is no restriction for the DS deployment. You might use the same or different datasources with the same or different credentials.

          What if you use only the one which is not working for test, I suppose there is a problem here in general.

           

          If you have further questions you should post a bit more informations about your version, DS files, login-conf ....