3 Replies Latest reply on Aug 8, 2002 10:45 AM by hongmei

    Totally disable security on MDB

    hongmei Newbie

      hi, all.
      I have trouble to use MDB in JBoss3.0+Jetty. I want to disable security check on ConnectionFactory and MDB, how can I do it? Thanks in advance.
      hongmei

        • 1. Re: Totally disable security on MDB
          hongmei Newbie

          here is the exception I got in my previous post:
          10:50:50,340 INFO [STDOUT] clickstream connection: clickStreamQueueConnectionFa
          ctory
          10:50:50,402 ERROR [STDERR] javax.jms.JMSSecurityException: User: admin is NOT a
          uthenticated
          10:50:50,402 ERROR [STDERR] at org.jboss.mq.security.SecurityManager.authent
          icate(SecurityManager.java:181)
          10:50:50,402 ERROR [STDERR] at org.jboss.mq.security.ServerSecurityIntercept
          or.authenticate(ServerSecurityInterceptor.java:40)
          10:50:50,418 ERROR [STDERR] at org.jboss.mq.server.TracingInterceptor.authen
          ticate(TracingInterceptor.java:575)
          10:50:50,418 ERROR [STDERR] at org.jboss.mq.server.JMSServerInvoker.authenti
          cate(JMSServerInvoker.java:288)
          10:50:50,418 ERROR [STDERR] at org.jboss.mq.il.jvm.JVMServerIL.authenticate(
          JVMServerIL.java:302)
          10:50:50,418 ERROR [STDERR] at org.jboss.mq.Connection.authenticate(Connecti
          on.java:759)
          10:50:50,418 ERROR [STDERR] at org.jboss.mq.Connection.(Connection.jav
          a:233)
          10:50:50,418 ERROR [STDERR] at org.jboss.mq.SpyConnection.(SpyConnecti
          on.java:48)
          10:50:50,418 ERROR [STDERR] at org.jboss.mq.SpyConnectionFactory.createQueue
          Connection(SpyConnectionFactory.java:110)
          10:50:50,418 ERROR [STDERR] at com.unetworks.psa.clickstream.ClickStreamPubl
          isherImpl.publishMessage(ClickStreamPublisherImpl.java:35)
          10:50:50,434 ERROR [STDERR] at com.unetworks.psa.ui.action.VoteAction.perfor
          m(VoteAction.java:97)
          10:50:50,434 ERROR [STDERR] at org.apache.struts.action.ActionServlet.proces
          sActionPerform(ActionServlet.java:1787)
          10:50:50,434 ERROR [STDERR] at org.apache.struts.action.ActionServlet.proces
          s(ActionServlet.java:1586)
          10:50:50,434 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doGet(
          ActionServlet.java:492)
          10:50:50,434 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
          rvlet.java:740)
          10:50:50,434 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
          rvlet.java:853)
          10:50:50,434 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.handl
          e(ServletHolder.java:371)
          10:50:50,434 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.hand
          le(ServletHandler.java:607)
          10:50:50,434 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpConte
          xt.java:1387)
          10:50:50,434 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpConte
          xt.java:1326)
          10:50:50,434 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServe
          r.java:757)
          10:50:50,434 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:527)

          10:50:50,434 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(HttpC
          onnection.java:742)
          10:50:50,434 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(Ht
          tpConnection.java:915)
          10:50:50,434 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpCo
          nnection.java:757)
          10:50:50,434 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnect
          ion(SocketListener.java:151)
          10:50:50,434 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(Thread
          edServer.java:287)
          10:50:50,434 ERROR [STDERR] at org.mortbay.util.ThreadPool$JobRunner.run(Thr
          eadPool.java:715)
          10:50:50,434 ERROR [STDERR] at java.lang.Thread.run(Thread.java:484)

          thanks, hongmei

          • 2. Re: Totally disable security on MDB
            Peter Antman Expert

            Test to do this in jbossmq-service.xml:


            org.jboss.mq.server.TracingInterceptor
            <depends optional-attribute-name="NextInterceptor">jboss.mq:service=DestinationManager


            //Peter

            • 3. Re: Totally disable security on MDB
              hongmei Newbie

              it works, thanks.

              hongmei