I'm trying to use 'TransactionSynchronizationRegistry
' via EJB injection in a session bean. However during deployment on a weblogic App Server i got the error that 'TransactionSynchronizationRegistry
' is not properly defined in weblogic-ejb-jar.xml. I tried to do that but with no success so far. I tried doing the following:
<?xml version = '1.0' encoding = 'windows-1252'?>
<weblogic-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-ejb-jar http://www.bea.com/ns/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd"
xmlns="http://www.bea.com/ns/weblogic/weblogic-ejb-jar">
<weblogic-enterprise-bean>
<ejb-name>asdas</ejb-name>
<resource-description>
<res-ref-name>TransactionSynchronizationRegistry</res-ref-name>
<jndi-name>java:comp/env/TransactionSynchronizationRegistry</jndi-name>
</resource-description>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>