Configure JMS for Websphere IBM MQ 9
Hello everyone, I´am trying to configure JMS for get connected to Websphere IBM MQ.The help does not give any clue how to connect to a remote queuemanager. It only points to a local installation, which I do not have and therefore I am missing the config-values/syntax of the values. I have to set: 1. Initial Context Class: 2. Provicer URL: 3. Connection Factory JNDI Name: I have tried it with: 1. initial.context.class.name=com.sun.jndi.fscontext.RefFSContextFactory 2. tcp://host:port/channel-name 3.connection.factory.name.template=com.ibm.mq.jms.MQQueueConnectionFactory When I test my JMS-Configuration I am getting an error like this: "Could not establish a JMS connection: javax.naming.InvalidNameException: tcp://XXX:2110/XXX [Root exception is java.net.MalformedURLException: unknown protocol: tcp]" Would be glad, if someone has an example for Webspere IBM MQ Regards, Florian432Views1like3CommentsGetting java.net.SocketTimeoutException: Read timed out in Macbook M1 Pro
Hi Team, Trying to consume Rest Api service from ReadyAPI in Macbook M1 Pro but getting the below exception tried increasing the socket time out to 10 mins but no use java.net.SocketTimeoutException: Read timed out at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:283) at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:309) at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350) at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803) at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966) at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:478) at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:472) at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70) at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1460) at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1064) at com.eviware.soapui.impl.wsdl.support.http.SoapUILoggingInputStream.read(SoapUILoggingInputStream.java:53) at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:139) at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:155) at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:284) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261) at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165) at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:167) at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doReceiveResponse(HttpClientSupport.java:517) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71) at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpClient.doExecute(HttpClientSupport.java:272) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:617) at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:591) at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:337) at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:254) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:130) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) the same endpoint /web service works fine in windows 10 but not in Macbook M1 pro819Views0likes0CommentsEvent handler to trim CDATA from JMS response
I am looking for a way to remove CDATA from the XML response of my JMS Requests. Thinking the best way to do this would be with an event handler but open to other suggestions. I have this as a RequestFilter.afterRequest: def content = context.httpResponse.responseContent content = content.replaceAll( "<data contentType='null' contentLength='33173'><![CDATA[", "") content = content.replaceAll( "]]></data>", "" ) context.httpResponse.responseContent = content I think part of the problem is the JMS Request response isn't an 'httpResponse' but I'm not sure how to identify the content in this context. For some context, I am publishing a message via the MQTT test step and capturing the response message off a queue manager via JMS.629Views0likes3CommentsJMS Connection Error : Could not establish a JMS connection: javax.naming.NameNotFoundException:
I am trying to connect to TIBCO server I have provided the JAR files in LIB folder of ReadyAPi and EXt folder as well. I have entered the InitialContextFactory, URL and ConnectionFactory name getting the following error: Could not establish a JMS connection: javax.naming.NameNotFoundException: Name not found: 'com.tibco.tibjms.TibjmsConnectionFactory' can anyone please point out where I am going wrong. Thanks1.1KViews0likes4CommentsJMS with Websphere runs into an Error
Hi! I configured JMS and in the JMS console (when I click on "Test the current JMS server) I get an "The connection has been tested successfully." back. So far so good. so I set up a JMS call and here I get an Error. The Errorlog says: Fri Nov 25 14:25:46 CET 2022: ERROR: Error getting manually configured JMS connection Fri Nov 25 14:25:46 CET 2022: ERROR: javax.naming.NameNotFoundException: [Queue.Name] javax.naming.NameNotFoundException: [Queue.Name] at com.sun.jndi.fscontext.RefFSContext.getObjectFromBindings(RefFSContext.java:400) at com.sun.jndi.fscontext.RefFSContext.lookupObject(RefFSContext.java:327) at com.sun.jndi.fscontext.RefFSContext.lookup(RefFSContext.java:146) at com.sun.jndi.fscontext.FSContext.lookup(FSContext.java:127) at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409) at com.eviware.soapui.ready.jms.JmsConnectionManager.getDestination(JmsConnectionManager.java:169) at com.eviware.soapui.ready.jms.JmsConnectionManager.createConnection(JmsConnectionManager.java:132) at com.eviware.soapui.impl.wsdl.submit.transports.jms.ProJmsRequestTransport.b(ProJmsRequestTransport.java:440) at com.eviware.soapui.impl.wsdl.submit.transports.jms.ProJmsRequestTransport.a(ProJmsRequestTransport.java:111) at com.eviware.soapui.impl.wsdl.submit.transports.jms.ProJmsRequestTransport.sendRequest(ProJmsRequestTransport.java:88) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:130) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) Fri Nov 25 14:25:46 CET 2022: ERROR: com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry$CannotResolveJmsTypeException: The JNDI name was not found: [Queue.Name]. Make sure the specified name is correct and additional JNDI properties are specified. com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry$CannotResolveJmsTypeException: The JNDI name was not found: [Queue.Name]. Make sure the specified name is correct and additional JNDI properties are specified. at com.eviware.soapui.impl.wsdl.submit.transports.jms.ProJmsRequestTransport.b(ProJmsRequestTransport.java:444) at com.eviware.soapui.impl.wsdl.submit.transports.jms.ProJmsRequestTransport.a(ProJmsRequestTransport.java:111) at com.eviware.soapui.impl.wsdl.submit.transports.jms.ProJmsRequestTransport.sendRequest(ProJmsRequestTransport.java:88) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:130) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) Thank you for your help or suggestions! Greetings, Stephan402Views0likes0CommentsHow to retrieve JMS Message id ?
Hi All, We are looking to take JMS message id using groovy script. Below script gives only the message content. -context.expand( '${JMS Send Request#RawRequest}' ). But as per the ready api raw request screen(attached), we are able to see lot of other JMS related values. Please help!575Views0likes0CommentsJMS Test Step usage for Multiple users
Hi, We have just recently migrated from RaedyAPI v2.6.0 to v3.9.1. the biggest difference was HermesJMS now not being available on new version. So that means we have to change our configurations for JMS. We use IBM WebSphereMQ. So I ha d to use the desired jar files, create Connection Factory in WMQ and then able to execute the JMS step. Question is, if multiple users want to execute, do we have to install IBM WMQ and then create Connection factories on those machines as well to run these JMS steps or is there any easier way to handle this scenario as we have around 20 users? So again in future if any changes desired like MQ changes, then do we have to ask all 20 users to modify their respective MQ settings/Connection Factories? Reards, Arup552Views0likes0CommentsHow to clear queue messages from IBM MQ Client in higher ReadyAPI (3.1 and above) versions?
Hello, I'm trying to create a script to clear all messages from one or more queues. I have some queues within IBM MQ explorer that needs to be cleared using a script so that I can use it run inside a test project. I have created a Groovy script that works for 3.0.0 version and below following this page:https://community.smartbear.com/t5/ReadyAPI-Questions/Resolved-Groovy-Script-Clear-JMS-Messages-from-Queue/td-p/31919 But this supports only HermesJMS. Now for higher versions I have usedJMS Manual Configuration in ReadyAPI Here is my Queue config: How can I create a Groovy script or any step to clear messages from queue? Thanks.Solved2KViews0likes4CommentsJMS Endpoint is not editable
Hi, We recently have migrated from v2.6.0 to v3.9.1 which means HermesJMS can't be used anymore in our existing scripts. So, I am trying to create new manual JMS steps. I am creating using a REST resource, say using localhost, and then MQ details and creating a test step. However the test step which gets created always have no endpoint URL and it's non-editable. I am unsure how to fix this. Please help. PFA screenshot. Regards, ArupSolved1KViews0likes1Comment