Hello,
I would like to see if this solves your problem...
Add this line to your persistence.xml file:
Code:
<property name="hibernate.transaction.jta.platform" value="biz.bitech.hibernate.websphere.WebSphereJtaPlatform"/>
...and add a global shared library to WebSphere containing this class:
Code:
package biz.bitech.hibernate.websphere;
import javax.transaction.TransactionManager;
import javax.transaction.UserTransaction;
import com.ibm.tx.jta.TransactionManagerFactory;
import com.ibm.tx.jta.UserTransactionFactory;
import org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform;
public class WebSphereJtaPlatform extends AbstractJtaPlatform {
public WebSphereJtaPlatform() {
}
@Override
protected TransactionManager locateTransactionManager() {
return TransactionManagerFactory.getTransactionManager();
}
@Override
protected UserTransaction locateUserTransaction() {
return UserTransactionFactory.getUserTransaction();
}
}