Example #1
0
 public MuleConnection createConnection(MuleConnectionRequestInfo info) throws ResourceException {
   // todo try {
   return (MuleConnection) manager.allocateConnection(factory, info);
   //        }
   //        catch (ResourceException e) {
   //
   //            logger.warn("Connection could not be created: " + e.getMessage(), e);
   //            throw new UMOException(e.getMessage());
   //        }
 }
 @Override
 public JCATestConnection getConnection() throws ResourceException {
   return (JCATestConnection) cxm.allocateConnection(mcf, null);
 }
 /* (non-Javadoc)
  * @see com.hazelcast.jca.HazelcastConnectionFactory#getConnection(javax.resource.cci.ConnectionSpec)
  */
 public HazelcastConnection getConnection(ConnectionSpec connSpec) throws ResourceException {
   if (LOGGER.isFinestEnabled()) {
     LOGGER.finest("getConnection spec: " + connSpec);
   }
   return (HazelcastConnection) cm.allocateConnection(mcf, null);
 }
 public GFConnectionImpl getConnection() throws ResourceException {
   return (GFConnectionImpl) cm.allocateConnection(mcf, null);
 }
 /**
  * Get connection from factory
  *
  * @return MultipleConnection1 instance
  * @throws ResourceException Thrown if a connection can't be obtained
  */
 @Override
 public Connection getConnection() throws ResourceException {
   log.finest("getConnection()");
   return (MultipleConnection1) connectionManager.allocateConnection(mcf, null);
 }
 /**
  * Get connection from factory
  *
  * @return Connection instance
  * @exception javax.resource.ResourceException Thrown if a connection can't be obtained
  */
 @Override
 public ValidConnection getConnection() throws ResourceException {
   return (ValidConnection) connectionManager.allocateConnection(mcf, null);
 }