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

Pinned topic Class

‏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 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.

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

    Re: Class

    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().