Hibernate 4 and WebSphere / JTA
when looking through to debug some code recently i came across this...
package org.hibernate.service.jta.platform.internal;
public class WebSphereExtendedJtaPlatform extends AbstractJtaPlatform {
...
@Override
@SuppressWarnings( {"UnnecessaryBoxing"})
public Object getTransactionIdentifier(Transaction transaction) {
// WebSphere, however, is not a sane JEE/JTA container...
return Integer.valueOf( transaction.hashCode() );
}
...
}
brilliant!
No comments:
Post a Comment