|
Oracle Fusion Middleware User Messaging Service 11.1.1.3.0 Java API Reference E14011-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectoracle.sdp.messaging.driver.DriverManagedConnectionBase
public abstract class DriverManagedConnectionBase
Base implementation of the DriverManagedConnection interface. This implements
all the common methods defined in the
javax.resource.spi.ManagedConnection interface.
The driver provider should extend this base class and implement all the
remaining methods defined in the DriverManagedConnection interface (namely,
the DriverConnection interface).
For example:
public class XXXManagedConnetion extends DriverManagedConnetionBase implements DriverManagedConnection {
...
public List<DriverSendingStatus> send(Message message) {
// send the message
...
}
...
}
| Field Summary |
|---|
| Fields inherited from interface oracle.sdp.messaging.driver.DriverConnection |
|---|
MESSAGE_ID_MAX_LENGTH |
| Constructor Summary | |
|---|---|
DriverManagedConnectionBase(Properties adapterProperties)
|
|
| Method Summary | |
|---|---|
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
|
void |
associateConnection(java.lang.Object conn)
|
void |
cleanup()
|
java.lang.Object |
getConnection(javax.security.auth.Subject sub,
javax.resource.spi.ConnectionRequestInfo info)
|
DriverContext |
getDriverContext()
Get access to the DriverContext associated with this managed connection. |
Properties |
getDriverProperties()
Get the driver configuration properties. |
javax.resource.spi.LocalTransaction |
getLocalTransaction()
|
PrintWriter |
getLogWriter()
|
MessageListener |
getMessageListener()
This provides the ability to a non-JCA driver component to get the callback message listener for inbound messaging (and status reporting) from this driver connection. |
javax.resource.spi.ManagedConnectionMetaData |
getMetaData()
|
javax.transaction.xa.XAResource |
getXAResource()
|
void |
processHttpServletRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This is a helper method defined for drivers that have HTTP based protocols, and use a servlet to process incoming HTTP requests. |
void |
removeConnection(DriverConnection conn)
Remove a client connection instance associated with this managed connection. |
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
|
void |
setDriverContext(DriverContext context)
Set the DriverContext instance associated with this managed connection. |
void |
setLogWriter(PrintWriter writer)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.sdp.messaging.driver.DriverConnection |
|---|
cancel, close, getStatus, getWorkingState, registerMessageListener, replace, send, unregisterMessageListener |
| Methods inherited from interface javax.resource.spi.ManagedConnection |
|---|
destroy |
| Constructor Detail |
|---|
public DriverManagedConnectionBase(Properties adapterProperties)
| Method Detail |
|---|
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
addConnectionEventListener in interface javax.resource.spi.ManagedConnectionManagedConnection.addConnectionEventListener(javax.resource.spi.ConnectionEventListener)
public void associateConnection(java.lang.Object conn)
throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.associateConnection(java.lang.Object)
public void cleanup()
throws javax.resource.ResourceException
cleanup in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.cleanup()
public java.lang.Object getConnection(javax.security.auth.Subject sub,
javax.resource.spi.ConnectionRequestInfo info)
throws javax.resource.ResourceException
getConnection in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getConnection(javax.security.auth.Subject, javax.resource.spi.ConnectionRequestInfo)public DriverContext getDriverContext()
DriverManagedConnection
getDriverContext in interface DriverManagedConnectionpublic Properties getDriverProperties()
public javax.resource.spi.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getLocalTransaction()
public PrintWriter getLogWriter()
throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getLogWriter()
public MessageListener getMessageListener()
throws DriverException
DriverConnection
getMessageListener in interface DriverConnectionDriverException - if there is no registered message listener.
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getMetaData()
public javax.transaction.xa.XAResource getXAResource()
throws javax.resource.ResourceException
getXAResource in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.getXAResource()
public void processHttpServletRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws DriverException
DriverConnectionSampleReceiveServlet code part of the sample driver
distribution.
processHttpServletRequest in interface DriverConnectionrequest - the HTTP servlet request objectresponse - the HTTP servlet response object
DriverException - if there was an error during this operation.public void removeConnection(DriverConnection conn)
conn - the client connection instancepublic void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
removeConnectionEventListener in interface javax.resource.spi.ManagedConnectionManagedConnection.removeConnectionEventListener(javax.resource.spi.ConnectionEventListener)public void setDriverContext(DriverContext context)
DriverManagedConnection
setDriverContext in interface DriverManagedConnectioncontext - the DriverContext to associate with this managed connection.
public void setLogWriter(PrintWriter writer)
throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionjavax.resource.ResourceExceptionManagedConnection.setLogWriter(java.io.PrintWriter)
|
Oracle Fusion Middleware User Messaging Service 11.1.1.3.0 Java API Reference E14011-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||