|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.j2ee.k2.BlasterManagedConnectionFactory
public class BlasterManagedConnectionFactory
Factory for a specific XmlBlaster instance.
Set the configuration up in ra.xml. OBS At least in JBoss this is not possible, you have to configure all properties in the *-service.xml file.
*if given a jndiName, the connector will try to lookup a GlobalUtil wich contains the serverside engine.Global. This way, the in vm LOCAL protocol is possible to use.
The loading order of properties is: engine.Global, propertyFile, arguments set on the resource adapter.
if the protocol used is IOR, a jacorb.properties file will be loaded through the context classloader if found. This is beacuse jacorb tries to load the file from the system classloader, and its not available there when embedding xmlBlaster in JBoss.
Field Summary | |
---|---|
private Global |
glob
|
private GlobalUtil |
globalUtil
|
private java.lang.String |
jndiName
|
private static java.util.logging.Logger |
log
|
private java.io.PrintWriter |
logWriter
|
java.lang.String |
myName
|
private java.lang.String |
propFile
|
private java.util.Properties |
props
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
BlasterManagedConnectionFactory()
|
Method Summary | |
---|---|
java.lang.Object |
createConnectionFactory()
Create a "non managed" connection factory. |
java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
Create a ConnectionFactory with appserver hook |
javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo info)
Create a new connection to manage in pool |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getClientProtocol()
Null if not |
(package private) Global |
getConfig()
Return a clone of the Global, so that new XmlBlasterAccess instances may be created. |
java.lang.String |
getIor()
Null if not |
java.lang.String |
getIorFile()
Null if not |
java.lang.String |
getIorHost()
Null if not |
java.lang.String |
getIorPort()
Null if not |
java.lang.String |
getJNDIName()
|
java.io.PrintWriter |
getLogWriter()
|
java.lang.String |
getMaxSession()
Null if not. |
java.lang.String |
getPassword()
|
java.lang.String |
getPropertyFileName()
|
java.lang.String |
getRmiAuthserverUrl()
Null if not |
java.lang.String |
getRmiHostname()
Null if not |
java.lang.String |
getRmiRegistryPort()
Null if not |
java.lang.String |
getSecurityPlugin()
Null if not. |
java.lang.String |
getSessionTimeout()
Null if not. |
java.lang.String |
getUserName()
|
int |
hashCode()
|
private void |
loadPropertyFile()
|
javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo info)
Match a set of connections from the pool |
void |
setClientProtocol(java.lang.String arg)
The driver to use: IOR | RMI | LOCAL Have to verify the others to. |
void |
setIor(java.lang.String arg)
Set the ior string. |
void |
setIorFile(java.lang.String arg)
Set the ior string through a file. |
void |
setIorHost(java.lang.String arg)
Set the hostName or IP where xmlBlaster is running. |
void |
setIorPort(java.lang.String arg)
Set bootstrapPort where the internal xmlBlaster-http server publishes its Ior. |
void |
setJNDIName(java.lang.String jndiName)
Set a JNDI name where a GlobalUtil will be lookedup. |
void |
setLogWriter(java.io.PrintWriter out)
FIXME |
void |
setMaxSessions(java.lang.String arg)
Set the maximum number of sessions a user is allowed to have opened. |
void |
setPassword(java.lang.String arg)
Set a default password name. |
void |
setPropertyFileName(java.lang.String fileName)
Set the name of a propertyfile to read settings from. |
void |
setRmiAuthserverUrl(java.lang.String arg)
Set the rmi registry port. |
void |
setRmiHostname(java.lang.String arg)
Set the rmi hostname. |
void |
setRmiRegistryPort(java.lang.String arg)
Set the rmi registry port. |
void |
setSecurityPlugin(java.lang.String arg)
Set the security plugin to use, see org.xmlBlaster.authentication.plugins . |
void |
setSessionTimeout(java.lang.String arg)
Set the session login timeout. |
void |
setUserName(java.lang.String arg)
Set a default user name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.logging.Logger log
private static final long serialVersionUID
public java.lang.String myName
private Global glob
private GlobalUtil globalUtil
private java.lang.String propFile
private java.lang.String jndiName
private java.io.PrintWriter logWriter
private java.util.Properties props
Constructor Detail |
---|
public BlasterManagedConnectionFactory() throws javax.resource.ResourceException
javax.resource.ResourceException
Method Detail |
---|
public java.lang.Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public java.lang.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(javax.security.auth.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(java.util.Set connectionSet, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo info) throws javax.resource.ResourceException
matchManagedConnections
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public void setLogWriter(java.io.PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public java.io.PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public boolean equals(java.lang.Object obj)
equals
in interface javax.resource.spi.ManagedConnectionFactory
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
hashCode
in class java.lang.Object
public void setUserName(java.lang.String arg)
public java.lang.String getUserName()
public void setPassword(java.lang.String arg)
public java.lang.String getPassword()
public void setClientProtocol(java.lang.String arg)
public java.lang.String getClientProtocol()
public void setRmiHostname(java.lang.String arg)
public java.lang.String getRmiHostname()
public void setRmiRegistryPort(java.lang.String arg)
public java.lang.String getRmiRegistryPort()
public void setRmiAuthserverUrl(java.lang.String arg)
public java.lang.String getRmiAuthserverUrl()
public void setIor(java.lang.String arg)
public java.lang.String getIor()
public void setIorFile(java.lang.String arg)
public void setIorHost(java.lang.String arg)
public java.lang.String getIorHost()
public void setIorPort(java.lang.String arg)
public java.lang.String getIorPort()
public java.lang.String getIorFile()
public void setSecurityPlugin(java.lang.String arg)
org.xmlBlaster.authentication.plugins
.
public java.lang.String getSecurityPlugin()
public void setSessionTimeout(java.lang.String arg)
public java.lang.String getSessionTimeout()
public void setMaxSessions(java.lang.String arg)
public java.lang.String getMaxSession()
public void setPropertyFileName(java.lang.String fileName)
if this option is set, all properties specifyed in it will overwrite any properties sett on this ra, since the file will be loaded last.
The context classloader will be searched first, then normal XmlBlaster search algoritm will be used.
public java.lang.String getPropertyFileName()
public void setJNDIName(java.lang.String jndiName)
public java.lang.String getJNDIName()
private void loadPropertyFile() throws javax.resource.spi.IllegalStateException
javax.resource.spi.IllegalStateException
Global getConfig()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |