|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.jca.util.JPPFAccessorImpl
org.jppf.jca.cci.JPPFConnectionFactory
public class JPPFConnectionFactory
Implementation of the ConnectionFactory interface for
the JPPF resource adapter.
| Field Summary |
|---|
| Fields inherited from class org.jppf.jca.util.JPPFAccessorImpl |
|---|
jppfClient, logWriter |
| Constructor Summary | |
|---|---|
JPPFConnectionFactory()
Default constructor. |
|
JPPFConnectionFactory(JPPFManagedConnectionFactory factory,
ConnectionManager manager)
Initialize this connection factorywith a specified managed connection factory and connection manager.. |
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Get a connection through the application server. |
Connection |
getConnection(ConnectionSpec spec)
This method does nothing. |
ResourceAdapterMetaData |
getMetaData()
Get the resource adapter's metadata. |
RecordFactory |
getRecordFactory()
Get a record factory. |
Reference |
getReference()
Get the naming reference4 for this connection factory. |
void |
setReference(Reference ref)
Set the naming reference4 for this connection factory. |
| Methods inherited from class org.jppf.jca.util.JPPFAccessorImpl |
|---|
getJppfClient, getLogWriter, setJppfClient, setLogWriter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JPPFConnectionFactory()
public JPPFConnectionFactory(JPPFManagedConnectionFactory factory,
ConnectionManager manager)
factory - the managed factory to use.manager - the connection manager to use.| Method Detail |
|---|
public Connection getConnection()
throws ResourceException
getConnection in interface ConnectionFactoryConnection instance.
ResourceException - if a connection could not be obtained.ConnectionFactory.getConnection()
public Connection getConnection(ConnectionSpec spec)
throws ResourceException
getConnection in interface ConnectionFactoryspec - not used.
ResourceException - this method always throws a NotSupportedException.ConnectionFactory.getConnection(javax.resource.cci.ConnectionSpec)
public ResourceAdapterMetaData getMetaData()
throws ResourceException
getMetaData in interface ConnectionFactoryResourceAdapterMetaData instance.
ResourceException - if the metadata could not be obtained.ConnectionFactory.getMetaData()
public RecordFactory getRecordFactory()
throws ResourceException
getRecordFactory in interface ConnectionFactoryRecordFactory instance.
ResourceException - if the record factory could not be obtained.ConnectionFactory.getRecordFactory()public void setReference(Reference ref)
ref - a Referenceable instance.Referenceable.setReference(javax.naming.Reference)
public Reference getReference()
throws NamingException
getReference in interface ReferenceableReferenceable instance.
NamingException - if the reference could not be obtained.Referenceable.getReference()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||