public class JmsManagedConnectionFactory extends Object implements javax.resource.spi.ManagedConnectionFactory
Constructor and Description |
---|
JmsManagedConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
createConnectionFactory()
Create a "non managed" connection factory.
|
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
Create a ConnectionFactory with appserver hook
|
javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo info)
Create a new connection to manage in pool
|
boolean |
equals(Object obj)
Checks for equality ower the configured properties.
|
String |
getClientID()
Get client id, may be null.
|
String |
getConnectionFactory() |
String |
getJndiParameters() |
PrintWriter |
getLogWriter() |
javax.jms.ConnectionMetaData |
getMetaData() |
String |
getPassword()
Get password, may be null.
|
protected JmsMCFProperties |
getProperties() |
String |
getSessionDefaultType() |
String |
getUserName()
Get userName, may be null.
|
Integer |
getUseTryLock()
Get the useTryLock.
|
int |
hashCode() |
Boolean |
isDeleteTemporaryDestinations() |
Boolean |
isStrict() |
javax.resource.spi.ManagedConnection |
matchManagedConnections(Set connectionSet,
Subject subject,
javax.resource.spi.ConnectionRequestInfo info)
Match a set of connections from the pool
|
void |
setClientID(String clientID)
Set client id, null by default.
|
void |
setConnectionFactory(String connectionFactory) |
void |
setDeleteTemporaryDestinations(Boolean deleteTemporaryDestinations) |
void |
setJndiParameters(String jndiParameters) |
void |
setLogWriter(PrintWriter out) |
void |
setPassword(String password)
Set password, null by default.
|
void |
setSessionDefaultType(String type)
Set the default session typ
|
void |
setStrict(Boolean strict) |
void |
setUserName(String userName)
Set userName, null by default.
|
void |
setUseTryLock(Integer useTryLock)
Set the useTryLock.
|
public Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo info) throws javax.resource.ResourceException
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, javax.resource.spi.ConnectionRequestInfo info) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public void setLogWriter(PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public boolean equals(Object obj)
public int hashCode()
public void setJndiParameters(String jndiParameters)
public String getJndiParameters()
public void setConnectionFactory(String connectionFactory)
public String getConnectionFactory()
public void setUserName(String userName)
public String getUserName()
public void setPassword(String password)
public String getPassword()
public String getClientID()
public void setClientID(String clientID)
public Boolean isStrict()
public void setStrict(Boolean strict)
public void setSessionDefaultType(String type) throws javax.resource.ResourceException
type
- either javax.jms.Topic or javax.jms.Queuejavax.resource.ResourceException
- if type was not a valid type.public String getSessionDefaultType()
public Integer getUseTryLock()
public void setUseTryLock(Integer useTryLock)
useTryLock
- the useTryLock.public void setDeleteTemporaryDestinations(Boolean deleteTemporaryDestinations)
public Boolean isDeleteTemporaryDestinations()
public javax.jms.ConnectionMetaData getMetaData()
protected JmsMCFProperties getProperties()
Copyright © 2017 JBoss by Red Hat. All rights reserved.