Package org.apache.jackrabbit.rmi.client
Class ClientXASession
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- org.apache.jackrabbit.rmi.client.ClientSession
-
- org.apache.jackrabbit.rmi.client.ClientXASession
-
- All Implemented Interfaces:
Session,XAResource
@Deprecated public class ClientXASession extends ClientSession implements XAResource
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Local adapter for the JCR-RMI
RemoteXASessioninterface.- Since:
- 1.4
-
-
Field Summary
-
Fields inherited from interface javax.jcr.Session
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY
-
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
-
-
Constructor Summary
Constructors Constructor Description ClientXASession(Repository repository, RemoteXASession remote, LocalAdapterFactory factory)Deprecated.Creates a client adapter for the given remote session which is transaction enabled.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcommit(Xid xid, boolean onePhase)Deprecated.voidend(Xid xid, int flags)Deprecated.voidforget(Xid xid)Deprecated.intgetTransactionTimeout()Deprecated.booleanisSameRM(XAResource xares)Deprecated.Returnstrueif the given object is a local adapter that refers to the same remote XA resource.intprepare(Xid xid)Deprecated.Xid[]recover(int flag)Deprecated.voidrollback(Xid xid)Deprecated.booleansetTransactionTimeout(int seconds)Deprecated.voidstart(Xid xid, int flags)Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientSession
addLockToken, checkPermission, exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getImportContentHandler, getItem, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNode, getNodeByIdentifier, getNodeByUUID, getProperty, getRepository, getRetentionManager, getRootNode, getUserID, getValueFactory, getWorkspace, hasCapability, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix
-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
-
-
-
Constructor Detail
-
ClientXASession
public ClientXASession(Repository repository, RemoteXASession remote, LocalAdapterFactory factory)
Deprecated.Creates a client adapter for the given remote session which is transaction enabled.
-
-
Method Detail
-
isSameRM
public boolean isSameRM(XAResource xares) throws XAException
Deprecated.Returnstrueif the given object is a local adapter that refers to the same remote XA resource.- Specified by:
isSameRMin interfaceXAResource- Throws:
XAException- See Also:
- http://blogs.sun.com/fkieviet/entry/j2ee_jca_resource_adapters_the
-
commit
public void commit(Xid xid, boolean onePhase) throws XAException
Deprecated.- Specified by:
commitin interfaceXAResource- Throws:
XAException
-
end
public void end(Xid xid, int flags) throws XAException
Deprecated.- Specified by:
endin interfaceXAResource- Throws:
XAException
-
forget
public void forget(Xid xid) throws XAException
Deprecated.- Specified by:
forgetin interfaceXAResource- Throws:
XAException
-
getTransactionTimeout
public int getTransactionTimeout() throws XAExceptionDeprecated.- Specified by:
getTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
prepare
public int prepare(Xid xid) throws XAException
Deprecated.- Specified by:
preparein interfaceXAResource- Throws:
XAException
-
recover
public Xid[] recover(int flag) throws XAException
Deprecated.- Specified by:
recoverin interfaceXAResource- Throws:
XAException
-
rollback
public void rollback(Xid xid) throws XAException
Deprecated.- Specified by:
rollbackin interfaceXAResource- Throws:
XAException
-
setTransactionTimeout
public boolean setTransactionTimeout(int seconds) throws XAExceptionDeprecated.- Specified by:
setTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
start
public void start(Xid xid, int flags) throws XAException
Deprecated.- Specified by:
startin interfaceXAResource- Throws:
XAException
-
-