public JcaExecutorServiceConnection getConnection() throws ResourceException { return (JcaExecutorServiceConnection) connectionManager.allocateConnection(mcf, null); }
/** * * @return <description> * @exception javax.resource.ResourceException <description> */ public Connection getConnection() throws ResourceException { return (Connection)cm.allocateConnection(mcf, null); }
/** * {@inheritDoc} */ @Override public FsConnection getConnection() throws ResourceException { return (FsConnection) manager.allocateConnection(factory, info); }
public XADiskConnection getConnection() throws ResourceException { return (XADiskConnection) cm.allocateConnection(mcf, null); }
public CXFConnection getConnection(CXFConnectionSpec spec) throws ResourceException { return (CXFConnection) connectionManager.allocateConnection(mcf, spec); }
@Override public KafkaConnection createConnection() throws ResourceException { return (KafkaConnection) cm.allocateConnection(cf, null); }
@Override public KafkaConnection createConnection(ConnectionSpec spec) throws ResourceException { return (KafkaConnection) cm.allocateConnection(cf, (ConnectionRequestInfo) spec); }
public Connection getConnection() throws ResourceException { return (Connection) _manager.allocateConnection(_managedConnectionFactory, null); }
@Override public VertxConnection getVertxConnection() throws ResourceException { log.finest("Get VertxPlatform"); return (VertxConnection) connectionManager.allocateConnection(mcf, null); }
@Override public TwitterConnection getConnection() throws ResourceException { log.finest("getConnection()"); return (TwitterConnection) connectionManager.allocateConnection(mcf, null); }
/** * Get connection from factory * * @return FileConnection instance * @exception ResourceException * Thrown if a connection can't be obtained */ @Override public FileConnection getConnection() throws ResourceException { log.finest("getConnection()"); return (FileConnection) connectionManager.allocateConnection(mcf, null); }
@SuppressWarnings("unchecked") @Override public CONNECTION_TYPE getConnection() { log.debug("getConnection {} MCF: {}", this.cm, this.mcf); try { return (CONNECTION_TYPE) cm.allocateConnection(mcf, getConnectionRequestdebug()); } catch (ResourceException ex) { throw new RuntimeException(ex.getMessage()); } }
@Override public Bucket getBucket() { out.println("#FileBucketStore.getConnection " + this.cm + " MCF: " + this.mcf); try { return (Bucket) cm.allocateConnection(mcf, getConnectionRequestInfo()); } catch (ResourceException ex) { throw new RuntimeException(ex.getMessage()); } }
@Override public JCAExecutor newExecutor(){ out.println("#WorkManagerExecutorFactory.getConnection " + this.cm + " MCF: " + this.mcf); try { return (JCAExecutor) cm.allocateConnection(mcf, null); } catch (ResourceException ex) { throw new RuntimeException(ex.getMessage(),ex); } }
public HazelcastConnection getConnection(ConnectionSpec connSpec) throws ResourceException { if (LOGGER.isFinestEnabled()) { LOGGER.finest("getConnection spec: " + connSpec); } return (HazelcastConnection) cm.allocateConnection(mcf, null); }
public Connection getConnection() throws SQLException { try { WrappedConnection wc = (WrappedConnection) cm.allocateConnection(mcf, null); wc.setDataSource(this); return wc; } catch (ResourceException re) { throw new NestedSQLException(re); } }
public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo requestInfo) throws ResourceException { Object managedConnection = null; if(connectionManager == null) { // TODO is this correct? managedConnection = new MockManagedConnection().getConnection(subject, requestInfo); } else { managedConnection = connectionManager.allocateConnection(this, requestInfo); } return (MockManagedConnection)managedConnection; }
public Connection getConnection() throws SQLException { try { return (Connection) cm.allocateConnection(mcf, containerRequestInfo); } catch (ResourceException e) { if (e.getCause() instanceof SQLException) { throw (SQLException) e.getCause(); } else { throw (SQLException) new SQLException().initCause(e); } } }
Connection getConnection(Properties paramProperties) throws JAXRException { try { JaxrConnectionRequestInfo localJaxrConnectionRequestInfo = new JaxrConnectionRequestInfo(paramProperties); return (Connection)this.cm.allocateConnection(this.mcf, localJaxrConnectionRequestInfo); } catch (ResourceException localResourceException) { throw new JAXRException(localResourceException.getMessage()); } }
public Connection getConnection(String user, String password) throws SQLException { try { UserPasswordHandleFactoryRequestInfo cri = new UserPasswordHandleFactoryRequestInfo<Connection, ConnectionHandle>(handleFactory, user, password); return (Connection) cm.allocateConnection(mcf, cri); } catch (ResourceException e) { if (e.getCause() instanceof SQLException) { throw (SQLException) e.getCause(); } else { throw (SQLException) new SQLException().initCause(e); } } }