public class JoramAdapter
extends java.lang.Object
implements javax.resource.spi.ResourceAdapter, java.io.Serializable
endpointActivation
public void endpointActivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
throws ResourceException
Notifies the adapter to setup asynchronous message delivery for an
application server endoint.
endpointDeactivation
public void endpointDeactivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
Notifies the adapter to deactivate message delivery for a given endpoint.
equals
public boolean equals(Object o)
Compares adapters according to their properties.
getAdminFile
public java.lang.String getAdminFile()
getCnxPendingTimer
public java.lang.Integer getCnxPendingTimer()
getCollocatedServer
public java.lang.Boolean getCollocatedServer()
getConnectingTimer
public java.lang.Integer getConnectingTimer()
getHostName
public java.lang.String getHostName()
getPersistentPlatform
public java.lang.Boolean getPersistentPlatform()
getPlatformConfigDir
public java.lang.String getPlatformConfigDir()
getServerId
public Short getServerId()
getServerName
public java.lang.String getServerName()
getServerPort
public java.lang.Integer getServerPort()
getTxPendingTimer
public java.lang.Integer getTxPendingTimer()
getXAResources
public XAResource[] getXAResources(ActivationSpec[] specs)
throws ResourceException
Returns XA resources given an array of ActivationSpec instances.
hashCode
public int hashCode()
Returns a code depending on the adapter properties.
setAdminFile
public void setAdminFile(java.lang.String adminFile)
setCnxPendingTimer
public void setCnxPendingTimer(java.lang.Integer cnxPendingTimer)
setCollocatedServer
public void setCollocatedServer(java.lang.Boolean collocatedServer)
setConnectingTimer
public void setConnectingTimer(java.lang.Integer connectingTimer)
setHostName
public void setHostName(java.lang.String hostName)
setPersistentPlatform
public void setPersistentPlatform(java.lang.Boolean persistentPlatform)
setPlatformConfigDir
public void setPlatformConfigDir(java.lang.String platformConfigDir)
setServerId
public void setServerId(java.lang.Short serverId)
setServerName
public void setServerName(java.lang.String serverName)
setServerPort
public void setServerPort(java.lang.Integer serverPort)
setTxPendingTimer
public void setTxPendingTimer(java.lang.Integer txPendingTimer)
start
public void start(BootstrapContext ctx)
throws ResourceAdapterInternalException
Initializes the adapter; starts, if needed, a collocated JORAM server,
and if needed again, administers it.
stop
public void stop()
Notifies the adapter to terminate the connections it manages, and if
needed, to shut down the collocated JORAM server.