public interface SleeConnectionFactory
An implementation of SleeConnectionFactory is expected to hold all the information necessary to create connections on demand and will be bound into JNDI. An EJB application retrieves the SleeConnectionFactory from JNDI and uses it to create SleeConnection objects as needed.
Implementations of SleeConnectionFactory that are packaged as part of a
Connector Architecture Resource Adaptor should additionally implement
Serializable
and javax.resource.Referenceable
, as
described in the Connector Architecture specification.
SleeConnection
Modifier and Type | Method and Description |
---|---|
SleeConnection |
getConnection()
Return a SleeConnection object that corresponds to a connection to
the SLEE this factory is associated with.
|
SleeConnection getConnection() throws ResourceException
ResourceException
- if a SleeConnection cannot be created