Package javax.jms

Examples of javax.jms.JMSException


    }

    // Implementation methods
    //-------------------------------------------------------------------------
    protected RemoteInvocationResult onInvalidClientMessage(Message message) throws JMSException {
        throw new JMSException("Invalid response message: " + message);
    }
View Full Code Here


            if (id != null) {
                if (correlationID != null) {
                    String error = "User cannot set JMSCorrelationID when "
                        + "making a request/reply invocation using "
                        + "a static replyTo Queue.";
                    throw new JMSException(error);
                }
                correlationID = id;
            }
        }
View Full Code Here

    public void close() throws JMSException {
        producer.close();
    }

    public Message receive(long timeout) throws JMSException {
        throw new JMSException("receive(long) not implemented for OneWayRequestor");
    }
View Full Code Here

    public Message receive(long timeout) throws JMSException {
        throw new JMSException("receive(long) not implemented for OneWayRequestor");
    }

    public Message request(Destination destination, Message message) throws JMSException {
        throw new JMSException("request(Destination, Message) not implemented for OneWayRequestor");
    }
View Full Code Here

    public Message request(Destination destination, Message message) throws JMSException {
        throw new JMSException("request(Destination, Message) not implemented for OneWayRequestor");
    }

    public Message request(Destination destination, Message message, long timeout) throws JMSException {
        throw new JMSException("request(Destination, Message, long) not implemented for OneWayRequestor");
    }
View Full Code Here

    // Implementation methods
    //-------------------------------------------------------------------------

    protected JMSException createJMSException(Exception e) {
        JMSException answer = new JMSException(e.toString());
        answer.setLinkedException(e);
        return answer;
    }
View Full Code Here

  
   private int getProviderVersion(boolean isMinor) throws JMSException {
      String version = getProviderVersion();
      StringTokenizer tok = new StringTokenizer(version, ".");
      if (tok.countTokens() < 2)
         throw new JMSException(ME + ".getProviderVersion: exception when parsing version '" + version + "' since it has no separator", ErrorCode.INTERNAL_ILLEGALARGUMENT.getErrorCode());
      try {
         if (isMinor) tok.nextToken();
         return Integer.parseInt(tok.nextToken().trim());
      }
      catch (Exception ex) {
         throw new JMSException(ME + ".getProviderVersion: exception when parsing version '" + version + "' reason: " + ex.getMessage(), ErrorCode.INTERNAL_ILLEGALARGUMENT.getErrorCode());
      }
   }
View Full Code Here

            chunk.setStringProperty(XBConnectionMetaData.JMSX_GROUP_EX, ex.getMessage());
            producer.send(dest, chunk);
         }
         if (ex instanceof JMSException)
            throw (JMSException)ex;
         throw new JMSException(ex.getMessage());
      }
   }
View Full Code Here

         throw new XBException(ex, "exception occured when trying to close the connection");
      }
     
      synchronized(this.closeSync) { // Note: this does not protect in case a newMessage
         // calls close itself (since in same thread sync will not do)
         JMSException ex = null;
         Object[] keys = this.sessionMap.keySet().toArray();
         for (int i=0; i < keys.length; i++) {
            // first deregister listener to avoid recursive deletion of entries in this map
            XBSession session = (XBSession)this.sessionMap.get(keys[i]);
            if (session != null) {
               try {
                  session.close();
               }
               catch (JMSException e) {
                  ex = e;
                  if (this.exceptionListener != null) this.exceptionListener.onException(e);
                  if (log.isLoggable(Level.FINE)) {
                     ex.printStackTrace();
                  }
               }
            }
         }
         this.sessionMap.clear();
View Full Code Here

      if (log.isLoggable(Level.FINER))
         log.finer(txt);
      synchronized (this.closeSync) {
         this.stillVirgin = false;

         JMSException ex = null;
         Object[] keys = this.sessionMap.keySet().toArray();
         for (int i=0; i < keys.length; i++) {
            XBSession session = (XBSession)this.sessionMap.get(keys[i]);
            if (session != null) {
               try {
View Full Code Here

TOP

Related Classes of javax.jms.JMSException

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.