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,
Message was edited by: Pasqualino Imbemba: typo and better explanation
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 ....