title: weblogic JMS queue message not rolled back on exception
body: <p>We weblogic10.3.4 and JMS queue set up on that ,below is the message listener code and it uses the Spring JMS , The MessageProducer is set to ClientAcknowledgeMode . When there is an exception occurs , the message is still moved out of the queue and getting rolle back ,anything wrong with below code?</p>
  
  <pre><code>public class EmailListener implements MessageListener,ExceptionListener{
  
  
  
      private EmailSend emailSend;
  
  
  
      @SuppressWarnings("unchecked")
      public void onMessage(Message message){
          ObjectMessage om ;
          try {
              if(message instanceof ObjectMessage) {
                  om = (ObjectMessage)message;
                  emailSend.sendEmail((Map&lt;String, String&gt;)om.getObject());
                  //throw new JMSException("Test");
                   om.acknowledge();
  
              }
          }
          catch(MailException me) {
              logger.error("Mail server exception in sending email",me);
              throw new RuntimeException(me);
          }catch(JMSException jmse) {
              logger.error("Error in sending email",jmse);
              throw new RuntimeException(jmse);
  
          }
  
      }
  
      public void setEmailSend(EmailSend emailSend){
          this.emailSend = emailSend;
      }
  
      public void onException(JMSException jmse){
          logger.error("Exception in sending email",jmse);
  
      }
      public void acknowledge(
      ) throws JMSException{
  
      }
  }
  </code></pre>
  
  <p>Below is the Spring config</p>
  
  <pre><code>&lt;!--Spring JMS Message Listener Container --&gt;
      &lt;bean id="jmsContainer"
          class="org.springframework.jms.listener.DefaultMessageListenerContainer"
          p:autoStartup="true" p:destination-ref="queue"
          p:destinationResolver-ref="jmsDestinationResolver"
          p:connectionFactory-ref="authenticationConnectionFactory"
          p:exceptionListener-ref="emailListener"
          p:messageListener-ref="emailListener" /&gt;
  </code></pre>