org.otfeed.j2ee.ra
Class OtfeedConnectionFactory

java.lang.Object
  extended by org.otfeed.j2ee.ra.OtfeedConnectionFactory
All Implemented Interfaces:
java.io.Serializable, javax.naming.Referenceable, IOutboundConnectionFactory

public class OtfeedConnectionFactory
extends java.lang.Object
implements javax.resource.Referenceable, java.io.Serializable, IOutboundConnectionFactory

See Also:
Serialized Form

Constructor Summary
OtfeedConnectionFactory(OtfeedManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
           
 
Method Summary
 IOutboundConnection getConnection(OTConnectionSpec spec)
          Opens a connection to the server, using provided connection parameters.
 javax.naming.Reference getReference()
           
 void setReference(javax.naming.Reference val)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OtfeedConnectionFactory

public OtfeedConnectionFactory(OtfeedManagedConnectionFactory mcf,
                               javax.resource.spi.ConnectionManager cm)
Method Detail

setReference

public void setReference(javax.naming.Reference val)

getReference

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

getConnection

public IOutboundConnection getConnection(OTConnectionSpec spec)
                                  throws OTException
Description copied from interface: IOutboundConnectionFactory
Opens a connection to the server, using provided connection parameters.

Specified by:
getConnection in interface IOutboundConnectionFactory
Parameters:
spec - connection parameters. Null may be acceptable (see docs of implementing classes).
Returns:
connection object.
Throws:
OTException - if something goes wrong.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007-2008 Mike Kroutikov. All Rights Reserved.