javax.slee.connection
Interface SleeConnectionFactory
- public interface SleeConnectionFactory
A factory interface allowing the creation of SleeConnection instances.
This is modelled as a Connector Architecture non-CCI connection
factory interface. A SLEE vendor provides an implementation of this
interface if they support external interoperability.
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.
- See Also:
SleeConnection
Method Summary |
SleeConnection |
getConnection()
Return a SleeConnection object that corresponds to a connection to
the SLEE this factory is associated with. |
getConnection
public SleeConnection getConnection()
throws javax.resource.ResourceException
- Return a SleeConnection object that corresponds to a connection to
the SLEE this factory is associated with.
- Returns:
- the SleeConnection object.
- Throws:
javax.resource.ResourceException
- if a SleeConnection cannot be created