MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Unable to connect JMSMessage putMessage

    Posted 04/22/20 06:42 AM
    I'm currently trying to configure JMS messaging through the use of the JMSMessage implementation from the integration.jar file.
    The method being used from the JMSMessage library is putMessage. The configurable options provided to the developer when using this interface are:

    "com.ibm.websphere.naming.WsnInitialContextFactory" - Parameter 1
    "corbaloc:iiop:localhost:2809"                                       - Parameter 2
    "hello world"                                                                - Parameter 3
    "jms/UK_Refund_Request"                                           - Parameter 4
    "jms/REFUND_HR"                                                      - Parameter 5
    <empty>                                                                     - Parameter 6
    <empty>                                                                     - Parameter 7

    I have configured the jms queue and connectionFactory jndi information within WAS.

    The error received when the service is executed within Designer is

    CWTBG0019E: Unexpected exception during execution. Exception information: 'com.lombardisoftware.component.common.workflow.WorkflowProcessItemException: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0'.

    Does anyone know why I might be getting this error?

    ------------------------------
    Tony Poole
    ------------------------------


  • 2.  RE: Unable to connect JMSMessage putMessage

    Posted 04/23/20 08:50 AM
    Edited by Francois Brandelik 04/23/20 08:50 AM
    your second parameter does not look right try replacing it with
    iiop://localhost:2809​


    ------------------------------
    FJ Brandelik
    ------------------------------



  • 3.  RE: Unable to connect JMSMessage putMessage

    Posted 04/27/20 04:52 AM
    Hi Francois,

    Tested with your recommendation and I get the same error. 

    Regards

    Tony

    ------------------------------
    Tony Poole
    ------------------------------



  • 4.  RE: Unable to connect JMSMessage putMessage

    Posted 05/05/20 03:49 AM
    Hi Francois,

    You mentioned trying the filecontext. The application trying to load the initialContext is a WAS application - installed within my local instance of WAS as an application. It's not external therefore it should be looking for the WAS context and not a file context shouldn't it?

    ------------------------------
    Tony Poole
    ------------------------------



  • 5.  RE: Unable to connect JMSMessage putMessage

    Posted 05/05/20 08:17 AM
    Sure, but something seems to be going very wrong, and might be linked to your context definition.
    So step1 define a file context and verify that one works
    step2 in WAS use the file context to define the was context
    step3 check the was context is working.

    ------------------------------
    Francois Brandelik
    ------------------------------



  • 6.  RE: Unable to connect JMSMessage putMessage

    Posted 05/04/20 05:00 PM
    Have you tried to restart the JVM?

    https://www.ibm.com/support/pages/getting-following-error-message-idlomgorgcosnamingnamingcontextnotfound10

    ------------------------------
    Enio Marques Junior
    ------------------------------



  • 7.  RE: Unable to connect JMSMessage putMessage

    Posted 05/05/20 03:46 AM
    Hi Enio,

    Yes I've tried that - I have been through all of the suggested fixes out there on the internet and nothing seems to do the trick. I'm running WAS locally on my Thinkpad so I can pretty much do what I wish with it. 
    It doesn't seem to matter what I try - I get the same error.
    Regards
    Tony

    ------------------------------
    Tony Poole
    ------------------------------