java.lang.Object | +--com.ibm.commerce.messaging.adapters.jcasample.SampleManagedConnectionFactory
This is the factory class used by WAS to create physical connection for SampleConnector. It implements the connection management interface (the server part) of the application server contract.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
Constructor Summary | |
---|---|
SampleManagedConnectionFactory() Default constructor |
Method Summary | |
---|---|
java.lang.Object |
createConnectionFactory() Creates a SampleConnectionFactory. |
java.lang.Object |
createConnectionFactory(ConnectionManager cm) Creates a SampleconnectionFactory using ConnectionManager. |
ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
ConnectionRequestInfo info) Creates a SampleManagedConnection. |
ConnectionManager |
getConnectionManager() Gets a connection manager |
java.lang.String |
getInput() Gets input |
java.io.PrintWriter |
getLogWriter() Gets the log writer |
java.lang.String |
getPassword() Gets password |
int |
getTraceLevel() Gets traceLevel |
java.lang.String |
getUserName() Gets userName |
ManagedConnection |
matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject, ConnectionRequestInfo info) Matches the managed connections |
void |
setInput(java.lang.String theInput) Sets input |
void |
setLogWriter(java.io.PrintWriter pw) Sets the log writer |
void |
setPassword(java.lang.String password) Sets password |
void |
setUserName(java.lang.String userName) Sets user name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public SampleManagedConnectionFactory()
Method Detail |
---|
public java.lang.Object createConnectionFactory(ConnectionManager cm) throws ResourceException
cm
- ConnectionManagerjavax.resource.ResourceException
- Raised when failed to
create a instace of SampleConnectionFactory.ResourceException
public java.lang.Object createConnectionFactory() throws ResourceException
javax.resource.ResourceException
- Raised when failed to
create a SampleConnectionFactory.ResourceException
public ManagedConnection createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo info) throws ResourceException
subject
- The Subject object.info
- The ConnectionRequestInfo object.javax.resource.ResourceException
- Raised when failed to
create SampleManagedConnection.ResourceException
public ConnectionManager getConnectionManager()
public java.io.PrintWriter getLogWriter() throws ResourceException
javax.resource.ResourceException
ResourceException
public void setLogWriter(java.io.PrintWriter pw) throws ResourceException
javax.resource.ResourceException
ResourceException
public ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, ConnectionRequestInfo info) throws ResourceException
connectionSet
- The connectionSetsubject
- The connection subjectinfo
- ConnectionRequestInfojavax.resource.ResourceException
ResourceException
public void setUserName(java.lang.String userName) throws ResourceException
userName
- The user nameResourceException
- Raised when any error
occured.public java.lang.String getUserName() throws ResourceException
ResourceException
- Raised when any error
occured.public void setPassword(java.lang.String password) throws ResourceException
password
- The password.ResourceException
- Raised when any error
occured.public java.lang.String getPassword() throws ResourceException
ResourceException
- Raised when any error
occured.public int getTraceLevel()
public java.lang.String getInput()
public void setInput(java.lang.String theInput)