Examples of IllegalStateException


Examples of javax.jms.IllegalStateException

   *
   * @exception IllegalStateException  If the browser is closed.
   */
  public synchronized javax.jms.Queue getQueue() throws JMSException {
    if (closed)
      throw new IllegalStateException("Forbidden call on a closed browser.");

    return queue;
  }
View Full Code Here

Examples of javax.jms.IllegalStateException

   *
   * @exception IllegalStateException  If the browser is closed.
   */
  public synchronized String getMessageSelector() throws JMSException {
    if (closed)
      throw new IllegalStateException("Forbidden call on a closed browser.");

    return selector;
  }
View Full Code Here

Examples of javax.jms.IllegalStateException

    if (logger.isLoggable(BasicLevel.DEBUG))
      logger.log(BasicLevel.DEBUG,
                 this + ": requests an enumeration.");

    if (closed)
      throw new IllegalStateException("Forbidden call on a closed browser.");

    // Sending a "browse" request:
    QBrowseRequest browReq = new QBrowseRequest(queue.getName(), selector);
    // Expecting an answer:
    QBrowseReply reply = (QBrowseReply) sess.syncRequest(browReq);
View Full Code Here

Examples of javax.jms.IllegalStateException

   */
  public javax.jms.QueueBrowser
         createBrowser(javax.jms.Queue queue, String selector)
         throws JMSException
  {
    throw new IllegalStateException("Forbidden call on a TopicSession.");
  }
View Full Code Here

Examples of javax.jms.IllegalStateException

   * @exception IllegalStateException  Systematically.
   */
  public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue)
         throws JMSException
  {
    throw new IllegalStateException("Forbidden call on a TopicSession.");
  }
View Full Code Here

Examples of javax.jms.IllegalStateException

   *
   * @exception IllegalStateException  Systematically.
   */
  public javax.jms.Queue createQueue(String queueName) throws JMSException
  {
    throw new IllegalStateException("Forbidden call on a TopicSession.");
  }
View Full Code Here

Examples of javax.resource.spi.IllegalStateException

        }
    }
 
    public String getUserName() throws ResourceException {
        if (mc.isDestroyed()) {
            throw new IllegalStateException
                ("ManagedConnection has been destroyed");
        }
       
        return mc.getPasswordCredential() == null
            ? null
View Full Code Here

Examples of javax.resource.spi.IllegalStateException

        throws ResourceException {
       
        try {
            checkIfValid();
        } catch (ResourceException ex) {
            throw new IllegalStateException("Connection is invalid");
        }
        // dissociate handle with current managed connection
        mc.removeCciConnection(this);
        // associate handle with new managed connection
        newMc.addCciConnection(this);
View Full Code Here

Examples of javax.resource.spi.IllegalStateException

        mc = null;
    }

    private void checkIfDestroyed() throws ResourceException {
        if (destroyed) {
            throw new IllegalStateException("Managed connection is closed");
        }
    }
View Full Code Here

Examples of javax.resource.spi.IllegalStateException

        checkIfDestroyed();
        if (connection instanceof CciConnection) {
            CciConnection cciCon = (CciConnection) connection;
            cciCon.associateConnection(this);
        } else {
            throw new IllegalStateException("Invalid connection object: " +
                                            connection);
        }
    }
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.