com.j_spaces.jca
Class GSConnectionFactory

java.lang.Object
  extended by com.j_spaces.jca.GSConnectionFactory
All Implemented Interfaces:
Serializable, Referenceable, ConnectionFactory

public class GSConnectionFactory
extends Object
implements ConnectionFactory

JCA Connection Factory

See Also:
Serialized Form

Constructor Summary
GSConnectionFactory(GSManagedConnectionFactory mcf, ConnectionManager cm)
           
 
Method Summary
 Connection getConnection()
           
 Connection getConnection(ConnectionSpec cs)
           
 ResourceAdapterMetaData getMetaData()
           
 RecordFactory getRecordFactory()
           
 Reference getReference()
           
 void setReference(Reference reference)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSConnectionFactory

public GSConnectionFactory(GSManagedConnectionFactory mcf,
                           ConnectionManager cm)
Method Detail

setReference

public void setReference(Reference reference)

getReference

public Reference getReference()
                       throws NamingException
Specified by:
getReference in interface Referenceable
Throws:
NamingException

getMetaData

public ResourceAdapterMetaData getMetaData()
                                    throws ResourceException
Specified by:
getMetaData in interface ConnectionFactory
Throws:
ResourceException

getRecordFactory

public RecordFactory getRecordFactory()
                               throws ResourceException
Specified by:
getRecordFactory in interface ConnectionFactory
Throws:
ResourceException

getConnection

public Connection getConnection()
                         throws ResourceException
Specified by:
getConnection in interface ConnectionFactory
Throws:
ResourceException

getConnection

public Connection getConnection(ConnectionSpec cs)
                         throws ResourceException
Specified by:
getConnection in interface ConnectionFactory
Parameters:
cs - ConnectionSpec
Returns:
GigaSpaces JCA Connection
Throws:
ResourceException - - if a communication error occurs