2 Replies Latest reply on Aug 29, 2002 4:23 PM by ultracode

    JMSSecurityException when subscribing to TemporaryTopic

    ultracode

      I'm using JBoss3/Jetty and I'm having a problem with some code that formerly worked in 2.4.4. Here's the code:

      TopicSession replySession = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
      Topic replyTopic = replySession.createTemporaryTopic();
      Message message = requestSession.createMessage();
      message.setJMSReplyTo(replyTopic);
      TopicSubscriber subscriber = replySession.createSubscriber(replyTopic);

      The last line above generates a JMSSecurityException with the text "Connection not authorized to subscribe to destination: JMS_TT2"
      On the JBoss console I see:
      17:15:13,917 WARN [SecurityManager] No SecurityMetadadata was available for JMS_TT2 adding default security conf
      17:15:13,917 WARN [OILServerILService] Client request resulted in a server exception:
      javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: JMS_TT2

      Is there something that I need to do configuration-wise to be able to subscribe to temporary topics?
      TIA,
      Eric