Novell exteNd Messaging Platform 5.2

com.sssw.jts.api
Interface XAResourceHandleMapper


public interface XAResourceHandleMapper

Map an XAResource object to a handle that can be persisted.

For any given XAResources XAR1 and XAR2, XAR1.isSameRM(XAR2) is true iff toHandle(XAR1) has the same bytes as toHandle(XAR2).


Method Summary
 void release(XAResource resource)
          TM has completed its work on the resource.
 byte[] toHandle(XAResource resource)
          get a handle for the given XAResource.
 XAResource toXAResource(byte[] handle)
          get the XAResource for the given handle
 

Method Detail

toHandle

public byte[] toHandle(XAResource resource)
get a handle for the given XAResource.

Parameters:
resource - Resource whose handle is being requested.
Returns:
byte array representing a handle to the given resource. A null value indicates that the resource is not known.

toXAResource

public XAResource toXAResource(byte[] handle)
get the XAResource for the given handle

Parameters:
handle - Handle being requested.
Returns:
XAResource that belongs to the handle. A null value indicates that the handle is not known.

release

public void release(XAResource resource)
TM has completed its work on the resource. Any associated connections can be released into a connection pool.


Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.