tnine
May 16th, 2005, 05:05 PM
Hi All,
I'm having an issue that I can't seem to find the answer to. I am trying to get the Hibernate DAO's I have defined to participate in an existing transaction. As a project requirement, we need to define our transactions at the EJB level. We are running clustered Remote Stateless beans on Jboss. I have defined the following below.
<bean id="myTransactionManager"
class="org.springframework.transaction.jta.JtaTransaction Manager">
However, the only place to reference a transactionmanager is within the org.springframework.transaction.interceptor.Transa ctionInterceptor. This is not what we want to do. We want the ejb invocation to invoke a spring getBean, then execute the implementation, leaving the transactional declaration to the EJB container. I cannot for the life of me find any examples of using the JtaTransactionManager to reference a containers transaction managment. Can anyone provide an example of getting the declarative transactions from the EJB container?
I'm having an issue that I can't seem to find the answer to. I am trying to get the Hibernate DAO's I have defined to participate in an existing transaction. As a project requirement, we need to define our transactions at the EJB level. We are running clustered Remote Stateless beans on Jboss. I have defined the following below.
<bean id="myTransactionManager"
class="org.springframework.transaction.jta.JtaTransaction Manager">
However, the only place to reference a transactionmanager is within the org.springframework.transaction.interceptor.Transa ctionInterceptor. This is not what we want to do. We want the ejb invocation to invoke a spring getBean, then execute the implementation, leaving the transactional declaration to the EJB container. I cannot for the life of me find any examples of using the JtaTransactionManager to reference a containers transaction managment. Can anyone provide an example of getting the declarative transactions from the EJB container?