Forum Discussion

Ivan_S_Trampeda's avatar
Ivan_S_Trampeda
Occasional Contributor
15 years ago

[Solved] JMS - Receive information from a Weblogic Queues?

Hi,

In SoapUI Pro v. 3.5 beta 1, I have created new JMS endpoint for my weblogic session.
I manage to see Weblogic Queues via Hermes.

After creating a step that Send event to webservice with 'normal' end point.
I belive that it was possible to create a new step, where it was possible to check the queues where request is send to.
I have tried to play with different combinations of JMS endponts Send/receive without success.

Is it possible to make a queues check without having a request in same step?

Regards Ivan

7 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    thanks for your post.

    As I understand you have successfully created session in hermes, but not sure what you want to do.

    If checking the queue means to monitor that queue , you can do it in hermes by double click on queue name and check the auto refresh button.

    And please elaborate you question little more so we can help you.
    BTW what you mean by 'normal ' endpoint?

    regards
    Nebojsa
    eviware.com
  • Ivan_S_Trampeda's avatar
    Ivan_S_Trampeda
    Occasional Contributor
    Hi,
    I will try to give more details.
    Yes I can monitore queue from hermes, no problems.
    Problems come when I try to retreive information so SoapUI.

    As I read the JMS-tutorial, the end point is the queue and not a 'normal' webservice end point.

    My hope is when I make a SOAP request on a webservice, then it would be possible from a SoapUI step, checking that my request also is put on queue and in the right way.

    I hope I made it a little more cleare 

    Regards Ivan
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    so correct me if I'm wrong, your use case looks like this:

    you send soap request to a webservice
    and that webservice somehow put that message on a queue,
    and you want to check that message exists on that queue by SoapUI.

    JMS support in SoapUI alows you to:
    send only ( jms://sessionName/queue_myqueue )
    receive only ( jms://sessionName/-/queue_myqueue )
    send and receive ( jms://sessionName/queue_myqueue1/queue_myqueue2 or  jms://sessionName/queue_myqueue/queue_myqueue  )

    and also to use topics this way.

    So, you can make Request test step that only receives from queue using
      jms://sessionName/-/queue_myqueue as endpoint

    Hope that this helps, if not please explain your use case so we can help you out

    Regards,
    Nebojsa
    eviware.com
  • Ivan_S_Trampeda's avatar
    Ivan_S_Trampeda
    Occasional Contributor
    Hi Nebojsa

    You got it the right way.

    We found out that the problem was with java versions (invalid type code: 31 ).

    After patching SoapUI and Hermes it is now running perfect.


    Thanks.
  • Ivan_S_Trampeda's avatar
    Ivan_S_Trampeda
    Occasional Contributor
    The patch was on

    ...soapui\bin\soapui-pro.bat
    ....hermesJMS\bin\hermes.bat

    and addede line following line in the end
    "-Dsun.lang.ClassLoader.allowArraySyntax=true"

    After this, I only start SoapUi with soapui-pro.bat.
    If I use the .exe I stille get the error

    Regards Ivan
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    please try adding

    -Dsun.lang.ClassLoader.allowArraySyntax=true

    to the .vmoptions file used by the exe file.. does that help?

    regards!

    /Ole
    eviware.com
  • Ivan_S_Trampeda's avatar
    Ivan_S_Trampeda
    Occasional Contributor
    Hi Ole

    After adding line into  file soapUI-Pro-3.5-beta1.vmoptions .exe is working again.

    /regards Ivan