/** * PUBLIC: * Configure the login to connect through a JDNI managed connection factory and the default getConnection(). */ public void configureConnectionSpec(String jndiName) { setConnectionSpec(new EISConnectionSpec(jndiName)); }
/** * PUBLIC: * Configure the login to connect through a JDNI managed connection factory and the default getConnection(). */ public void configureConnectionSpec(String jndiName) { setConnectionSpec(new EISConnectionSpec(jndiName)); }
/** * PUBLIC: * Configure the login to connect through a JDNI managed connection factory and the default getConnection(). */ public void configureConnectionSpec(String jndiName) { setConnectionSpec(new EISConnectionSpec(jndiName)); }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and the default getConnection(). */ public void configureConnectionSpec(ConnectionFactory connectionFactory) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); setConnectionSpec(spec); }
/** * PUBLIC: * Configure the login to connect through a JDNI managed connection factory and adapter connection spec. */ public void configureConnectionSpec(String jndiName, ConnectionSpec connectionSpec) { EISConnectionSpec spec = new EISConnectionSpec(jndiName); spec.setConnectionSpec(connectionSpec); setConnectionSpec(spec); }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and the default getConnection(). */ public void configureConnectionSpec(ConnectionFactory connectionFactory) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); setConnectionSpec(spec); }
/** * PUBLIC: * Configure the login to connect through a JDNI managed connection factory and adapter connection spec. */ public void configureConnectionSpec(String jndiName, ConnectionSpec connectionSpec) { EISConnectionSpec spec = new EISConnectionSpec(jndiName); spec.setConnectionSpec(connectionSpec); setConnectionSpec(spec); }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and the default getConnection(). */ public void configureConnectionSpec(ConnectionFactory connectionFactory) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); setConnectionSpec(spec); }
/** * PUBLIC: * Configure the login to connect through a JDNI managed connection factory and adapter connection spec. */ public void configureConnectionSpec(String jndiName, ConnectionSpec connectionSpec) { EISConnectionSpec spec = new EISConnectionSpec(jndiName); spec.setConnectionSpec(connectionSpec); setConnectionSpec(spec); }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and adapter connection spec. */ public void configureConnectionSpec(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); spec.setConnectionSpec(connectionSpec); setConnectionSpec(spec); } }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and adapter connection spec. */ public void configureConnectionSpec(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); spec.setConnectionSpec(connectionSpec); setConnectionSpec(spec); } }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and adapter connection spec. */ public void configureConnectionSpec(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); spec.setConnectionSpec(connectionSpec); setConnectionSpec(spec); } }
/** * INTERNAL: * Wrapped by the getLogin() call, therefore, config can't be null at this * point. */ protected Login buildEISLoginConfig(EISLoginConfig eisLoginConfig) { EISLogin eisLogin = new EISLogin(); // Connection Spec String specClassName = eisLoginConfig.getConnectionSpecClass(); if (specClassName != null) { try { Class specClass = m_classLoader.loadClass(specClassName); EISConnectionSpec spec = null; if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ spec = (EISConnectionSpec)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(specClass)); }else{ spec = (EISConnectionSpec)PrivilegedAccessHelper.newInstanceFromClass(specClass); } eisLogin.setConnectionSpec(spec); } catch (Exception exception) { throw SessionLoaderException.failedToLoadTag("connection-spec-class", specClassName, exception); } } // Connection Factory URL, setConnectionFactoryURL checks for null eisLogin.setConnectionFactoryURL(eisLoginConfig.getConnectionFactoryURL()); // Process the common elements in LoginConfig processLoginConfig(eisLoginConfig, eisLogin); // Finally, return the newly created EISLogin return eisLogin; }
/** * INTERNAL: * Wrapped by the getLogin() call, therefore, config can't be null at this * point. */ protected Login buildEISLoginConfig(EISLoginConfig eisLoginConfig) { EISLogin eisLogin = new EISLogin(); // Connection Spec String specClassName = eisLoginConfig.getConnectionSpecClass(); if (specClassName != null) { try { Class specClass = m_classLoader.loadClass(specClassName); EISConnectionSpec spec = null; if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ spec = (EISConnectionSpec)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(specClass)); }else{ spec = (EISConnectionSpec)PrivilegedAccessHelper.newInstanceFromClass(specClass); } eisLogin.setConnectionSpec(spec); } catch (Exception exception) { throw SessionLoaderException.failedToLoadTag("connection-spec-class", specClassName, exception); } } // Connection Factory URL, setConnectionFactoryURL checks for null eisLogin.setConnectionFactoryURL(eisLoginConfig.getConnectionFactoryURL()); // Process the common elements in LoginConfig processLoginConfig(eisLoginConfig, eisLogin); // Finally, return the newly created EISLogin return eisLogin; }
/** * INTERNAL: * Wrapped by the getLogin() call, therefore, config can't be null at this * point. */ protected Login buildEISLoginConfig(EISLoginConfig eisLoginConfig) { EISLogin eisLogin = new EISLogin(); // Connection Spec String specClassName = eisLoginConfig.getConnectionSpecClass(); if (specClassName != null) { try { Class specClass = m_classLoader.loadClass(specClassName); EISConnectionSpec spec = null; if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){ spec = (EISConnectionSpec)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(specClass)); }else{ spec = (EISConnectionSpec)PrivilegedAccessHelper.newInstanceFromClass(specClass); } eisLogin.setConnectionSpec(spec); } catch (Exception exception) { throw SessionLoaderException.failedToLoadTag("connection-spec-class", specClassName, exception); } } // Connection Factory URL, setConnectionFactoryURL checks for null eisLogin.setConnectionFactoryURL(eisLoginConfig.getConnectionFactoryURL()); // Process the common elements in LoginConfig processLoginConfig(eisLoginConfig, eisLogin); // Finally, return the newly created EISLogin return eisLogin; }