|
Sun Adapter for WebLogic API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.ejbadapter.eway.EjbEwayConnection
public class EjbEwayConnection
This class implements the EwayConnection interface for providing HTTP connection oriented services for the Eway/JCA framework.
Constructor Summary | |
---|---|
EjbEwayConnection()
|
Method Summary | |
---|---|
void |
cleanup()
Perform clean up of any resources or reset of any state held by the instance of EwayConnection. |
void |
destroy()
Release any resources prior to the destruction of the associated ManagedConnection. |
com.stc.connector.framework.client.AssociateableHandle |
getConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Get a new instance of the connection handle (application connection). |
java.lang.Object |
getEjbApp(java.lang.String appname)
Get a EJB (home/remote) stub as an java.lang.Object |
javax.resource.spi.LocalTransaction |
getLocalTransaction()
Get a LocalTransaction instance for local transaction demaracation. |
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
Get a new instance of the ManagedConnectionMetaData which contains connection information for the currently established connection. |
com.stc.connector.management.util.ObjectReference |
getMonitor()
getMBean
Convenient method to get the initialized mMonitor
(Is there anyone that will need this at a higher level?) |
javax.transaction.xa.XAResource |
getXAResource()
Get an XAResource instance for global transaction demaracation. |
void |
initialize(com.stc.connector.framework.eway.ManagedConnectionCallback aCallback,
javax.security.auth.Subject aSubject,
javax.resource.spi.ConnectionRequestInfo aConfiguration,
com.stc.connector.management.jca.system.mbeans.MonitorDataContainer aMonitorDataContainer)
Initialize the EwayConnection. |
boolean |
matchConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Determines whether this instance of the EwayConnection matches the the connection request with the connection information in Subject and/or ConnectionRequestInfo. |
void |
sendAlert(java.lang.String msg,
int level)
sendAlert
Wrapper for the mbean sendAlert method just in case the mbean
is not initialized properly/ |
void |
setMonitor(com.stc.connector.management.util.ObjectReference aValue)
setMBean
Implementing the STCManagedSlave interface to set up/register a callback so that
the connector framework can initialize the Mbean for this eway |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EjbEwayConnection()
Method Detail |
---|
public void initialize(com.stc.connector.framework.eway.ManagedConnectionCallback aCallback, javax.security.auth.Subject aSubject, javax.resource.spi.ConnectionRequestInfo aConfiguration, com.stc.connector.management.jca.system.mbeans.MonitorDataContainer aMonitorDataContainer) throws javax.resource.ResourceException
initialize
in interface com.stc.connector.framework.eway.EwayConnection
mcCallback
- The callback object for getting services from the
associated ManagedConnection.subject
- The Subject instance which holds the credentials for EIS
signon.cri
- The ConnectionRequestInfo instance which can hold both EIS
signon information or general connection specific information.
The ConnectionRequestInfo provided will contain the union of the
properties from the client connection request properties, the
ResourceAdapter properties, and the ManagedConnectionFactory
properties.
javax.resource.ResourceException
- upon error.public com.stc.connector.framework.client.AssociateableHandle getConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
getConnection
in interface com.stc.connector.framework.eway.EwayConnection
subject
- The Subject instance which holds the credentials for EIS
signon.cri
- The ConnectionRequestInfo instance which holds both EIS EIS
signon information or general connection specific information.
The ConnectionRequestInfo provided will contain the union of the
properties from the client connection request properties, the
ResourceAdapter properties, and the ManagedConnectionFactory
properties.
javax.resource.ResourceException
- upon error.public void cleanup() throws javax.resource.ResourceException
cleanup
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.public void destroy() throws javax.resource.ResourceException
destroy
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
getLocalTransaction
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.public javax.transaction.xa.XAResource getXAResource() throws javax.resource.ResourceException
getXAResource
in interface com.stc.connector.framework.eway.EwayConnection
javax.resource.ResourceException
- upon error.public boolean matchConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri)
matchConnection
in interface com.stc.connector.framework.eway.EwayConnection
subject
- The Subject instance which holds the credentials for EIS
signon.cri
- The ConnectionRequestInfo instance which holds both EIS EIS
signon information or general connection specific information.
The ConnectionRequestInfo provided will contain the union of the
properties from the client connection request properties, the
ResourceAdapter properties, and the ManagedConnectionFactory
properties.
public java.lang.Object getEjbApp(java.lang.String appname) throws javax.resource.ResourceException
appname
- The idl interface full path name, e.g., demo.grid.MySerevr
javax.resource.ResourceException
- upon errorpublic void setMonitor(com.stc.connector.management.util.ObjectReference aValue)
setMBean
Implementing the STCManagedSlave interface to set up/register a callback so that
the connector framework can initialize the Mbean for this eway
setMonitor
in interface com.stc.connector.management.STCManagedSlave
Object
- the mbean to be set by the frameworkpublic com.stc.connector.management.util.ObjectReference getMonitor()
getMBean
Convenient method to get the initialized mMonitor
(Is there anyone that will need this at a higher level?)
none
-
public void sendAlert(java.lang.String msg, int level)
sendAlert
Wrapper for the mbean sendAlert method just in case the mbean
is not initialized properly/
msg
- the message to be displayedlevel
- the event level for eMonitor
|
Sun Adapter for WebLogic API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |