Package javax.jms

Examples of javax.jms.IllegalStateException


                      javax.jms.Message message,
                      int deliveryMode,
                      int priority,
                      long timeToLive) throws JMSException {
    if (closed)
      throw new IllegalStateException("Forbidden call on a closed producer.");

    sess.send(dest, message, deliveryMode, priority, timeToLive, timestampDisabled);
  }
View Full Code Here


      return (javax.jms.Connection) o;
    } catch (javax.resource.spi.SecurityException exc) {
      throw new JMSSecurityException("Invalid user identification: " + exc);
    } catch (javax.resource.spi.CommException exc) {
      throw new IllegalStateException("Could not connect to the JORAM server: "
                                      + exc);
    } catch (javax.resource.ResourceException exc) {
      throw new JMSException("Could not create connection: " + exc);
    }
  }
View Full Code Here

   */
  public void setMessageListener(javax.jms.MessageListener messageListener)
              throws JMSException
  {
    checkValidity();
    throw new IllegalStateException("Invalid call on a component's producer.");
  }
View Full Code Here

   * <code>IllegalStateException</code> instance.
   */
  public javax.jms.MessageListener getMessageListener() throws JMSException
  {
    checkValidity();
    throw new IllegalStateException("Invalid call on a component's producer.");
  }
View Full Code Here

  protected void checkValidity() throws IllegalStateException
  {
    session.checkValidity();

    if (! valid)
     throw new IllegalStateException("Invalid call on a closed producer.");
  }
View Full Code Here

  public javax.jms.ConnectionConsumer createDurableConnectionConsumer(javax.jms.Topic topic,
                                                                      String subname,
                                                                      String selector,
                                                                      javax.jms.ServerSessionPool sessPool,
                                                                      int maxMessages) throws JMSException {
    throw new IllegalStateException("Forbidden call on a QueueConnection.");
  }
View Full Code Here

   *
   * @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

   *
   * @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

    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

   */
  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

TOP

Related Classes of javax.jms.IllegalStateException

Copyright © 2018 www.massapicom. 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.