Examples of ResourceAllocationException


Examples of javax.jms.ResourceAllocationException

                                    + ". Producers will be throttled to the rate at which messages are removed from this destination to prevent flooding it."
                                    + " See http://activemq.apache.org/producer-flow-control.html for more info");
                }

                if (systemUsage.isSendFailIfNoSpace()) {
                    throw new ResourceAllocationException("Usage Manager Memory Limit reached. Stopping producer ("
                            + message.getProducerId() + ") to prevent flooding "
                            + getActiveMQDestination().getQualifiedName() + "."
                            + " See http://activemq.apache.org/producer-flow-control.html for more info");
                }
View Full Code Here

Examples of javax.jms.ResourceAllocationException

      }
      try
      {
         if (lock.tryLock(tryLock.intValue(), TimeUnit.SECONDS) == false)
         {
            throw new ResourceAllocationException("Unable to obtain lock in " + tryLock + " seconds: " + this);
         }
      }
      catch (InterruptedException e)
      {
         throw new ResourceAllocationException("Interrupted attempting lock: " + this);
      }
   }
View Full Code Here

Examples of javax.resource.spi.ResourceAllocationException

            _logger.log(Level.FINE, "jdbc.exc_create_conn", sqle.getMessage());
            StringManager localStrings =
                    StringManager.getManager(DataSourceObjectBuilder.class);
            String msg = localStrings.getString("jdbc.cannot_allocate_connection"
                    , sqle.getMessage());
            ResourceAllocationException rae = new ResourceAllocationException(msg);
            rae.initCause(sqle);
            throw rae;
        }

        com.sun.gjc.spi.ManagedConnection mc = constructManagedConnection(
                null, dsConn, pc, this);
View Full Code Here

Examples of javax.resource.spi.ResourceAllocationException

            //_logger.log(Level.WARNING, "jdbc.exc_create_xa_conn",sqle);
            _logger.log(Level.FINE, "jdbc.exc_create_xa_conn", sqle);
            StringManager sm = StringManager.getManager(
                    DataSourceObjectBuilder.class);
            String msg = sm.getString("jdbc.cannot_allocate_connection", sqle.getMessage());
            throw new ResourceAllocationException(msg, sqle);
        }

        com.sun.gjc.spi.ManagedConnection mc = constructManagedConnection(
                xaConn, null, pc, this);
View Full Code Here

Examples of javax.resource.spi.ResourceAllocationException

            }
            StringManager localStrings =
                    StringManager.getManager(DataSourceObjectBuilder.class);
            String msg = localStrings.getString("jdbc.cannot_allocate_connection"
                    , sqle.getMessage());
            ResourceAllocationException rae = new ResourceAllocationException(msg);
            rae.initCause(sqle);
            throw rae;
        }

        ManagedConnection mc = constructManagedConnection(null, dsConn, pc, this);
View Full Code Here

Examples of javax.resource.spi.ResourceAllocationException

                _logger.log(Level.FINE, "jdbc.exc_create_xa_conn", sqle);
            }
            StringManager sm = StringManager.getManager(
                    DataSourceObjectBuilder.class);
            String msg = sm.getString("jdbc.cannot_allocate_connection", sqle.getMessage());
            throw new ResourceAllocationException(msg, sqle);
        }

        com.sun.gjc.spi.ManagedConnection mc = constructManagedConnection(
                xaConn, null, pc, this);
View Full Code Here

Examples of javax.resource.spi.ResourceAllocationException

                } catch (ResourceException e1) {
                    _logger.log(Level.WARNING, "jdbc.exc_destroy", e1);
                }
            }
            String msg = localStrings.getString("jdbc.exc_destroy", e.getMessage());
            ResourceAllocationException rae = new ResourceAllocationException(
                    msg, e);
            throw rae;
        }
    }
View Full Code Here

Examples of javax.resource.spi.ResourceAllocationException

                _logger.log(Level.FINE, "jdbc.exc_create_ds_conn", sqle);
            }
            StringManager sm =
                    StringManager.getManager(DataSourceObjectBuilder.class);
            String msg = sm.getString("jdbc.cannot_allocate_connection", sqle.getMessage());
            ResourceAllocationException rae = new ResourceAllocationException(
                    msg, sqle);
            throw rae;
        }

View Full Code Here

Examples of org.springframework.jms.ResourceAllocationException

    }
    if (ex instanceof javax.jms.MessageNotWriteableException) {
      return new MessageNotWriteableException((javax.jms.MessageNotWriteableException) ex);
    }
    if (ex instanceof javax.jms.ResourceAllocationException) {
      return new ResourceAllocationException((javax.jms.ResourceAllocationException) ex);
    }
    if (ex instanceof javax.jms.TransactionInProgressException) {
      return new TransactionInProgressException((javax.jms.TransactionInProgressException) ex);
    }
    if (ex instanceof javax.jms.TransactionRolledBackException) {
View Full Code Here

Examples of org.springframework.jms.ResourceAllocationException

    }
    if (ex instanceof javax.jms.MessageNotWriteableException) {
      return new MessageNotWriteableException((javax.jms.MessageNotWriteableException) ex);
    }
    if (ex instanceof javax.jms.ResourceAllocationException) {
      return new ResourceAllocationException((javax.jms.ResourceAllocationException) ex);
    }
    if (ex instanceof javax.jms.TransactionInProgressException) {
      return new TransactionInProgressException((javax.jms.TransactionInProgressException) ex);
    }
    if (ex instanceof javax.jms.TransactionRolledBackException) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.