public interface JEConnectionFactory
extends javax.resource.Referenceable, java.io.Serializable
JEConnection
in this manner:
InitialContext iniCtx = new InitialContext(); Context enc = (Context) iniCtx.lookup("java:comp/env"); Object ref = enc.lookup("ra/JEConnectionFactory"); JEConnectionFactory dcf = (JEConnectionFactory) ref; JEConnection dc = dcf.getConnection(envDir, envConfig);See <JEHOME>/examples/jca/HOWTO-**.txt and <JEHOME>/examples/jca/simple/SimpleBean.java for more information on how to build the resource adapter and use a JEConnection.
Modifier and Type | Method and Description |
---|---|
JEConnection |
getConnection(java.lang.String jeRootDir,
EnvironmentConfig envConfig) |
JEConnection |
getConnection(java.lang.String jeRootDir,
EnvironmentConfig envConfig,
TransactionConfig transConfig) |
JEConnection getConnection(java.lang.String jeRootDir, EnvironmentConfig envConfig) throws JEException
JEException
JEConnection getConnection(java.lang.String jeRootDir, EnvironmentConfig envConfig, TransactionConfig transConfig) throws JEException
JEException
Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.