/** * PUBLIC: * Provide the details of my connection information. This is primarily for JMX runtime services. * @return java.lang.String */ public String getConnectionDetails() { return this.getName().toString(); }
/** * PUBLIC: * Provide the details of my connection information. This is primarily for JMX runtime services. * @return java.lang.String */ public String getConnectionDetails() { return this.getName().toString(); }
/** * PUBLIC: * Provide the details of my connection information. This is primarily for JMX runtime services. * @return java.lang.String */ public String getConnectionDetails() { return this.getName().toString(); }
/** * PUBLIC: * Return the JNDI URL for the managed connection factory for the JCA adapter connecting to. */ public String getConnectionFactoryURL() { if ((getConnectionSpec().getName() == null) || (getConnectionSpec().getName().size() == 0)) { return null; } return getConnectionSpec().getName().get(0); }
/** * PUBLIC: * Return the JNDI URL for the managed connection factory for the JCA adapter connecting to. */ public String getConnectionFactoryURL() { if ((getConnectionSpec().getName() == null) || (getConnectionSpec().getName().size() == 0)) { return null; } return getConnectionSpec().getName().get(0); }
/** * PUBLIC: * Return the JNDI URL for the managed connection factory for the JCA adapter connecting to. */ public String getConnectionFactoryURL() { if ((getConnectionSpec().getName() == null) || (getConnectionSpec().getName().size() == 0)) { return null; } return getConnectionSpec().getName().get(0); }
/** * Connect with the specified properties and return the Connection. */ public Connection connectToDataSource(EISAccessor accessor, Properties properties) throws DatabaseException, ValidationException { ConnectionFactory connectionFactory = getConnectionFactory(); if (connectionFactory == null) { try { connectionFactory = (ConnectionFactory)getContext().lookup(getName()); setConnectionFactory(connectionFactory); } catch (Exception exception) { throw ValidationException.cannotAcquireDataSource(getName(), exception); } } try { accessor.setRecordFactory(connectionFactory.getRecordFactory()); if (getConnectionSpec() == null) { return connectionFactory.getConnection(); } else { return connectionFactory.getConnection(getConnectionSpec()); } } catch (ResourceException exception) { throw EISException.resourceException(exception, accessor, null); } }
/** * Connect with the specified properties and return the Connection. */ public Connection connectToDataSource(EISAccessor accessor, Properties properties) throws DatabaseException, ValidationException { ConnectionFactory connectionFactory = getConnectionFactory(); if (connectionFactory == null) { try { connectionFactory = (ConnectionFactory)getContext().lookup(getName()); setConnectionFactory(connectionFactory); } catch (Exception exception) { throw ValidationException.cannotAcquireDataSource(getName(), exception); } } try { accessor.setRecordFactory(connectionFactory.getRecordFactory()); if (getConnectionSpec() == null) { return connectionFactory.getConnection(); } else { return connectionFactory.getConnection(getConnectionSpec()); } } catch (ResourceException exception) { throw EISException.resourceException(exception, accessor, null); } }
/** * Connect with the specified properties and return the Connection. */ public Connection connectToDataSource(EISAccessor accessor, Properties properties) throws DatabaseException, ValidationException { ConnectionFactory connectionFactory = getConnectionFactory(); if (connectionFactory == null) { try { connectionFactory = (ConnectionFactory)getContext().lookup(getName()); setConnectionFactory(connectionFactory); } catch (Exception exception) { throw ValidationException.cannotAcquireDataSource(getName(), exception); } } try { accessor.setRecordFactory(connectionFactory.getRecordFactory()); if (getConnectionSpec() == null) { return connectionFactory.getConnection(); } else { return connectionFactory.getConnection(getConnectionSpec()); } } catch (ResourceException exception) { throw EISException.resourceException(exception, accessor, null); } }