8 Replies Latest reply on Oct 5, 2011 7:40 AM by ferp

    OSB10 and MQ remote queue

    ferp
      Hi all,

      we are trying to connect OSB to a MQ remote queue but we have some troubles ...

      We installed WebSphere MQ 7.0.1.3:

      mqm@bsrplab0008:/export/home/mqm > dspmqver
      Name: WebSphere MQ
      Version: 7.0.1.3
      CMVC level: p701-7013TRIAL
      BuildType: IKAP - (Production)

      And we created into MQ below objects:
      - Create a queue manager
      - Start a queue manager
      - Define a queue
      with below MQ commands:
      crtmqm -q MQ.TESTQUEUE.MANAGER
      strmqm MQ.TESTQUEUE.MANAGER
      runmqsc MQ.TESTQUEUE.MANAGER
      define qlocal (mq.test.queue)

      About OSB we performed below steps:
      - Add the client jar to OSB classpath (/products/software/osb103/domains/OSBDomain/lib/com.ibm.mq.jar)
      - Create MQConnection:
      Connection Type mqTcpModeType
      MQ Host Name 11.0.4.35
      MQ Port Number 1414
      MQ Queue Manager Name MQ.TESTQUEUE.MANAGER
      MQ Queue Manager Channel Name CHL.WMQ.TESTQUEUE
      SSL Required false
      WebSphere MQ Version v6
      MQ Connection Pool Size 10
      MQ Connection Timeout 1800
      MQ Connection Max Wait 3
      - A MQ proxy (where Tmp_OSB_WMQ is the project folder in OSB):
      Service Type Any XML Service
      Protocol mq
      Endpoint URI mq://MQ.TEST.QUEUE?conn=Tmp_OSB_WMQ/MQConnection
      Polling Interval 1000
      Is Response Required DISABLED
      Backout Threshold 0
      Process RFH2 Headers DISABLED
      Content Streaming Disabled

      We suppose the problem could be how we defined ‘MQ Queue Manager Channel Name’ into MQ:
      runmqsc MQ.TESTQUEUE.MANAGER
      DEFINE CHANNEL('CHL.WMQ.TESTQUEUE') CHLTYPE(SVRCONN)
      end

      --> I'm not a MQ expert :-) and it is the first time that I'm working with MQ ...

      From OSB there is no error when we activate the project …
      But while on MQ server we can successfully send/receive messages on the target queue:
      ./amqsput MQ.TEST.QUEUE
      ./amqsget MQ.TEST.QUEUE
      We don’t get any message from OSB MQ proxy.

      Do you have any hints ? Did you connect successfully OSB and MQ using MQ transport provided by OSB ?

      Thanks in advance
      ferp
        • 1. Re: OSB10 and MQ remote queue
          Anuj Dwivedi--Oracle
          There is no direct support for MQ7 in OSB 10g. Either use MQ 6 client libraries at OSB or get a patch from Oracle Support to use MQ7 client libraries at OSB

          You would also like to refer -

          http://www.oracle.com/technetwork/middleware/service-bus/overview/osb-websphere-whitepaper-132660.pdf

          Regards,
          Anuj
          • 2. Re: OSB10 and MQ remote queue
            ferp
            ciao Anuj,

            thanks for your feedback, we use MQ 6 client libraries at OSB as you can see from the MANIFEST file inside the com.ibm.mq.jar file:

            Specification-Title: WebSphere MQ classes for Java
            Class-Path: com.ibm.mq.jar connector.jar jta.jar
            Created-By: 1.4.2 (IBM Corporation)
            Implementation-Title: WebSphere MQ classes for Java
            Specification-Vendor: IBM Corporation
            Specification-Version: 6.0.1.1
            Implementation-Version: 6.0.1.1 - j600-101-060504

            I suppose the problem is related how we defined the channel on MQ site ... I was reading different articles and trying different alternatives but it is still not working. Also testing the business service we got from OSB log files few details ... (even we enabled Message Tracing at FULL detail level):

            ####<Oct 3, 2011 3:36:26 PM CEST> <Info> <OSB Kernel> <bsrpdev0012> <OSBServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1317648986789> <BEA-398205> <
            [OSB Tracing] Outbound request caused an exception

            Service Ref = Tmp_OSB_WMQ/MQBusinessService
            URI = mq://MQ_TEST_OSB_QUEUE?conn=Tmp_OSB_WMQ/MQConnection
            Error code = BEA-380002
            Error Message = Error trying to access queue MQ_TEST_OSB_QUEUE
            Payload =
            >

            Regards
            ferp
            • 3. Re: OSB10 and MQ remote queue
              687626
              Try this

              runmqsc MQ.TESTQUEUE.MANAGER
              dis qs (mq.test.queue) IPPROCS

              If you see a value greater than 0 for IPPROCS it implies there are thread(s) listening for messages.. this could mean your proxy is configured correctly to listen to the queue. Then the issue could be with poison messages as you have configured a any xml service and you might have received non xml messages.

              If you see IPPROCS as 0 then there should be an issue with configuration. Check whether queue manager listener has been started and you have any permission related issues. AMQxxx logs in the error directory of the qmgr home folder might give you some clues.

              regards
              Atheek
              • 4. Re: OSB10 and MQ remote queue
                ferp
                Ciao Atheek,

                thanks a lot for your feedback.

                I run the command yu suggested:

                mqm@bsrplab0008:/var/mqm/qmgrs > runmqsc MQ_TEST_MANAGER
                5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
                Starting MQSC for queue manager MQ_TEST_MANAGER.

                dis qs (mq_test_osb_queue) IPPROCS
                1 : dis qs (mq_test_osb_queue) IPPROCS
                AMQ8450: Display queue status details.
                QUEUE(MQ_TEST_OSB_QUEUE) TYPE(QUEUE)
                CURDEPTH(0) IPPROCS(0)
                end

                --> so IPPROCS is 0 !

                But the queue manager is running:

                mqm@bsrplab0008:/var/mqm/qmgrs > dspmq -m MQ_TEST_MANAGER
                QMNAME(MQ_TEST_MANAGER) STATUS(Running)

                And from AMQxxx logs I don’t see any particular error message:

                -------------------------------------------------------------------------------
                10/03/11 15:20:25 - Process(10551320.1) User(mqm) Program(amqzxma0_nd)
                Host(bsrplab0008)
                AMQ8003: WebSphere MQ queue manager 'MQ_TEST_MANAGER' started.

                EXPLANATION:
                WebSphere MQ queue manager 'MQ_TEST_MANAGER' started.
                ACTION:
                None.

                -------------------------------------------------------------------------------
                10/03/11 15:20:26 - Process(15204570.1) User(mqm) Program(amqzmgr0)
                Host(bsrplab0008)
                AMQ5022: The Channel Initiator has started. ProcessId(12910698).

                EXPLANATION:
                The Channel Initiator process has started.
                ACTION:
                None.

                On OSB we enabled MQ-debug information (<java:alsb-mqconnection-debug>true</java:alsb-mqconnection-debug>) and when we test our OSB MQ business service we get below exception:

                ####<Oct 4, 2011 9:49:53 AM CEST> <Debug> <AlsbMqConnection> <bsrpdev0012> <BsizzOSBServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1317714593237> <BEA-000000> <MQOC.processing request headers>
                ####<Oct 4, 2011 9:49:53 AM CEST> <Debug> <AlsbMqConnection> <bsrpdev0012> <BsizzOSBServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1317714593243> <BEA-000000> <OMC.run: Sending outbound request to mq://MQ_TEST_OSB_QUEUE?conn=Tmp_OSB_WMQ/MQConnection>
                ####<Oct 4, 2011 9:49:53 AM CEST> <Debug> <AlsbMqConnection> <bsrpdev0012> <BsizzOSBServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1317714593243> <BEA-000000> <864039808:MQCP.borrowObject>
                ####<Oct 4, 2011 9:49:53 AM CEST> <Debug> <AlsbMqConnection> <bsrpdev0012> <BsizzOSBServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1317714593243> <BEA-000000> <502013420:MQCPF.makeObject>
                ####<Oct 4, 2011 9:49:53 AM CEST> <Debug> <SFTPTransport> <bsrpdev0012> <BsizzOSBServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1317714593253> <BEA-381830> <Created 0 tasks>
                ####<Oct 4, 2011 9:49:53 AM CEST> <Debug> <AlsbMqConnection> <bsrpdev0012> <BsizzOSBServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1317714593296> <BEA-000000> <MQCC.getQueueManagerConnection: error
                com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
                MQJE016: MQ queue manager closed channel immediately during connect
                Closure reason = 2009
                at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:212)
                at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)
                at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:338)
                at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
                at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
                at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:772)
                at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:697)
                at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:657)
                at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:153)
                at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:526)
                at com.bea.wli.sb.resources.mqconnection.MQConnectionPoolFactory.makeObject(MQConnectionPoolFactory.java:281)
                at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
                at com.bea.wli.sb.resources.mqconnection.MQConnectionPool.borrowObject(MQConnectionPool.java:58)
                at com.bea.wli.sb.resources.mqconnection.MQConnectionContext.getQueueManagerConnection(MQConnectionContext.java:140)
                at com.bea.wli.sb.transports.mq.MQOutboundMessageContext.send(MQOutboundMessageContext.java:565)
                at com.bea.wli.sb.transports.mq.MQTransportProvider.sendMessageAsync(MQTransportProvider.java:501)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
                at java.lang.reflect.Method.invoke(Method.java:599)
                at com.bea.wli.sb.transports.Util$1.invoke(Util.java:82)
                at $Proxy73.sendMessageAsync(Unknown Source)
                at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:148)
                at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:547)
                at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:482)
                at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:544)
                at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:422)
                at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:296)
                at com.bea.wli.sb.test.service.ServiceMessageSender.access$000(ServiceMessageSender.java:68)
                at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:125)
                at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:123)
                at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
                at weblogic.security.service.SecurityManager.runAs(Unknown Source)
                at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
                at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:128)
                at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:441)
                at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:169)
                at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:136)
                at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(TestService_sqr59p_EOImpl.java:572)
                at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
                at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
                at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
                at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
                at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_1030_WLStub.invoke(Unknown Source)
                at com.bea.alsb.console.test.TestServiceClient.invoke(TestServiceClient.java:179)
                at com.bea.alsb.console.test.actions.DefaultRequestAction.invoke(DefaultRequestAction.java:117)
                at com.bea.alsb.console.test.actions.DefaultRequestAction.execute(DefaultRequestAction.java:70)
                at com.bea.alsb.console.test.actions.ServiceRequestAction.execute(ServiceRequestAction.java:80)
                at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2044)
                at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:91)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2116)
                at com.bea.alsb.console.common.base.SBConsoleRequestProcessor.processActionPerform(SBConsoleRequestProcessor.java:91)
                at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:556)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:853)
                at com.bea.alsb.console.common.base.SBConsoleRequestProcessor.process(SBConsoleRequestProcessor.java:191)
                at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:631)
                at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:158)
                at com.bea.console.internal.ConsoleActionServlet.process(ConsoleActionServlet.java:256)
                at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
                at com.bea.console.internal.ConsoleActionServlet.doGet(ConsoleActionServlet.java:133)
                at com.bea.alsb.console.common.base.SBConsoleActionServlet.doGet(SBConsoleActionServlet.java:49)
                at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1199)
                at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1129)
                at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:687)
                at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionInternal(ScopedContentCommonSupport.java:142)
                at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.processAction(StrutsStubImpl.java:76)
                at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction(NetuiActionHandler.java:111)
                at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:181)
                at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:167)
                at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiContent.java:220)
                at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:180)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:324)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)
                at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
                at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
                at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
                at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)
                at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)
                at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
                at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
                at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
                at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
                at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
                at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
                at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
                at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
                at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
                at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
                at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
                at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
                at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
                at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                at weblogic.security.service.SecurityManager.runAs(Unknown Source)
                at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
                at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
                at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
                at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
                at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
                com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
                MQJE016: MQ queue manager closed channel immediately during connect
                Closure reason = 2009
                at com.ibm.mq.MQv6InternalCommunications.checkControlFlags(MQv6InternalCommunications.java:747)
                at com.ibm.mq.MQv6InternalCommunications.establishChannel(MQv6InternalCommunications.java:663)
                at com.ibm.mq.MQv6InternalCommunications.initialize(MQv6InternalCommunications.java:213)
                at com.ibm.mq.MQv6InternalCommunications.<init>(MQv6InternalCommunications.java:109)
                at com.ibm.mq.MQSESSIONClient.MQCONNX(MQSESSIONClient.java:1337)
                at com.ibm.mq.MQSESSIONClient.MQCONN(MQSESSIONClient.java:1246)
                at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:184)
                at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:318)
                at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:338)
                at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
                at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
                at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:772)
                at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:697)
                at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:657)
                at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:153)
                at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:526)
                at com.bea.wli.sb.resources.mqconnection.MQConnectionPoolFactory.makeObject(MQConnectionPoolFactory.java:281)
                at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
                at com.bea.wli.sb.resources.mqconnection.MQConnectionPool.borrowObject(MQConnectionPool.java:58)
                at com.bea.wli.sb.resources.mqconnection.MQConnectionContext.getQueueManagerConnection(MQConnectionContext.java:140)
                at com.bea.wli.sb.transports.mq.MQOutboundMessageContext.send(MQOutboundMessageContext.java:565)
                at com.bea.wli.sb.transports.mq.MQTransportProvider.sendMessageAsync(MQTransportProvider.java:501)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
                at java.lang.reflect.Method.invoke(Method.java:599)
                at com.bea.wli.sb.transports.Util$1.invoke(Util.java:82)
                at $Proxy73.sendMessageAsync(Unknown Source)
                at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:148)
                at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:547)
                at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:482)
                at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:544)
                at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:422)
                at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:296)
                at com.bea.wli.sb.test.service.ServiceMessageSender.access$000(ServiceMessageSender.java:68)
                at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:125)
                at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:123)
                at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
                at weblogic.security.service.SecurityManager.runAs(Unknown Source)
                at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
                at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:128)
                at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:441)
                at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:169)
                at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:136)
                at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(TestService_sqr59p_EOImpl.java:572)
                at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
                at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
                at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
                at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
                at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_1030_WLStub.invoke(Unknown Source)
                at com.bea.alsb.console.test.TestServiceClient.invoke(TestServiceClient.java:179)
                at com.bea.alsb.console.test.actions.DefaultRequestAction.invoke(DefaultRequestAction.java:117)
                at com.bea.alsb.console.test.actions.DefaultRequestAction.execute(DefaultRequestAction.java:70)
                at com.bea.alsb.console.test.actions.ServiceRequestAction.execute(ServiceRequestAction.java:80)
                at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2044)
                at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:91)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2116)
                at com.bea.alsb.console.common.base.SBConsoleRequestProcessor.processActionPerform(SBConsoleRequestProcessor.java:91)
                at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:556)
                at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:853)
                at com.bea.alsb.console.common.base.SBConsoleRequestProcessor.process(SBConsoleRequestProcessor.java:191)
                at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:631)
                at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:158)
                at com.bea.console.internal.ConsoleActionServlet.process(ConsoleActionServlet.java:256)
                at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
                at com.bea.console.internal.ConsoleActionServlet.doGet(ConsoleActionServlet.java:133)
                at com.bea.alsb.console.common.base.SBConsoleActionServlet.doGet(SBConsoleActionServlet.java:49)
                at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1199)
                at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1129)
                at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:687)
                at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionInternal(ScopedContentCommonSupport.java:142)
                at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.processAction(StrutsStubImpl.java:76)
                at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction(NetuiActionHandler.java:111)
                at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:181)
                at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:167)
                at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiContent.java:220)
                at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:180)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:324)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
                at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)
                at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
                at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
                at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
                at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)
                at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)
                at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
                at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
                at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
                at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
                at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
                at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
                at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
                at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
                at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
                at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
                at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
                at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
                at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
                at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                at weblogic.security.service.SecurityManager.runAs(Unknown Source)
                at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
                at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
                at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
                at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
                at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
                >
                ####<Oct 4, 2011 9:49:53 AM CEST> <Error> <WliSbTransports> <bsrpdev0012> <BsizzOSBServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1317714593310> <BEA-381916> <Error occured when connecting to MQ: Error trying to access queue MQ_TEST_OSB_QUEUE>


                Thanks in advance
                ferp
                • 5. Re: OSB10 and MQ remote queue
                  Patrick Taylor
                  MQRC 2009 - Generally happens due to some connectivity issues. Can you check if you have the permissions to connect to the QM?

                  Also when you created the MQ connection, you should have used a username password? If yes, please check if that user has the permission to access the QM.

                  Thanks,
                  Patrick
                  • 6. Re: OSB10 and MQ remote queue
                    687626
                    Did you check if the queue manager listener has started and listening at the port you configured.

                    Does netstat -na | grep <QMGR Port> return any entries in LISTENING state ?
                    • 7. Re: OSB10 and MQ remote queue
                      ferp
                      Hi all,

                      issue solved, below what we did so it can be useful for anyone trying to do the same :-)

                      About the 'netstat -na | grep' check, we checked the mq default port 1414 was listening:

                      netstat -na | grep 1414
                      tcp 0 0 *.1414 *.* LISTEN

                      but that didn't solve our problem, we added a queue manager listener on different port and that solved our issue.

                      So finally we successfully tested a round-trip using an OSB MQ business service for publishing a message into a MQ queue and consuming that message with an OSB MQ proxy service.
                      MQ and OSB are on different servers.
                      What we added to our configuration was a MQ listener on MQ site:

                      runmqlsr -m MQ_TEST_MANAGER -p 4455 -t tcp

                      and now OSB – MQ integration works.

                      So summarizing below you can find the step list of commands executed on MQ site:

                      crtmqm -q MQ_TEST_MANAGER
                      strmqm MQ_TEST_MANAGER
                      runmqsc MQ_TEST_MANAGER
                      define qlocal (mq_test_osb_queue)
                      DEFINE CHANNEL(MYCHANNEL) CHLTYPE(CLNTCONN) TRPTYPE(TCP) CONNAME(11.0.4.35) QMNAME ('MQ.TEST.MANAGER')
                      DEFINE CHANNEL(MYCHANNEL) CHLTYPE(SVRCONN) TRPTYPE(TCP)
                      end
                      runmqlsr -m MQ_TEST_MANAGER -p 4455 -t tcp

                      On OSB MQ connection site we used therefore:

                      Connection Type mqTcpModeType
                      MQ Host Name 11.0.4.35
                      MQ Port Number 4455
                      MQ Queue Manager Name MQ_TEST_MANAGER
                      MQ Queue Manager Channel Name MYCHANNEL
                      SSL Required false
                      WebSphere MQ Version v6
                      MQ Connection Pool Size 10
                      MQ Connection Timeout 1800
                      MQ Connection Max Wait 3

                      Best regards
                      ferp
                      • 8. Re: OSB10 and MQ remote queue
                        ferp
                        Added to the question our solution :-)