Topic
  • 1 reply
  • Latest Post - ‏2012-10-08T08:15:58Z by JonHawkes
ZacharakisKonstantinos
3 Posts

Pinned topic Class com.ibm.tx.jta.ExtendedTransactionManager

‏2012-10-04T15:05:51Z |
Hello all,

I am trying to migrate an application running in WAS 6.1 to WAS 8.
The following source causes a compilation error: The type com.ibm.tx.jta.ExtendedTransactionManager cannot be resolved. It is indirectly referenced from required .class files

Probably this is a classpath issue, but i am not able to locate the correct jar in any of the WAS8 libraries.
WebSphereTransactionManager tsx = TransactionManagerFactory.getTransactionManager();
if ( tsx != null && tsx.getTransaction() != null ) {
isStarted = ( Status.STATUS_ACTIVE == tsx.getTransaction().getStatus() );
}

Any help, would be apreciated.

Regards
Kostas
Updated on 2012-10-08T08:15:58Z at 2012-10-08T08:15:58Z by JonHawkes
  • JonHawkes
    JonHawkes
    7 Posts

    Re: Class com.ibm.tx.jta.ExtendedTransactionManager

    ‏2012-10-08T08:15:58Z  
    WebSphereTransactionManager is a private interface which is not supported for use outside the WAS codebase.

    You should use UOWManager.getUOWStatus() for this.

    Get a UOWManager instance from JNDI as described in the infocenter or via UOWManagerFactory.getUOWManager().