10 Replies Latest reply on Aug 15, 2007 4:02 PM by afielden

    JMSSecurityException when trying to subscribe to a temporary

    afielden

      Hi,

      I'm using QueueSession.createTemporaryQueue() and trying to receive messages from this queue. However I'm getting a JMSSecurityException (shown below) at the point where I create a JMS receiver
      I know that the jbossmq-destinations-service.xml file is used to setup permissions for individual queues, however my question is, how can I configure the permissions dynamically for my temporary queue?


      javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: JMS_TQ34
      at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:141)
      at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:816)
      at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:297)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:160)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:356)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)

        • 1. Re: JMSSecurityException when trying to subscribe to a tempo

          Security is configured on the DestinationManager for temporary destinations.

          • 2. Re: JMSSecurityException when trying to subscribe to a tempo
            afielden

             

            "adrian@jboss.org" wrote:
            Security is configured on the DestinationManager for temporary destinations.


            Could you give me a reference to the part of the documentation which describes how to configure the destination manager please?


            • 3. Re: JMSSecurityException when trying to subscribe to a tempo

              No, you can find it yourself.

              To repeat again, this forum is for technical questions, it does not exist because
              you don't know how to use search or can't be bothered doing your own research.

              Search is in the top right hand corner of your screen, try typing "DestinationManager"
              into it.

              • 4. Re: JMSSecurityException when trying to subscribe to a tempo

                Actually, it would be pointless to do so since my original response was incorrect
                now that I think about it. :-)

                Security for the temporary queues/topics is configured on the SecurityManager
                not the DestinationManager.

                • 5. Re: JMSSecurityException when trying to subscribe to a tempo
                  afielden

                  You really are a helpful person aren't you?
                  In practice, most of us don't live and breathe JBoss, as you obviously do. It's one of many technologies we use in the course of our jobs. With the tight time schedules of most software projects, we can't usually afford the luxury of becoming intimately familiar with every product we come into contact with. Bearing that in mind, I asked a simple question which an obvious 'God' of JBoss like yourself could answer in an instant without too much thought. I asked the question to avoid spending a lot of time poring over the documentation. I searched the forum and found no answer to my question, so I asked.
                  And as for doing my research, this forum is itself a resource. I just hoped to find a quick answer to help me solve a problem and save some time. Sorry if I was mistaken and caused offense.

                  Speaking of time, I've already wasted more than I should here.

                  • 6. Re: JMSSecurityException when trying to subscribe to a tempo

                    If you want somebody to do your work for you, hire somebody, don't expect
                    the open source community to do it for free.

                    It's open source NOT open arses.

                    • 7. Re: JMSSecurityException when trying to subscribe to a tempo

                      Please call again when you have a question that can't be answered by reading the
                      documentation (or post it your RTFM question in the newbies forum).

                      • 8. Re: JMSSecurityException when trying to subscribe to a tempo
                        afielden

                        The only arse around here is you.
                        I recommend that you refrain from reading the forum as you obviously have the wrong attitude. If you don't know the answer to a question just say so, rather than taking your frustration out on people by hurling personal insults.

                        As for my original question, there are apparently issues regarding permissions on temporary destinations. In fact you can't do it as this hasn't even been implemented yet. See http://jira.jboss.com/jira/browse/JBMESSAGING-998

                        So once again, thanks for your worthless comments, which have simply demonstrated what an unhelpful and unreasonable person you are.

                        • 9. Re: JMSSecurityException when trying to subscribe to a tempo
                          rosama77

                          Yeah, we have a lot of problems, but as adrian said, this is just investigating, knowing more about Jboss, this is a new area of opportunity and humans not are a encyclopedia, are they?.

                          And finally this forum is loosing its purpose, just technical matters not human, well in this case, what do you think?.

                          Have a nice day both of you, don't get complicated .

                          • 10. Re: JMSSecurityException when trying to subscribe to a tempo
                            afielden

                             

                            "rosama77" wrote:
                            Yeah, we have a lot of problems, but as adrian said, this is just investigating, knowing more about Jboss, this is a new area of opportunity and humans not are a encyclopedia, are they?.

                            And finally this forum is loosing its purpose, just technical matters not human, well in this case, what do you think?.

                            Have a nice day both of you, don't get complicated .


                            I agree, this is a tech forum which covers issues related to JBoss MQ.
                            I asked a question which wasn't in the FAQ, hadn't been asked before, and I get a load of crap from Mr high-and-mighty JBoss. Hardly a professional attitude is it?