Forum Discussion
hi Rao,
the queues are configured in hermesJMS.
In service V, a JMS virt was created and the JMS route, specifying hermes config, session and target was added.
please find below screenshot of the this implementation in servive V.
the below is a snapshot of the transaction log, with incoming messages.
I have highlighted the JMS property values which I would like to capture in the incoming request and set in the response message.
- nmrao8 years agoChampion Level 3Have you tried below?
log.info mockRequest.requestHeaders['property name']- vijaydi8 years agoContributor
Hi Rao,
Thanks you for the response.
I am using Ready API 1.9.0-m-snapshot.
I tried the line of code you specified, but get the below error.
Sat Jun 24 22:21:46 AEST 2017:ERROR:groovy.lang.MissingPropertyException: No such property: requestHeaders for class: com.smartbear.servicev.core.model.impl.jms.JmsMockRequest
groovy.lang.MissingPropertyException: No such property: requestHeaders for class: com.smartbear.servicev.core.model.impl.jms.JmsMockRequest
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53)
at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:296)
at Script9.run(Script9.groovy:6)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:98)
at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:79)
at com.eviware.soapui.impl.wsdl.mock.dispatch.ScriptMockOperationDispatcher.selectMockResponse(ScriptMockOperationDispatcher.java:97)
at com.smartbear.servicev.core.model.impl.jms.JmsMockDispatcher.dispatchRequest(JmsMockDispatcher.java:90)
at com.smartbear.servicev.core.engine.impl.jms.JmsVirt.regularDispatch(JmsVirt.java:68)
at com.smartbear.servicev.core.engine.impl.jms.JmsVirt.regularDispatch(JmsVirt.java:1)
at com.smartbear.servicev.core.engine.impl.AbstractVirt.dispatch(AbstractVirt.java:140)
at com.smartbear.servicev.core.engine.impl.jms.JmsVirt.dispatch(JmsVirt.java:93)
at com.smartbear.servicev.core.model.impl.jms.JmsMockDispatcher$ProducerConsumerConnectionData.onMessage(JmsMockDispatcher.java:51)
at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1404)
at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)- nmrao8 years agoChampion Level 3Ok.
Could not find JmsMockRequest in the javadoc.
http://www.soapui.org/apidocs/pro/index.html#_ga=2.197268454.817962768.1498456066-956719819.1497251130
Related Content
- 9 years ago
Recent Discussions
- 18 days ago