Package org.apache.jackrabbit.rmi.server
Class ServerXASession
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.ServerSession
-
- org.apache.jackrabbit.rmi.server.ServerXASession
-
- All Implemented Interfaces:
Serializable,Remote,RemoteSession,RemoteXASession
@Deprecated public class ServerXASession extends ServerSession implements RemoteXASession
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote adapter for XA-enabled sessions.
- Since:
- 1.4
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerXASession(Session session, XAResource resource, RemoteAdapterFactory factory)Deprecated.Creates a remote adapter for the given local, transaction enabled, session.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcommit(Xid xid, boolean onePhase)Deprecated.Remote version of theXAResource.commit(Xid, boolean)method.voidend(Xid xid, int flags)Deprecated.Remote version of theXAResource.end(Xid, int)method.voidforget(Xid xid)Deprecated.Remote version of theXAResource.forget(Xid)method.intgetTransactionTimeout()Deprecated.Remote version of theXAResource.getTransactionTimeout()method.intprepare(Xid xid)Deprecated.Remote version of theXAResource.prepare(Xid)method.Xid[]recover(int flag)Deprecated.Remote version of theXAResource.recover(int)method.voidrollback(Xid xid)Deprecated.Remote version of theXAResource.rollback(Xid)method.booleansetTransactionTimeout(int seconds)Deprecated.Remote version of theXAResource.setTransactionTimeout(int)method.voidstart(Xid xid, int flags)Deprecated.Remote version of theXAResource.start(Xid, int)method.-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerSession
addLockToken, exportDocumentView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getItem, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNode, getNodeByIdentifier, getNodeByUUID, getProperty, getRootNode, getUserID, getWorkspace, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix
-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteSession
addLockToken, exportDocumentView, exportSystemView, getAccessControlManager, getAttribute, getAttributeNames, getItem, getLockTokens, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getNode, getNodeByIdentifier, getNodeByUUID, getProperty, getRootNode, getUserID, getWorkspace, hasPendingChanges, hasPermission, impersonate, importXML, isLive, itemExists, logout, move, nodeExists, propertyExists, refresh, removeItem, removeLockToken, save, setNamespacePrefix
-
-
-
-
Constructor Detail
-
ServerXASession
public ServerXASession(Session session, XAResource resource, RemoteAdapterFactory factory) throws RemoteException
Deprecated.Creates a remote adapter for the given local, transaction enabled, session.- Throws:
RemoteException
-
-
Method Detail
-
commit
public void commit(Xid xid, boolean onePhase) throws XAException
Deprecated.Description copied from interface:RemoteXASessionRemote version of theXAResource.commit(Xid, boolean)method.- Specified by:
commitin interfaceRemoteXASession- Throws:
XAException
-
end
public void end(Xid xid, int flags) throws XAException
Deprecated.Description copied from interface:RemoteXASessionRemote version of theXAResource.end(Xid, int)method.- Specified by:
endin interfaceRemoteXASession- Throws:
XAException
-
forget
public void forget(Xid xid) throws XAException
Deprecated.Description copied from interface:RemoteXASessionRemote version of theXAResource.forget(Xid)method.- Specified by:
forgetin interfaceRemoteXASession- Throws:
XAException
-
getTransactionTimeout
public int getTransactionTimeout() throws XAExceptionDeprecated.Description copied from interface:RemoteXASessionRemote version of theXAResource.getTransactionTimeout()method.- Specified by:
getTransactionTimeoutin interfaceRemoteXASession- Throws:
XAException
-
prepare
public int prepare(Xid xid) throws XAException
Deprecated.Description copied from interface:RemoteXASessionRemote version of theXAResource.prepare(Xid)method.- Specified by:
preparein interfaceRemoteXASession- Throws:
XAException
-
recover
public Xid[] recover(int flag) throws XAException
Deprecated.Description copied from interface:RemoteXASessionRemote version of theXAResource.recover(int)method.- Specified by:
recoverin interfaceRemoteXASession- Throws:
XAException
-
rollback
public void rollback(Xid xid) throws XAException
Deprecated.Description copied from interface:RemoteXASessionRemote version of theXAResource.rollback(Xid)method.- Specified by:
rollbackin interfaceRemoteXASession- Throws:
XAException
-
setTransactionTimeout
public boolean setTransactionTimeout(int seconds) throws XAExceptionDeprecated.Description copied from interface:RemoteXASessionRemote version of theXAResource.setTransactionTimeout(int)method.- Specified by:
setTransactionTimeoutin interfaceRemoteXASession- Throws:
XAException
-
start
public void start(Xid xid, int flags) throws XAException
Deprecated.Description copied from interface:RemoteXASessionRemote version of theXAResource.start(Xid, int)method.- Specified by:
startin interfaceRemoteXASession- Throws:
XAException
-
-