text stringlengths 430 21.5k |
|---|
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: How do I distinguishMQMT_SYSTEM_FIRSTvsMQMT_REQUEST? [/INST] Assistant: MQMT_SYSTEM_FIRSTis a range identifier and will never be used in a real message. If you see the value 1 in an MQMD, italwaysmeansMQMT_REQUEST.So in effect you haveMQMT_SYSTEM_FIRST -> MQMT_SYSTEM_LASTas a reserved range for systemMQMT*values andMQMT_APPL_FIRST -> MQMT_APPL_LASTfor application use. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: IBM's advice doesn't work for me:http://www-01.ibm.com/support/docview.wss?uid=swg21454454 [/INST] Assistant: Open file ...\MQExplorer\eclipse\configuration\config.ini and add this lines:org.osgi.framework.language=en
osgi.nl=en_UScredits go to:http://blog.ondruska.com/2012/12/switch-eclipse-language.html </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: What is RFHUTIL. What are the uses of it? [/INST] Assistant: From theSupportPac IH03page:It allows test messages to be captured
and stored in files, and then used to
drive WBI Message Broker Version 7
applications. Output messages can also
be read and displayed in a variety of
formats. The formats include two types
of XML as well as matched against a
COBOL copybook. The data can be in
EBCDIC or ASCII. An RFH2 header can be
added to the message before the
message is sent.WebSphere MQ messages can contain a Rules and Formatting Header or RFH for short. The RFHUtil (and it's client-based companion RFHUtilc) allow for a wide variety of message manipulation with and without these headers. Because the headers are used extensively by WebSphere Message Broker and for v6 Pub/Sub the utility provides a convenient way to perform ad-hoc testing of message flows, publications and subscriptions. It also allows the loading and unloading of queues to files or files to queues, for example to perform regression testing against a known workload. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can we rename a Queue without deleting and recreating it? [/INST] Assistant: It is not possible to rename a WebSphere MQ queue. There are two options:You can define an alias over an existing queue where the alias has the desired name.You can define a new queue with the desired name and move any messages into it from the original queue.In the event that you take the second option, there are a number of tools to move the messages. Two of the more popular tools are mqmon fromSupportPac MO71and the Q program fromSupportPac MA01. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: These packages seem to have similar functionality. What's the difference? [/INST] Assistant: IBMMQDotnetClientis "IBM MQ classes for .NET Standard" also known as known as Base .NET Classes.Where asIBMXMSDotnetClient: called XMS that has the same set of interfaces as the Java™ Message Service (JMS) API.Renders a JMS-like API and Implements JMS 1.1 Specification. Most of the features available in IBMMQDotnetClient are available in XMS as well and on top of these features,there are additional features like "Asynchronous message consumer", Message selectors, Poison message handling etc.Basically the difference is if you want to use JMS-like API's and looking for features like Asynchronous message consumer or message selectors,then you can use XMS. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is it possible to invoke a antscript in postdst and presrc call in MQFTE?? [/INST] Assistant: Here's an example:<request version="4.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<managedTransfer>
<originator>
<hostName>$hostName</hostName>
<userID>$userID</userID>
</originator>
<sourceAgent QMgr="$sourceQM" agent="$sourceAgent"/>
<destinationAgent QMgr="$destQM" agent="$destAgent"/>
<transferSet priority="5">
<metaDataSet>
<metaData key="some_key">Some value</metaData>
</metaDataSet>
<postSourceCall>
<command name="example.xml" retryCount="0" retryWait="0" successRC="0" type="antscript">
<property name="ant.FILEPATH" value="$filepath"/>
<property name="antSrcAgent" value="$sourceAgent"/>
</command>
</postSourceCall>
<item checksumMethod="MD5" mode="binary">
<source disposition="delete" recursive="false">
<file>$filepath</file>
</source>
<destination exist="error" type="directory">
<file>$destFile</file>
</destination>
</item>
</transferSet>
<job>
<name>Example FTE job</name>
</job>
</managedTransfer>
</request>The properties passed to the ant script are arbitrary names. You could pass any properties in that way. I used postSourceCall but you can change that to postDest, preSource, etc. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Using Spring's JmsTemplatemessage.setStringProperty("param", "value")one can set the value inMQRFH2.usr. How can we set values inMQRFH2.other? [/INST] Assistant: I'm not a JMS guy but I do know how to do it with regular MQ/Java API.You use the MQRFH2 class and use the setFieldValue method:rfh2.setFieldValue("other", "SomeText", "TEST");I cannot find where I posted my program MQTest71.java on StackOverflow but you can find a write up on my bloghere.Update 2020/01/14:This afternoon I played around with MQ/Java programs that created various folders in an MQRFH2 message and then ran MQ/JMS programs to retrieve the messages. MQ/JMS programs simply ignore all folders outside of 'mcd', 'jms' and 'usr'.Therefore, you need to put the name/value properties in the 'usr' folder if you want MQ/JMS applications to access the information. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can I use the same keystore and cert for AMS that my app already uses? [/INST] Assistant: You can, but also have the option to use separate certs and/or keystores if you want. The keystore.conf file contains the details of the keystore and the label of the certificate that AMS will use for encrypting and signing messages. This can point to the same certificate as used by the application for making connections to WebSphere MQ, the same certificate the app server uses for SSL connections or an entirely separate keystore dedicated to AMS.The key (excuse the pun) is to manage the keystores based on the security model required. The app server's keystore probably has a number of external-facing certificates in its trust store. For example, it might trust several commercial certificate authorities. The AMS keystore must contain the certificates of anyone who will be signing or encrypting messages that your app will consume or receiving encrypted messages from your app. Since these are usually internal-facing it might be worthwhile to use a separate keystore for AMS than is used for external-facing entities. Otherwise the two different security models (internal-facing and external-facing) end up trusting each others participants.This is just one example and in general the idea is to construct the keystores based on the specific security model required and using a least-trust principle. You have to balance the cost of maintaining separate keystores against the extra security of maintaining individual ones. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Anyone knows what JAR?? Im going to implement a connection pooling for MQ series connection. [/INST] Assistant: The jar is com.ibm.mq.jarYou can download it fromhttp://www.java2s.com/Code/JarDownload/com.ibm/com.ibm.mq.jar.zipOr if using maven<dependency>
<groupId>com.ibm</groupId>
<artifactId>com.ibm.mq</artifactId>
<version>5.3.07</version>
</dependency> </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: In logging how couldlog pagesare useful and used for log writings ?appreciate any one help..! [/INST] Assistant: Log pages are an internal feature of WMQ. They are used by the queue manager to record recoverable data that is needed a queue manager restart to possibly restore objects and messages that were modified or processed since the last checkpoint.They are not directly usable by the applications or users, for the most part can be ignored.More information is available on the WMQ7 InfoCenterhttp://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: alter listener(QM) TRPTYPE(TCP) PORT(1718)This is the command am using. Please suggest if it is correct. [/INST] Assistant: Yes, I would expect that command to work as long as you have a listener named 'QM' which you want to alter to listen on TCP port 1718.DISPLAY LISTENER(*) ALLWill give you all the information on all the listener objects you currently have defined. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Simple question onQ Program SupportPac. Do we install this on the MQ Server or MQ Client? [/INST] Assistant: Take your pick. Q can connect using bindings or client mode so put it wherever you need it. If you have a client app that you are trying to debug, Q can use the same channel and CONNAME. (If the channel uses SSL and your app is Java, you might need to convert the keystore to a kdb format first.) And of course, Q on the same server as the queue manager can access MQ in bindings mode, provided you have sufficient authority to do so. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I'm wondering if an external app could 'talk' to Bluemix app using IBM MQ?Thanks in advance! [/INST] Assistant: A slight clarification on MQ Light in the previous answer.An MQ Light application in Bluemix can communicate with IBM MQ in your datacenter (via the SecureGateway), but if you are running an instance of the MQ LIght service in Bluemix, the service itself cannot be connected to IBM MQ. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: How do i convert/lookup a reason code of IBM Websphere MQseries to its explanation (for logging etc)? [/INST] Assistant: Please seeSupportPac MA0Kwhich has C and Visual Basic code to perform this task. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Are Websphere MQ messages stored in a database or filesystem?
Can I configure it to use MySQL? [/INST] Assistant: WebSphere MQ persistence is always a local filesystem for distributed platforms. On the mainframe there is the possibility of using a DB2 database in a Sysplex with a Coupling Facility but for everything else it is a filesystem.Also, there is no local persistence for WebSphere MQ clients. Only the queue manager will persist messages.In the WebSphere family, WebSphere Application Server's System Integration Bus has the ability to use a database for it's message persistence. SIBus is a JMS implementation provided with WAS for exchanging messages in the WAS cell and between WAS instances. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I use the command dis ql(WY) and see CURDEPTH is full, what should I do about it [/INST] Assistant: Queue is full because there is no application consuming messages from it. You canIdentify the application putting messages into this queue and determine if the messages were indented for this queue.If the messages were meant for this queue, was there any application configured to consume messages from this queue? If there was one, is the application running, if it is running why is it not consuming? if not why it is not running, start it.Clear the queue if you think messages are not important. Disable message put to this queue.Edit:Your screenshot shows IPPROCS(10) and OPPROCS(1) which means the queue is opened by 10 applications for GETting and 1 application for PUTting messages. But still the queue is full. It may be that application is not consuming messages but application is not reporting errors properly.You can look at last message get date and time statistics on the queue using the DISPLAY QSTATUS command. Lookherefor details. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can you please let me know when to use .bindings file and when to use jndi properties file? [/INST] Assistant: The .bindings file is created by the JNDI FileSystem context (com.sun.jndi.fscontext.RefFSContextFactory) when data is stored by the MQ JMSAdmin tool or other JNDI tool. It contains a representation of the JNDI data, for example your Connection Factory settings such as hostname, port, etc.In the case of MQ, the .bindings file is not used directly by MQ code, it is used by the JNDI code to create the MQ JMS objects which are then returned to the application.The JNDI properties file (or the JMSAdmin.config file if you're using JMSAdmin) stores the connection settings to allow the JNDI code to connect to the JNDI repository (for example, the FileSystem context, LDAP server etc.). It does not contain data such as Connection Factory settings. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: İ tried the following command but it did not work.alter authinfo(system.default.authinfo.idpwos) authtype(idpwos) chckclnt(required)Anyone worked on this subject before? [/INST] Assistant: When you make changes to the connauth authinfo objects you need to runREFRESH SECURITY TYPE(CONNAUTH)for the changes to take effect. A restart of the queue manager would also have the same effect.This is documented in theKnowledge Center - Turning on connection authentication on a queue managerTo check local connections, use the AUTHINFO attribute CHCKLOCL (check local connections). To check client connections, use the AUTHINFO attribute CHCKCLNT (check client connections).The configuration must be refreshed before the queue manager recognizes the changes.ALTER QMGR CONNAUTH(USE.PW)
DEFINE AUTHINFO(USE.PW) +
AUTHTYPE(IDPWOS) +
FAILDLAY(10) +
CHCKLOCL(OPTIONAL) +
CHCKCLNT(REQUIRED)
REFRESH SECURITY TYPE(CONNAUTH)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^I would also suggest that you set the AUTHINFO object parameter ADOPTCTX(YES) as well as set ChlauthEarlyAdopt=E in your qm.ini channels stanza. See @T.Rob's excellent presentation"CONNAUTH Doesn't work like you think it does"for more details on why. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can somebody help to understand the basic of these 3 queues with example.when do we use all 3 [/INST] Assistant: Perhaps a more simple explanation: Think of a local queue as a queue which exists on the queue manager it is defined.. you can PUT and GET messages off a local queue. A remote queue is like a pointer to a queue on another queue manager which is usually on different host. Therefore messages can be PUT to it (and they will usually arrive on a local queue at that remote host) but you cannot GET messages from a remote queue. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: In Websphere MQ series , command level for a queue manager is 701. What does it actually specify ? [/INST] Assistant: WebSphere products use a "[version].[release].[modification].[Fix Pack]" naming convention. For example 7.0.1.6 is the current release specified down to the Fix Pack level.Fix packs are limited to bug fixes and very limited non-disruptive functionality enhancements.Modifications can include functionality enhancements but no API changes. For example the Multi-Instance Queue Manager was introduced in 7.0.1.Releases may introduce significant new function and limited API changes but are highly forward and backward compatible withing the same version.Versions encapsulate a core set of functionality. Changes at this level may sacrifice some backward compatibility in trade for significant new functionality. For example, WMQ Pub/Sub was moved from Message Broker to base MQ in the V7 release.Since administrative functionality does not change in Fix Packs but may change at the Modification level, compatibility with administrative tools is based on the queue manager's Command Level.There is an old but stilluseful TechNotewhich described this when the numbering conventions were adopted for WMQ. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: How can I check from IBM MQ UI that to a specific queue if there is any consumer present [/INST] Assistant: From WMQ Explorer or any of the desktop client tools, look for an open input handle on the queue. In WMQ Explorer's default view the first two columns are the queue name and type. After that there are several columns with numbers. The first is queue depth. Next is the number of open input handles, then the number of open output handles. If you right-click on the queue name there is an option for Status. Selecting that will show you lots of details about the handles such as who has them open, what open options were used, the PID holding the handle, etc.If you wanted to do this at the command line you would use runmqsc and the display qstatus command. For example:echo 'dis qs(SYSTEM.ADMIN.COMMAND.QUEUE) type(handle) all' | runmqsc TESTQMGR
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
Starting MQSC for queue manager TESTQM.
AMQ8450: Display queue status details.
QUEUE(SYSTEM.ADMIN.COMMAND.QUEUE) TYPE(HANDLE)
APPLDESC( )
APPLTAG(er V7\java\jre\bin\javaw.exe)
APPLTYPE(USER) BROWSE(NO)
CHANNEL( ) CONNAME( )
ASTATE(NONE) HSTATE(INACTIVE)
INPUT(NO) INQUIRE(NO)
OUTPUT(YES) PID(6236)
QMURID(0.0) SET(NO)
TID(*)
URID(XA_FORMATID[00000000] XA_GTRID[] XA_BQUAL[])
URTYPE(QMGR) USERID(T.Rob@IBM-02BE93E63E4)
AMQ8450: Display queue status details.
QUEUE(SYSTEM.ADMIN.COMMAND.QUEUE) TYPE(HANDLE)
APPLDESC( )
APPLTAG(er V7\java\jre\bin\javaw.exe)
APPLTYPE(USER) BROWSE(NO)
CHANNEL( ) CONNAME( )
ASTATE(NONE) HSTATE(INACTIVE)
INPUT(NO) INQUIRE(YES)
OUTPUT(NO) PID(6236)
QMURID(0.0) SET(NO)
TID(*)
URID(XA_FORMATID[00000000] XA_GTRID[] XA_BQUAL[])
URTYPE(QMGR) USERID(T.Rob@IBM-02BE93E63E4)
AMQ8450: Display queue status details.
QUEUE(SYSTEM.ADMIN.COMMAND.QUEUE) TYPE(HANDLE)
APPLDESC(WebSphere MQ Command Server)
APPLTAG(ebSphere MQ\bin\amqpcsea.exe)
APPLTYPE(SYSTEM) BROWSE(NO)
CHANNEL( ) CONNAME( )
ASTATE(NONE) HSTATE(ACTIVE)
INPUT(EXCL) INQUIRE(YES)
OUTPUT(NO) PID(5556)
QMURID(0.0) SET(NO)
TID(1)
URID(XA_FORMATID[00000000] XA_GTRID[] XA_BQUAL[])
URTYPE(QMGR)
1 MQSC commands read.
One command has a syntax error.
All valid MQSC commands were processed.You can also do this programmatically from Java or C using PCF commands but since you specified "from the UI" I'm guessing this is not what you need.The DIS QS command is described more fully here:http://bit.ly/WMQdisQSIf you need the WMQ Explorer, that is here:http://bit.ly/SupportPacMQC7 </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: While I was working on the Message-Queue, I encounter the wordstatic queueanddynamic queue.Can any one tell me the difference? [/INST] Assistant: A static queue is one that is defined ahead of time and the queue definition persists in the environment.A dynamic queue is created on demand. Of these there are two varieties in IBM MQ. A temporary dynamic queue is created on demand and is deleted when the program that created it disconnects. A permanent dynamic queue is one that is created on demand but persists in the environment after the program which created it disconnects.For example, a temporary dynamic queue is useful for catching replies in a request/reply scenario. The queue exists only so long as the application making requests is connected. When the program disconnects, the queue goes away so there is no need for the administrator to manually clean it up.A permanent dynamic queue is useful for things like durable subscriptions. When a subscription is created, the queue needs to be unique and the overhead of having to define it ahead of time is excessive. So we let the application create it dynamically but also let the queue hang around when the program is offline in order to collect publications. Normally, the application deletes the queue when it is no longer needed so that the administrator doesn't need to. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: WebSphere Application Server 8.0 is available in a free developer edition, is there also one available for WebSphere MQ? [/INST] Assistant: There is a developer edition of Websphere MQ 8 and 9 for Windows and Linux.You can grab it here:https://developer.ibm.com/messaging/mq-downloads/ </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I'm write a new program, and want to connect to queue manager. how do I configure in python program? [/INST] Assistant: PyMQIallows one to connect to queue managers to issue MQAI and PCF requests.Below code establishes a connection, puts a message on a queue and disconnects.import pymqi
queue_manager = 'QM01'
channel = 'SVRCONN.1'
host = 'host.domain.com'
port = '1434'
queue_name = 'TEST.1'
message = 'Hello from Python!'
conn_info = '%s(%s)' % (host, port)
qmgr = pymqi.connect(queue_manager, channel, conn_info)
queue = pymqi.Queue(qmgr, queue_name)
queue.put(message)
queue.close()
qmgr.disconnect()More details:https://github.com/dsuch/pymqi </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I'm trying to understand how common is the usage of MQ Topics in the industry.
And MQ with SSL?Thanks,
Guy [/INST] Assistant: Pub/SubPrior to v7 of WMQ, Pub/Sub was available either as a separate component of WMQ or as part of the functionality of WebSphere Message Broker. Now in v7 pub/sub is integral to WMQ and allows topic-level security. There is a certain amount of pub/sub adoption that is occurring just because it is now baked into WMQ as native functionality.Another factor influencing uptake on WMQ pub/sub is that more people are being exposed to it through WMQ File Transfer Edition. WMQ FTE makes status of file transfers available as publications and many people with this product are writing applications that monitor these topics to provide a variety of custom functionality. Once they start using pub/sub, many of these shops begin to see other uses for it.Pub/Sub also solves some common problems with messaging such as an application that currently writes to a queue and a new requirement comes up to get a copy of that message to another consumer. Prior to v7, switching an app from writing to a queue to writing to a topic was somewhat invasive and required configuration changes for JMS apps or code changes for other types of code. The simplest way to address the problem was to intercept the message with an application or exit that wrote copies to two or more queues. As of v7 an application that was written for queues can be provided with an alias over a topic. The producer still thinks it is writing to a queue but WMQ is publishing the messages to a topic instead. Consumers can then either subscribe directly or, in the case of legacy code that requires a queue, an administrative subscription can cause the messages on the topic to be delivered to a queue. I am seeing a lot of uptake on pub/sub to address these kinds of requirement.There are also the cases where pub/sub is the appropriate solution and it is used for that reason alone. In the past the requirement for separate components, administrative skill or a WMB license were barriers to adoption that caused a certain portion of pub/sub apps to be reworked as point-to-point. With pub/sub built into WMQ, these barriers are eliminated or at least significantly reduced which leads to more uptake simply because it is the right architecture for the problem at hand.In general, I would say that WMQ pub/sub has gone mainstream with v7. Since v6 end-of-life has been announced for September 2011, there will be a mass migration to v7 this year and subsequently even more adoption of pub/sub as a result.SSL/TLSAs for SSL, WMQ security is approaching mainstream. I wouldn't say SSL is the norm - just yet - but over the last two or three years it is in enough demand that myWMQ Hands-On Security Labsessions at the IMPACT and European WebSphere Technical conferences have had overflow attendance. Irecently wrote...The term "trusted internal network"
was coined to differentiate that part
of the network that was internal from
destinations outside the firewall. But
the term "trusted" as used in this
context is relative. It was not
supposed to indicate that the internal
network was trusted implicitly, only
that it was more trusted than things
outside the firewall. Unfortunately,
the term is sometimes interpreted
quite literally. I have had clients
quite earnestly tell me by definition
we trust everything on the "trusted
internal network", that's why we call
it that. Of course, this overstates
the case, because even the staunchest
believers in trusting the internal
network still enforce password-based
login to servers, databases, and
applications. So the internal network
is trusted, but only up to a point,
and even on the internal network
authentication and authorization are
essential.Although SSL (TLS, actually) channels encrypt, they also authenticate. As more people realize that they need to authenticate WMQ connections on the "trusted" internal network, SSL has been a common method of achieving that. Of course, there is also a growing requirement for privacy (encryption) and integrity services on the WMQ channels for both internal and external connections and this is driving adoption of WMQ SSL channels as well.Now that SSL is more common, there are a number of secondary challenges that pop up when people do not fully understand WMQ security. The fact that these are now common topics on theWMQ listserveand onMQSeries.netattests to the level of SSL adoption. Some of these secondary issues are the inclusion of unused Certificate Authority root certs in the QMgr's keystore, or lack of QMgr channel settings like SSLPEER (which filters connections by distinguished name) or MCAUSER (which maps authorizations to a specific user account). Frequently people enable SSL but overlook one or more of these other settings and do not achieve the level of security they had intended. Since you must have enabled SSL for these things to present an issue, it is as a friend of mine says "a luxury problem." It is much better to be challenged by SSLPEER settings than not to have applied SSL at all.In summary...So I suppose the short answer to both of these questions is that use of pub/sub and SSL in WMQ is quite common. Both are on a sharp upward trend right now and if I were writing new applications I would definitely use SSL and would not hesitate to use WMQ pub/sub where called for. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: How the Cluster Sender and Receiver channels usage differs in Full Repository & Partial Repository QManagers in IBM websphere MQ? [/INST] Assistant: On the Full Repository:
- the queue manager's cluster receiver channel must point to itself, this is how other queue managers in the cluster will know how to reach the FR.- the cluster sender channel must point to another Full Repository.On the Partial Repository:
- the queue manager's cluster receiver channel must also point to itself, this is how other queue managers in the cluster will know how to reach it.
- the cluster sender channel must point to one of the Full Repository queue managers; this is the FR the PR will rely on for cluster object resolution.Notes:
1. Your cluster should have 2 Full Repositories; each FR sender channel should point to the other FR.
2. Your Partial Repositories should be configured to point to one of these 2 Full Repositories; a good habit is to equally assign them between the FRs. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can someone please advise how I can resolve this issue. I am seeing this error on my WAS application SystemOut.logs. [/INST] Assistant: Section 5.5.1 of the EJB 3.2 Specification indicates that Timer service and Timer methods are not accessible from the constructor, during injection, or post construct.ejbCreatewould be the post construct method for the bean, so calling TimerService.getTimers() is not permitted.Basically, you'll need to move that call to a message listener method. That doesn't work so well if you really need to do that as part of application start.Would it work to use a non-persistent automatic timer, such that it would be created automatically for you whenever the application starts? (i.e@Schedule) </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: How to resolve error-'IBM WebSphere Explorer is already running(AMQ4574)'?
I am getting this error while accessing IBM explorer through ssh. [/INST] Assistant: The issue is you cant have more than one explorer running under the same userid anymore...Read the following for the explanation and potential workaroundhttp://www-01.ibm.com/support/docview.wss?uid=swg21672390 </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: While clearing the queue in WebSphere MQ, whats the difference between using the clear command and mqget API call ? [/INST] Assistant: The CLEAR command issues a single command which clears the queue, while Clearing using the MQGET command reads the queue until it's empty.Practically, one can Clear using MQGET without having to acquire an exclusive lock on the queue. On the other hand, if the queue is in use somewhere, the CLEAR command will fail.The IBM documentation lists the difference as follows:If you use the CLEAR command, all of the messages are cleared from the queue. However, if the queue is already opened exclusively by another application or if the queue contains uncommitted messages, the command fails immediately and none of the messages are cleared.If you use the MQGET API call, the messages are got from the queue until no more messages are available. However, MQGET does not recognize uncommitted messages, which means that there could still be uncommitted messages on the queue. Also, the command might fail if the queue is already exclusively opened by another application. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can someone please help me with a command to find the list of queues a particular user\group has in MQ? [/INST] Assistant: The dspmqaut command is used to display authorizations but you can't display a user group and find all the queues that way.
Try using the dmpmqaut command which will dump all authorities to a file and you can then see the queues and which groups have access.https://www.ibm.com/support/knowledgecenter/SSFKSJ_7.1.0/com.ibm.mq.doc/fa15670_.htmUsing dmpmqaut with the -g GroupName parameter should give you the information you need. For example: dmpmqaut -m QMGRNAME -g groupname </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: When I callcom.ibm.mq.MQQueue#put(MQMessage,MQPutMessageOptions)it may hang. How can I set up a timeout for this method?
The same question is forcom.ibm.mq.MQQueue#get(MQMessage,MQGetMessageOptions) [/INST] Assistant: There is MQGMO_WAIT option and a WaitInterval that can be set to make the Get call to wait for a certain amount of time. For example, the following snippet makes the Get call to wait for 3 seconds.MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.Options = MQConstants.MQGMO_WAIT;
gmo.WaitInterval = 3000;
mqQueue.Get(mqMessage, gmo);There is no option to set a timeout for the Put call though. The Put call returns with an error if there is any issue.UPDATE:When a Put call is invoked, connection to queue manager is already established. If there are any issues with the connection, the Put call gets returns soon as the TCP stack notifies of such issue. As such TCP level issues affect the all applications running on the system, in my opinion, tuning must be done at the system level and not at a per application level. Also I don't think it's possible to set a timeout for a socket.write call.MQ does provide a way set a timeout for establishing connection to queue manager though. There is connection_timeout parameter in mqclient.ini you can set a timeout. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: What are the conditions in whichJMSXDeliveryCountis increased in WebSphere MQ. I need all the scenarios under which it can happen. [/INST] Assistant: The JMSXDeliveryCount is incremented every time a message is re-delivered to a consumer. A message could be redelivered:1) A consumer using the Client Acknowledge mode received the message earlier did not call acknowledge() on that message.2) A consumer received the message in a transaction, did not call a commit or called a rollback.EDIT:If the JMS Client is unable to process the message due to some bad JMS headers, then such a message(known as poison message) will not be delivered to application and JMS client will internally rollback that message. In this case also JMSXDeliveryCount is incremented.In IBM MQ, have you set Backout Queue and Backout Threshold properties for the queue from which messages are being retrieved? JMS Client will put such bad messages to the backout queue once the Backout Threshold is reached. This is to avoid same message is retrieved by JMS client again and again thus blocking other good messages from being delivered to application. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: How can I use the IBM MQ Java APIs to query for the maximum queue depth attribute of a queue? [/INST] Assistant: You can use MQ PCF to retrieve attribute values of a queue.i.e.request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_Q);
/**
* You can explicitly set a queue name like "TEST.Q1" or
* use a wild card like "TEST.*"
*/
request.addParameter(CMQC.MQCA_Q_NAME, "*");
// Add parameter to request only local queues
request.addParameter(CMQC.MQIA_Q_TYPE, CMQC.MQQT_LOCAL);
// Add parameter to request all of the attributes of the queue
request.addParameter(CMQCFC.MQIACF_Q_ATTRS, new int [] { CMQC.MQCA_Q_NAME,
CMQC.MQIA_CURRENT_Q_DEPTH,
CMQC.MQIA_MAX_Q_DEPTH
});
responses = agent.send(request);
for (int i = 0; i < responses.length; i++)
{
if ( ((responses[i]).getCompCode() == CMQC.MQCC_OK) &&
((responses[i]).getParameterValue(CMQC.MQCA_Q_NAME) != null) )
{
String name = responses[i].getStringParameterValue(CMQC.MQCA_Q_NAME);
if (name != null)
name = name.trim();
int depth = responses[i].getIntParameterValue(CMQC.MQIA_CURRENT_Q_DEPTH);
int maxDepth = responses[i].getIntParameterValue(CMQC.MQIA_MAX_Q_DEPTH);
}
}I thought I posted MQListQueueAttributes01.java to StackOverflow but I cannot find it. It is on myblog.It is a complete and fully functioning Java/MQ/PCF program to retrieve all attributes values of a queue. If you click on "PCF" category on my blog, you will find a variety of complete sample Java/MQ/PCF programs. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: What is the impact on existing code to migrate from WebSphere MQ V6 to V7?Can we make simply the change? [/INST] Assistant: Like all good questions, the answer here is "it depends."First of all, don't go to v7.0, go to V7.1 at least, better yet to V7.5.Using client or bindings mode connections? You can upgrade the QMgr without touching a client-based app in most cases. Any version of WMQ client can talk to any version of WMQ server, however its best not to leave apps on an unsupported version of WMQ client. Of course, the app running on the old client won't get the new function such as automatic reconnect or performance improvements, even though the QMgr is at V7.5.Using SSL? The SSLPEER element order changed and the commands to manage certificates changed. Good news, cert management is now performed withrunmq*kmcommands living in the{mq install}/bindirectory so you don't need to hunt down the GSKit directory and figure out whether to usegsk6*,gsk7*orgsk8*commands.If you go from 32 to 64 bit, you may need to recompile programs or exits.Correct settings forPATH,CLASSPATHandLIBPATHchange across versions.There's much more and it's well covered in the Infoceenter. Each Infocenter has a section on migration. Within that section, there's subsections by version and within those there are subsections by platform. Pick the target version of WMQ (that's V7.5, right? Say yes!) and and drill down. Start here:Migration from V6.0 to V7.5Migration from V6.0 to V7.1Migration from V6.0 to V7.0 </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: what kind of information does it gives after enabling activity trace on MQ? Does it have any impact on the performance? [/INST] Assistant: ChapterApplication activity traceexplains it like this:Application activity trace produces detailed information about the behavior of applications connected to a queue manager. It traces the behavior of an application and provides a detailed view of the parameters used by an application as it interacts with IBM® MQ resources. It also shows the sequence of MQI calls issued by an application.ChapterTuning the performance impact of application activity traceexplains it like this:Enabling application activity trace can incur a performance penalty. This can be reduced by only tracing the applications that you need, by increasing the number of applications draining the queue, and by tuning ActivityInterval, ActivityCount and TraceLevel in mqat.ini.I really recommend to consult the Knowledge Center to read about the features of IBM MQ. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: What is a channel exit in IBM MQ? On my research I found three types of channel exits.WMQSendExitWMQReceiveExitWMQSecurityExitCan someone explain this? [/INST] Assistant: An "exit" or "exit program" in IBM-speak is the same thing that non-IBM software might call a "callback" or a "listener". It is a way to hook in your custom code into an event generated by the software.https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_7.1.0/com.ibm.mq.javadoc.doc/WMQJavaClasses/com/ibm/mq/exits/WMQSendExit.htmlThe send exit interface allows you to examine, and possibly alter, the
data sent to the queue manager by the WebSphere MQ Client for Java.
Note: This interface does not apply when connecting directly to
WebSphere MQ in bindings mode.To provide your own send exit, define a class that implements this
interface. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Please tell me how do i read the MQ activity logs ? Which inside the QManger folder.Thats format is human unreadable [/INST] Assistant: Please confirm which directory and the filename of the log you are trying to read. Active log files such as S0000001.LOG are not human readable. They are used internally by the queue manager.The logs most often used to administer a queue manager are the error logs such as AMQERR01.LOG which are found in the subdirectory under qmgrs/QMGRNAME/errors directory.If you truly need to see some info stored in the active log files, you can use the dmpmqlog command to dump a formatted version. Refer to the knowledge center:http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.ref.adm.doc/q083170_.htm </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: My script is,#!/bin/bash
su mqm
echo "DISPLAY QLOCAL (<QUEUENAME>) CURDEPTH" | runmqsc QUEUEMANAGERsame command works in putty but not through script. [/INST] Assistant: putty is interactive command line. Try the below. bash variables can be used.#!/bin/bash
su - mqm -c "echo 'DISPLAY QLOCAL (<QUEUENAME>) CURDEPTH'|runmqsc QUEUEMANAGER" </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: If the client connected to the WebSphere MQ server is using a domain account, saybox1\user1, then is the client's cert label:ibmwebspheremquser1oribmwebspheremqbox1\user1? [/INST] Assistant: No. The user ID specified would beuser1giving a label ofibmwebspheremquser1in this case. However, that depends on the version of WMQ used and in some cases the behavior differs and can be changed as describedhere. Note also that the answer applies to clients other than Java/JMS clients such as the C client and the .Net client. The behavior of the Java and JMS clients uses Java standard cert resolution.So if it's not working based on this, it would be necessary to update your question with details of the WMQ client type and version. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: If your architecture relays on IBM MQ as a messaging system, can you use MassTransit to publish messages or handle sagas? [/INST] Assistant: No, MassTransit does not include support for IBM MQ. Just Azure Service Bus or RabbitMQ. However, MassTransit is open source, and you are welcome to add the support yourself. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I want to write ascriptfile that will append the arrived MQ messages in the Queue Manager in a log file.Please help [/INST] Assistant: If you want all messages arriving on a channel, you can use the LogIP exit from the BlockIP2 page ofmrmq.dk. An API exit such asSupportPac MA0Wcan log all messages put. An API exit can catche messages from local applications as well as those arriving over channels.If you want to script this, you can use a program such as Q (fromSupportPac MA01) to remove the messages from the queue as they arrive and append them to a file.For example,#!/usr/bin/ksh
q -IMYQMGR/MY.QUEUE >> logfile.txtTypically, the script is triggered and configured to append new messages to the file. The problem with this is that it destructively removes the messages. If there is an application of record needing to use those messages it isn't a great solution. You could browse the queue but there's no guarantee of getting the messages before the app of record gets them - and the browse would periodically restart at the head of the queue so you might log the same message twice.Another scripting option is thePerl MQSeriesmodule. This module exposes all the options of the WMQ API as well as object-oriented methods. If you need something quick and dirty, the Q program is delivered as an executable. If you want something powerful that exposes all the APIs to your script (and don't mind compiling it) the Perl MQSeries module is a great way to go. Here's a code snippet, taken from the module's samples, showing how to GET messages:while (1) {
$sync_flag = 0;
undef $outcome;
my $request_msg = MQSeries::Message::->new();
my $status = $request_queue->
Get('Message' => $request_msg,
'GetMsgOpts' =>
{
'WaitInterval' => 5000, # 5 seconds
'Options' => (MQSeries::MQGMO_WAIT |
MQSeries::MQGMO_SYNCPOINT_IF_PERSISTENT |
MQSeries::MQGMO_CONVERT |
MQSeries::MQGMO_FAIL_IF_QUIESCING),
},
);
unless ($status) { # Error
my $rc = $request_queue->Reason();
die "Error on 'Get' from queue $qmgr_name/$request_qname:\n" .
"\tReason: $rc (" . MQReasonToText($rc). ")\n";
}
next if ($status < 0); # No message availableOne thing people have done in the past is to convert the queue to an alias over a topic. The app that uses the messages is redirected to GET from a new queue and an administrative subscription connects the topic to the new queue. At this point the real app gets all the messages and a new subscription can be made for logging messages going through the topic. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: How to clean jms queue from spring jms? Like "clean" command from MQ Explorer? Or I should recieve messages until them end? [/INST] Assistant: You cannot issue a clean command easily from JMS, since that requires the full MQI api. As you say, a good way is to read all messages one by one and discard them. You even get the choice to do this when clearing a queue in MQ explorer as well </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can any one suggest me code to write a message driven bean in C#.net to listen a MQ and process the same. [/INST] Assistant: XMS will be pretty similar to JMS. This is a "hello, world" example of a message listener in C# using XMS. Please include the reference IBM.XMS.dll from your websphere mq installation.On my windows installation, 32bit, it wasc:\Program Files\IBM\WebSphere MQ\bin\IBM.XMS.dllThis sample assumes a few hardcoded settings and have no error handling, but I think you get the idea.using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBM.XMS;
namespace XMSTest
{
class MyXmsApp
{
static void Main(string[] args)
{
MyXmsApp app = new MyXmsApp();
app.Setup();
Console.ReadLine();
}
public void Setup()
{
XMSFactoryFactory xff = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ);
IConnectionFactory cf = xff.CreateConnectionFactory();
cf.SetStringProperty(XMSC.WMQ_HOST_NAME, "localhost");
cf.SetIntProperty(XMSC.WMQ_PORT, 1414);
cf.SetStringProperty(XMSC.WMQ_CHANNEL, "CLIENT");
cf.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, XMSC.WMQ_CM_CLIENT);
cf.SetStringProperty(XMSC.WMQ_QUEUE_MANAGER, "QM_LOCAL");
cf.SetIntProperty(XMSC.WMQ_BROKER_VERSION, XMSC.WMQ_BROKER_V1);
IConnection conn = cf.CreateConnection();
Console.WriteLine("connection created");
ISession sess = conn.CreateSession(false, AcknowledgeMode.AutoAcknowledge);
IDestination dest = sess.CreateQueue("queue://q");
IMessageConsumer consumer = sess.CreateConsumer(dest);
MessageListener ml = new MessageListener(OnMessage);
consumer.MessageListener = ml;
conn.Start();
Console.WriteLine("Consumer started");
}
private void OnMessage(IMessage msg)
{
ITextMessage textMsg = (ITextMessage)msg;
Console.Write("Got a message: ");
Console.WriteLine(textMsg.Text);
}
}
} </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Many times I use 'mqsc' for create MQ queue manager from script files but I don't know how to generate script files.Thanks [/INST] Assistant: There is a SupportPac that installs a program called "saveqmgr.exe".Here's a link to the download of the Pac:http://shrinkster.com/17kcIBM seems to frequently reorganize its website, so the above link might not work if you check back here after a long while, but the SupportPac can be found easily by doing a search for "saveqmgr" on the Websphere MQ page. Hope this helps!IBM has this to say about the SupportPac:AbstractThis SupportPac (saveqmgr) saves all the objects, such
as queues, channels, etc, defined in a
either local or remote queue manager
to a file.Download DescriptionThis SupportPac interrogates the attributes
of all the objects defined to a queue
manager (either local or remote) and
saves them to a file.Possible UsesThe format of this file is suitable for use with runmqsc.
It is therefore possible to use this
SupportPac to save the definitions of
objects known to a queue manager and
subsequently recreate that queue
manager. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: How do I discover the Queue depth, and other metrics about queues, from IBM MQ using java with standard IBM MQ libraries? [/INST] Assistant: Try out the below sample code snippet for fetching the queue depth.String mqQMgr = "";
String mqQueue = "";
MQEnvironment.hostname = "";
MQEnvironment.port = "";
MQEnvironment.channel = "";
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES);
MQQueueManager qMgr = new MQQueueManager(mqQMgr);
MQQueue destQueue = qMgr.accessQueue(mqQueue, openOptions);
int depth = destQueue.getCurrentDepth();
destQueue.close();
qMgr.disconnect();A full code version (Change your parameters accordingly, like Bindings or client mode, options etc ) :import com.ibm.mq.*;
public class QueueManager {
private final String host;
private final int port;
private final String channel;
private final String manager;
private final MQQueueManager qmgr;
public QueueManager(String host, int port, String channel, String manager) throws MQException {
this.host = host;
this.port = port;
this.channel = channel;
this.manager = manager;
this.qmgr = createQueueManager();
}
private MQQueueManager createQueueManager() throws MQException {
MQEnvironment.channel = channel;
MQEnvironment.port = port;
MQEnvironment.hostname = host;
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES);
return new MQQueueManager(manager);
}
// This method will return the Queue Depth
public int queueDepth(String queueName) {
int depth = -1;
int openOptions = MQC.MQOO_INQUIRE + MQC.MQOO_FAIL_IF_QUIESCING;
MQQueue queue = null;
try {
queue = qmgr.accessQueue(queueName, openOptions);
depth = queue.getCurrentDepth();
}
catch (MQException e)
{
System.out.println("CC=" +e.completionCode + " : RC=" + e.reasonCode);
}
finally {
try {
if (queue != null)
queue.close();
}
catch (MQException e) {
System.out.println("CC=" +e.completionCode + " : RC=" + e.reasonCode);
}
}
return depth;
}
........ Other Methods .......
} </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I want to use JMS to connect to IBM MQ.
How do i specify the queuemanager, the channel and other properties ? [/INST] Assistant: Using JNDI for connectionFactory/destinations lookups, provide theInitialContextwith the following properties:java.naming.provider.url=<ip>:<port, default is 1414>/<channel name, default channel is SYSTEM.DEF.SVRCONN>
java.naming.factory.initial=com.ibm.mq.jms.context.WMQInitialContextFactory
java.naming.security.authentication=none
java.naming.security.credentials=
java.naming.security.principal=using WAS (Websphere Application Server) queues, the properties would be as follows:java.naming.provider.url=iiop://<ip>:<port, the defualt is 2809>
java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory
java.naming.security.authentication=none
java.naming.security.credentials=
java.naming.security.principal=The rest would be as follows:Properties config = new Properties();
config.load(new FileInputStream("connectionConfig.properties"));// this file would contain the properties above
InitialContext context = new InitialContext(config);
ConnectionFactory factory = (ConnectionFactory) context.lookup("ConnectionFactory");// connection factory name
Destination destination = (Destination) context.lookup("destination");// queue/topic name </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Has anyone tried to use IBM's .NET Websphere client libraries (XMS, etc) on Mono? If so, was it a good (seamless) experience? [/INST] Assistant: I just installed MonoDevelop IDE and prerequisites Gtk#2.12.x tool kit. Wrote a sample producer application in couple of minutes and it worked fine, successfully put a message onto a queue.MonoDevelop IDE worked much faster than VS2010 IDE. Experience was good.Mono is a software platform designed to allow developers to easily create cross platform applications. Are there any specifics that you are looking for? platform compatibility etc? </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: The documentation refers toconfiguring information with stanzas, but what is a stanza?Is it just a fancy name for a sub-section of configuration? [/INST] Assistant: You are correct, in this context a stanza refers to a sub-section of a IBM MQ configuration file.For example MQ clients come by default with a config file calledmqclient.ini, in this file you may see something like the following:TCP:
ClntSndBuffSize=0In this example thestanzaisTCPand it has a singleattributeClntSndBuffSizeset to the value0. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: The status of the MQFTE agent is in problem state. What is the reason for it and how can this be rectified ? [/INST] Assistant: The "problem" status is seen when the agent is publishing status information but the publications are out of date when received by the tool.Such a condition indicates the command handler thread is no longer
processing the agent command queue. This means either there is an
internal problem or more likely the agent has been flooded with transfer
requests that have a large source wildcard/recursive component. If this
is case then additional command handlers can be allocated using agent
propertiesmaxCommandHandlerThreads. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: With WebSphere MQ, where is a message addressed to a remote queue manager and PUT under syncpoint control stored until MQCMIT is issued? [/INST] Assistant: Messages that are addressed to a remote queue manager resolve to a transmit queue. Which transmit queue they resolve to depends on how the message will be sent to the remote QMgr. The message will resolve locally to either a user-defined transmit queue for a SDR or SVR channel, or it will resolve to SYSTEM.CLUSTER.TRANSMIT.QUEUE for a clustered channel.For any message that is put under syncpoint, the message is written to the transaction logs and, if the message is persistent, to the queue file. The queue depth increases to reflect that the message is in the queue but the message is not made available to other programs (such as the channel agent) until the COMMIT occurs.So if your message is going to a clustered queue manager and you PUT under syncpoint, you will see the depth of the cluster transmit queue increase. At that point the message is at least in the transaction log and possibly also written to the queue file. As soon as the message is committed, it becomes available to the channel. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I am in the process of exploring integration between SSIS and IBM MQ Series. Can some point me to some artical for integration. [/INST] Assistant: You might be able to use the "Message Queue Task" in conjunction with some other host bridge. Here's what I found while trolling the Internet:SSIS does not support loading into/from IBM MQ Series directly out of the box. ETI is the only known Microsoft partner or other 3rd party that can handle reading and writing to IBM MQ Series. This is handled via native sequential (MQSeries Queue Message)through their Built-to-Order connectivity process. SSIS customers also have the below ways of integrating their solutions with IBM MQ Series:1.Microsoft’s MSMQ-MQ Series Bridge that comes with Host Integration Server. MSMQ Task in Control Flow in SSIS can be used along with the bridge, which provides connectionless, store-and-forward messaging across messaging systems and computing platforms throughout the network.2.Using BizTalk’s MQ Series Adapter to push/pull messages into/out of SSIS Data Flow Engine via various exchange mechanisms : in-memory: script component, or staging : exchanging messages via the file system or directly writing it into SQL Server tables and use a data source component to read them.3.Using the extensibility story in SSIS: build an MQ Series source/destination custom/script component directly interfacing with MQ Series native libraries.You can find the original websitehere.Here's a description of the "Message Queue Task" that I came across in a PDF comparing how SSIS and Informatica handle messaging.SSIS includes a Microsoft Message Queue (MSMQ) connection manager that enables
connectivity to MSMQ message queues. Coupled with this is a bidirectional Message Queue
task that enables an SSIS package to push messages onto and pop messages off a message
queue. The messages can be in the form of text, files or the contents of SSIS variables.
SQL Server Service Broker which is included with SQL Server 2005 (and therefore with SSIS)
adds asynchronous messaging functionality to database applications. Service Broker queues
accessible from any application able to issue T-SQL code which includes SSIS. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Does WebSphere MQ v7 guarantee the recovery of in-flight messages after failover to a standby queue manager?If so, how is this accomplished?
Thanks [/INST] Assistant: There are two primary types of standby instances which support this level of recovery. The first is in a traditional hardware cluster such as Power HA, HACMP, Veritas, MSCS and so forth. The other is a Multi-Instance Queue Manager (MIQM). Both of these are capable of running the queue manager on more than one server with data and log files occupying shared disk which is accessible to all instances.In both cases, persistent messages which have been committed prior to the termination of the primary QMgr will be recovered. The secondary QMgr will assume possesion of the data and log files during the failover event. From the perspective of the failover node it is the same as if the QMgr was just starting up after a shutdown or crash, it just hapens to now be running on a different server.The main differences between a hardware cluster versus MIQM is that a hardware cluster fails over the IP address and possibly non-MQ processes as well. The MIQM recovers only the MQ processes and comes up on a different IP address. Applications with V7 clients can be configured with multi-instance connection details to allow for the multiple IP addresses.So for these solutions in which the state of the QMgr and any in-flight messages is stored on shared disk, bringing the QMgr up with the same shared disk but on a different node recovers the state of the QMgr, including any in-flight messages. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can you please tell how theenvironment variableofMQcan be checked in LINUX, AIX or SunOS.
For example how to check MQSNOAUT variable. Thank You. [/INST] Assistant: If theMQSNOAUTvariable is set toanyvalue when the queue manager is created, OAM is turned off. If theMQSNOAUTvariable is set any other time besides queue manager creation it has no effect. This is documented on the IBM MQ v7.1 Knowledge Center page "MQSNOAUT":When you set this variable it disables the object authority manager
(OAM) and prevents any security checking.The MQSNOAUT variable only takes effect when a queue manager is
created.If you want to check if theMQSNOAUTvariable is set before you run thecrtmqmcommand to create a new queue manager, on Unix you can as provided by @buzyjess just run the following:echo $MQSNOAUTIf you want to check if OAM is turned off on a running queue manager run the following command:DIS QL(SYSTEM.AUTH.DATA.QUEUE) IPPROCSIf theIPPROCShas a value of 0 the OAM is turned off on the queue manager.Turning off OAM is not a good solution even on Test/Dev queue managers and is not something I would recommend you do. By leaving OAMturned onyou are able to set things up properly as you would in a production environment, this will leave no surprises when you are ready to move to production. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is there anyway to bridge between Azure Service Bus queue and a WebSphere queue?Preferably "something" hosted in Azure, rather than an on-premise product [/INST] Assistant: There is a wiki pageHow to Send message from an on premise IBM MQ to Azure Service Bus queuewhich introduce for the needs. You can follow it to create a program, either as a continous web job on Azure if using Azure App Service, or running on Azure VM if you want.If the WebSphere MQ works on network within public IP, I think it's simple without any other additional work for network configuration. If not, you can try to create anAzure VPN Gatewayto establish secure & cross-premises connectivity between them for message transfering. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I am working with wmqfte. While creating a transfer there is a parameter for metadata attribute pair. Why is this used for ? [/INST] Assistant: One of the FTE engagements I worked on required email notifications of transfer status. Our approach to this was to add an email step in the transfer and the way we passed in the source and destination addresses was with metadata pairs. The transfer XML is provided below for an example:<?xml version="1.0" encoding="UTF-8"?><request version="4.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<!DOCTYPE request>
<managedTransfer>
<originator>
<hostName>host.example.com</hostName>
<userID>me</userID>
</originator>
<sourceAgent QMgr="QMGR01" agent="AGENT01"/>
<destinationAgent QMgr="QMGR02" agent="AGENT02"/>
<transferSet priority="5">
<metaDataSet>
<metaData key="email.from">fteadmin@example.com</metaData>
<metaData key="email.to">"dept@example.com</metaData>
</metaDataSet>
<item checksumMethod="MD5" mode="binary">
<source disposition="delete" recursive="false">
<file>/root/path/file</file>
</source>
<destination exist="overwrite" type="directory">
<file>/root/path/</file>
</destination>
</item>
</transferSet>
<job>
<name>Your Job Name Here</name>
</job>
</managedTransfer>
</request>A better way of sending status emails is to watch the transfer notifications published at the Coordination QMgr. However this example does show one possible use for the metadata pairs. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: There is a built in limitation of 2 MB for the IBM WebSphere MQ JMS interface.http://www-01.ibm.com/support/docview.wss?uid=swg21221260Is there a way to bypass that limitation? [/INST] Assistant: The limitation applied to WMQ versions distributed with WAS back at V5.1.1 many years ago. If this is the problem, upgrading to current version of WMQ will resolve it. The current version of WMQ is V7.0.1. V6.0.2 is also still current but will be out of service in September of 2012. V6 & V7 can send and receive messages up to 100MB but WMQ itself defaults to 4MB out of the box. It is necessary to tune parameters of the QMgr, queues and channels if messages larger than 4MB are required but JMS is not a limitation at modern versions.The WMQ Java/JMS manuals do not specifically mention a maximum size because it is the same as the native WMQ max length of 100MB. However, theWMQ V6 Performance Reportprovides benchmarks for JMS messages up to 64MB.Whatever is preventing you from putting a 3MB message isn't a limitation of WMQ's JMS implementation as regards message size. If you have checked MAXMSGL on all of the channels and queues and the QMgr then it's something less obvious but itisconfiguration. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is Extended Transactional Client installed by default? How do I verify if this is installed or not? How do I get this installed? [/INST] Assistant: In previous versions of the MQ client, it certainly wasn't included with the standard client (the Transactional Client had cost / licensing implications).However from the date of the announcement of WMQ v7.5 onwards it is now included with the Standard clients at v7.0.1 and up.From theIBM Websphere siteWith the availability of WebSphere MQ V7.5 the capability previously
delivered within the Extended Transactional Client is incorporated
into the standard WebSphere MQ client.And in more detail,hereWider access to the Extended Transactional Client for all customers
The Extended Transactional Client enables customers to configure their
WebSphere MQ client to participate in a transactional unit of work
when exchanging messages to an MQ server. Use of this client without
charge was previously restricted to customers using WebSphere
Application Server, WebSphere Enterprise Service Bus, or WebSphere
Process Server as the Transaction Manager. With the announcement of
WebSphere MQ V7.5, the Extended Transactional Client is available for
use in all client deployments without additional entitlement. This
includes all supported versions of WebSphere MQ client connecting to
any supported version of WebSphere MQ queue manager.With the availability of WebSphere MQ V7.5 the capability previously
delivered within the Extended Transactional Client is incorporated
into the standard WebSphere MQ client. Customers using WebSphere MQ
V7.0.1 and WebSphere MQ V7.1 gain the benefit of use of the Extended
Transactional Client without charge from the date of this
announcement. IBM is making available refreshed code including updated
License Information. Customers can realize this benefit through the
download and acceptance of this new License Information. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is there anyway to clear the IBM Queue programatically? I want to clear all messages for some queues at a certain time everyday. [/INST] Assistant: You can write a simple program to consume all messages on the queue. If the IPPROCS and OPPROCS are both zero then you can write a program to issue the PCF ClearQ command or the runmqsc ClearQ command. I've written abouthow to do itand so have other MQ users. Try doing an internet search. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: What is the command(or process) for loading a xml file in a queue. I am using Websphere MQ6 in AIX. Thanks in advance. [/INST] Assistant: I suggest you modify a MQ Java sample (shipped with MQ) for this job. You will have to write piece of code to read the data in the XML file into a buffer and pass that buffer to MQQueue.Put method call. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I have a need to put a XML Message in the MQ queue with the attachments. Is that possible?. Please share your thoughts/relevant documentation. [/INST] Assistant: You can put any type of message payload to a MQ queue. XML (which is of type Text/String), bytes, etc. MQ does not care about payload type.You will have to create a byte or text buffer containing your XML with attachments and put the message to a queue. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I need to pause the receiver queue some time (for process the already received messages) in ibm websphere queue through the ibm java api. [/INST] Assistant: If you want to stop Applications from being able to get messages from a Queue you can inhibit the Queue by setting theGETattribute on the Queue toDISABLED. This will still allow applications to put messages to the Queue but no applications will be able to get messages from the Queue. IF you want to stop messages from being able to be put to a queue you can do this by setting thePUTattribute toDISABLED.When you're ready for the applications to be able to get messages from the Queue again you set theGETattribute toENABLEDand applications will be able to get messages from the Queue.example MQSC command to setGETtoDISABLEDALTER QLOCAL('') GET(DISABLED)Be warned: If you inhibit the put or get on a Queue, applications attempting to put or get messages on that Queue will receive an error return code ofMQRC_PUT_INHIBITEDorMQRC_GET_INHIBITED. If you don't anticipate this your applications could fail. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can I filter and get a message from a queue by its CorrelationId even if that message is not the first in the queue? [/INST] Assistant: Yes. You have to useMQGMO_MATCH_CORREL_IDmatching option onMQGetMessageOptions.MQMessage getMsg = new MQMessage();
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.MatchOptions = MQC.MQMO_MATCH_CORREL_ID;
// Copy correlationID of the message you want to receive
getMsg.CorrelationId = correlationId;
queue.Get(getMsg, gmo);Edit:CorrelationId is used to relate two messages, typically a request and reply message. So it's done this way.1) Client application sends the request message. After sending the message caches the messageId of the sent message.2) Use this messageId as a correlationId for message selection.recvdResponseMsg.CorrelationId = requestMsg.MessageId;
gmo.MatchOptions = MQC.MQMO_MATCH_CORREL_ID;3) In the server application(which process the request message), when sending response message, just copy messageId of the request message to correlationId of the response message.responseMsg.CorrelationId = requestMsg.MessageId; </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.pathwhile creating a MQQueueManager.I have no idea why this is happening.. Can u please help me. [/INST] Assistant: The error means the MQ client has attempted to load the mqjbnd library but can not find it on the java.library path provided. The MQ client tried to load that library as the application has specified a transport type of 'bindings' which means that the MQ client application will exist on the same physically machine as the MQ server, and so a bindings connection (not TCP/IP) will be made.So resolve the issue you need to find out if your java application should exist on the same physically machine as the MQ Server (QueueManager) that you want to connect to. If it should be then the mqjbnd library (.dll or .so) should be located in the java/lib directory. Add this to the java.library (PATH on windows or LD_LIBRARY_PATH on unix).If your application is to be remote to the MQ Server then you must change your java code to use a transport type of 'client'. There is no need to reference any libraries when connecting remotely. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: How can you create a new queue programmatically using theMQQueueManagerandMQQueueobjects?Is there a guide on how to use these classes? The javadocs don't say much. [/INST] Assistant: To create a dynamic queue, you just open a model queue. The dynamic queue is created and you get back a handle to it. The name of the queue is provided as well and you can place that in the Reply-To-Queue field of a request message.If you want to create a permanent queue, have a look atcom.ibm.mq.pcfin the Infocenter. To execute any WMQ admin command from an application, submit a Programmable Command Format (PCF) message to theSYSTEM.ADMIN.COMMAND.QUEUE. The application must be authorized to put a message onto the queue for this to work. Furthermore, the command server will use the user ID in the message header to look up authorizations for the specific command being executed. To create a queue, the submitter must have+crtauthority on queues.Note that any person or app with the ability to create a permanent queue is a defacto administrator. If their ID is not authorized to create authorization control list entries, they need only to create an alias over the command queue and can then spoof the administrative user ID. For this reason, it is rare that any non-administrator would be granted rights to create queues. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is anyone aware of an IBM Websphere MQ module compatible with python3? pymqi doesn’t seem compatible and the author seems unconcerned with that fact. [/INST] Assistant: pymqiv1.10.1 compatible with python 3.x (tested with 2.7, 3.5, 3.6, 3.7, 3.8) </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Friends,
I want to connect remote IBM QM in java by binding method(JNI). Is it possible?. else
guide me better option for implementing in java. [/INST] Assistant: Using bindings mode you can only connect to a queue manager running on the same machine as your application. In bindings mode application and queue manager use shared memory to communicate. As you may be knowing, memory can not be shared across machines.You should use the client mode connection to communicate with a remote queue manager. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is there a way to get all the properties of queues, channels, etc,. with a single mq command and store it in a file ? [/INST] Assistant: I believe theMS03SupportPac will do what you require. Quoting...AbstractThis SupportPac (saveqmgr) saves all the objects, such as queues, channels, etc, defined in either a local or remote queue manager, to a file. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Looking for some examples for integration between Apache Camel and IBM MQ.Apache camel acting as middleware router between MQ and our java based socket application. [/INST] Assistant: You should define a JmsComponent bean in your component scan package and give it all the connection factory properties and use the bean in your route.
Example:@Bean
public JmsComponent ibmmq(){
JmsComponent ibmmq = new JmsComponent();
MQTopicConnectionFactory factory = new MQTopicConnectionFactory();
factory.setQueueManager("yyy"); //yyy is you QueueManager
factory.setHostName("zzz"); //zzz is your host
factory.setPort(111);
factory.setTransportType(1);
ibmmq.setConnectionFactory(factory);
return ibmmq;
}And in your routes add the followingcamelContext.addRoutes(
new RouteBuilder()
{
@Override
public void configure() throws Exception
{
from("ibmmq:topic:YY.ZZZ").to("stream:out"); //YY.ZZZ is your topic name. If Queue use ibmmq:queue:YY.ZZZ.
}
});Please have camel-jms and IBM MQ libraries in your dependencies and camel-stream if you are using "stream:out" to test. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Im trying to set MCA user id in MQ explorer 7 on a channel .
where do I get the value of the MCA ?? [/INST] Assistant: The value you put in that field is the ID that will be used by the application connecting via the channel. That is a complex security issue which needs to be determined by your company. MQ channels need to be configured so they are secure and do not allow unwanted access. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can any one explain about MFT and what is the difference between MFT and Websphere MQ. And why we need MFT even we have MQ. [/INST] Assistant: WebSphere MQ MFT (or Managed File Transfer) is a extra, chargable component of WebSphere MQ that allows you to send/receive files between your systems in a managed and auditable way, regardless of file size or the operating systems used. It uses your WebSphere MQ network to do this.WebSphere MQ MFT supersedes the WebSphere MQ File Transfer Edition (FTE) product.Rather than me type all about it here, you should read the "Product overview" section in the WebSphere MQ Knowledge Center for the MFT component:http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.wmqfte.doc/wmqfte_intro.htm?cp=SSFKSJ_8.0.0%2F2If you don't want to, or don't have the need to, transfer files over your WebSphere MQ network, you don't need to use MFT. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: i want to know port number of Queue manager on my server.how to find it?
What is the command to find it in message queueing [/INST] Assistant: If the two listed possible duplicate answers don't address your question, I assume that you do already have a listener running on your queue manager (i.e. someone else set it up) and you just need to know what port they used.Easiest way to find that is to use the following MQSC command:-DISPLAY LSSTATUS(*) ALLThis will show you all the running listeners (yes a queue manager can have more than one listening port) and will also show you the port number it is listening on. If you alternatively use the following MQSC command:-DISPLAY LISTENER(*) ALLyou may not find the actual port in use, because any definition with PORT(0) will use the default port number from the qm.ini file which is normally 1414 but might be another number. The first command always shows the actual port in use and thus is recommended for finding the port number for the queue manager.To do the same thing using MQ Explorer, from the right mouse-click context menu on the Listener object folder, select Status...This will bring up a window showing all the running listeners, (the equivalent of the MQSC commandDISPLAY LSSTTATUS). You can see the port number in the second column. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can any one tell me how to exclude system objects while taking backup of queue manager using save queue manager and dump queue manager commands? [/INST] Assistant: Another tool that you can used instead ofsaveqmgrordmpmqcfgwhich can excludeSYSTEM.*objects when making a backup of all your queue manager object definitions is MO71. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can we write a code in Java to start/stop a queue manager? I haven't come across any Java API which can be used for this. [/INST] Assistant: You can executestrmqm <qm name>command from your Java program to start the queue manager.Example:Runtime.getRuntime().exec("C:\Program Files (x86)\IBM\WebSphere MQ\bin\strmqm QM1"); </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: what is bottom technical principles of IBM M Q Series? what is it's encapsulation? socket?Message Queue(Inter-Process Communication)? or what? some people know about that? help....Thanks [/INST] Assistant: WebSphere MQ uses an IBM proprietary wire protocol which is not publicly documented. However, it runs over TCP/IP, and can be inspected by a Wireshark filter for both WMQ v6 and v7.There's a protocol for use by low-bandwidth telemetry devices to talk to MQ called MQTT which is also proprietary but is documented by IBMhere.In the mainframe world the protocol rides on VTAM/APPC. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Could any one let me know how can we check if we havevalid licenses for IBM MQ.Need to check it in LINUX, AIX and SunOS. [/INST] Assistant: The IBM Technote "Upgrade the MQ trial version to a production version" states the following:Verify that the new license was applied by checking that the correct
license file (amqpcert.lic) is in the /opt/mqm/lib.The license is named amqXcert.lic, where X is the license type.amqtcert.lic - is a trial licenseamqbcert.lic - is a beta licenseamqpcert.lic - is a full production licenseThe IBM MQ v7.1 Knowledge center page "Converting a trial license on UNIX, Linux, and Windows" states the following:Obtain the full license from the fully licensed installation media.Based on the above statements if you have the fileamqpcert.licin the lib directory of the IBM MQ installation it only indicates your software was installed from fully licensed installation media or was upgraded from a trial or beta license to a full production license using fully licensed installation media.The presence of this file however doesnotindicate you have a valid license. A valid license would be based on what you have purchased. If you purchased a license for one server and then used that installation media to install IBM MQ on 100 servers, the license file would be present on all the servers but you would only have a valid license for one server.The following discussion on the MQSERIES Listserv has some good information on distributed licensing "Re: License cost MQ - any overview?". </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I would like to know if the Basic IBM MQ Server licence cost, covers also the IBM Websphere MQ web console and the REST API. [/INST] Assistant: AsJoshMcalready answered in the comments: The MQ Console and MQ REST API are part of the MQ product.These components are also not specifically mentioned on theIBM MQ licensing pageas a separate product, so it complies to the "All other IBM MQ components from the install media not explicitly mentioned above" rule. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: We need to execute SET AUTHREC PROFILE($cname) OBJTYPE(CHANNEL) GROUP('mq-user') AUTHADD(...) so that the channels show up WMQ Explorer, it that correct? Current the access is prevented. [/INST] Assistant: Yes. With theAUTHRECprofiles defined in this and previous questions you have authorized the user to connect to the QMgr, put requests to the command queue and receive replies on a model queue. The command server needs to know what operations on other objects the group is authorized for. As an example, it won't display or let members of the group control channels until you authorize them.A quick way to see what objects need to be authorized is the Role Based Authorities Wizard in WMQ Explorer. Right-click on the QMgr, select Object Authorities, then Add Role Based Authorities like so:Next, select Group and put in the group name:The wizard outputssetmqautcommands which you can issue from the command line asmqm. There are equivalentAUTHRECcommands for these. Rather than convert them manually, I'd recommend running thesetmqautversions, then capturing the rule using thedmpmqcfgcommand.The actual commands created in the wizard using the settings above are:setmqaut -m QM75_1 -t qmgr -g mq-user +connect +inq +dsp
setmqaut -m QM75_1 -n "**" -t q -g mq-user +dsp
setmqaut -m QM75_1 -n "**" -t topic -g mq-user +dsp
setmqaut -m QM75_1 -n "**" -t channel -g mq-user +dsp
setmqaut -m QM75_1 -n "**" -t process -g mq-user +dsp
setmqaut -m QM75_1 -n "**" -t namelist -g mq-user +dsp
setmqaut -m QM75_1 -n "**" -t authinfo -g mq-user +dsp
setmqaut -m QM75_1 -n "**" -t clntconn -g mq-user +dsp
setmqaut -m QM75_1 -n "**" -t listener -g mq-user +dsp
setmqaut -m QM75_1 -n "**" -t service -g mq-user +dsp
setmqaut -m QM75_1 -n "**" -t comminfo -g mq-user +dsp
setmqaut -m QM75_1 -n SYSTEM.MQEXPLORER.REPLY.MODEL -t q -g mq-user +dsp +inq +get
setmqaut -m QM75_1 -n SYSTEM.ADMIN.COMMAND.QUEUE -t q -g mq-user +dsp +inq +put </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I found in certain codes that given to me is message.getStringProperty(MESSAGE_TYPE)but my question is where the property is set in rfhUtil toolplease guide me..thanks in advance [/INST] Assistant: You can set message type using MsgType combo box on MQMD tab of RFHUTIL. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I have to encrypt messages with WMQ Advanced Message Security. What do I need to do in my program or .bindings file to make it work? [/INST] Assistant: Good news - there is nothing to do in your code or .bindings file. WMQ AMS uses interceptors to catch the API calls before they are handed to WMQ. The configuration is entirely external to your program and consists of using an environment variable to point to an ini file. The ini file in turn points to the keystore which can be a jks or IBM's kdb format (such as that used by QMgrs).The various quick start guides outline the steps required to get AMS up and running.Quick Start Guide for WebSphere MQ AMS on UNIX platformsQuick Start Guide for WebSphere MQ AMS on Windows platformsQuick Start Guide for WebSphere MQ AMS with Java clients </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I am calling Date() object before writing into MQ. This is way I am capturing IN time of MQ. How to calculate out time of MQ? [/INST] Assistant: The simplest solution is to get an MQ message tracking solution. There are lots available and you can find a list here:http://www.capitalware.com/mq_tools_comm.html#mqtrkCOA is Confirmation of Arrival - when the message is put into the destination queueCOD is Confirmation of Delivery - when the receiving application performs an MQGETCreating a COA/COD solution to your problem is not that difficult or complicated. I've created many SLA solutions for customers when I was a consultant that used MQ's COA/COD.If the messages stay within the same queue manager then life is super easy. If not, then you need to know that the COD message (not COA) is returned using the original message's UserId. So you need to plan to have the correct security permission or the COD message will land in the DLQ (Dead Letter Queue).Find yourself a database to use - it can be your corporate one or a simple one like SQLite, H2, etc.The first question people ask is how to tie everything together. i.e. what key. Simple, use the MQMD MessageId. When the application does an MQPUT, the MQMD MessageId is populated.Second, make sure the original message has the following MQMD fields completed: replyToQueueName, replyToQueueManagerName and report.Third, the COA and COD messages will have the original message's MessageId in their MQMD CorrelId field.You can go with either 3 or 4 timestamps. The extra timestamp can be the time right before you do the MQPUT. Let's say you want 4 timestamps then:Timestamp right before the MQPUTTimestamp returned in the MQMD's putDateTime from the MQPUTCOA Timestamp returned in the MQMD's putDateTime - matching MessageId is in CorrelIdCOD Timestamp returned in the MQMD's putDateTime - matching MessageId is in CorrelIdSimple. Now each row in your DB has a complete SLA record for the history of that message. You can write simple SQL to determine:how long it took MQ to deliver the message i.e. timestamp #4 minus
timestamp #1 (or #2)how long it stayed in the queue before the receiving application pick it up i.e. timestamp #4 minus timestamp #3 - when there is finger pointing, this is an important number!!!when someone says 'we never got your message' - timestamp #4 is your proofFinally, if you are expecting a response (reply) message back (assuming the original MessageId is in the CorrelId) then you could add that timestamp to the DB as a 5th timestamp. i.e. Timestamp #5 minus timestamp #1 (or #2) would give you the round-trip time (request-response). </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: could you please guide on whether azure functions in c# can be used to receive messages from IBM MQ when a message is received in Queue [/INST] Assistant: You can use Azure Logic App with MQ Connector. Microsoft Connector for MQ sends and retrieves messages stored in an MQ Server on-premises, or in Azure. This connector includes a Microsoft MQ client that communicates with a remote IBM MQ server across a TCP/IP network.This documentis a starter guide to use the MQ connector.The MQ connector includes the following actions. There are no triggers.Browse a single message without deleting the message from the IBM MQ ServerBrowse a batch of messages without deleting the messages from
the IBM MQ ServerReceive a single message and delete the message
from the IBM MQ ServerReceive a batch of messages and delete the
messages from the IBM MQ ServerSend a single message to the IBM MQ
ServerNote that the MQ Connector does not have any triggers. So, use another trigger to start your logic app, such as theRecurrence trigger. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: What channel attributes can be utilized to provide barriers at different points in WebSphere MQ Inbound channel processing as an alternative to just simply disabling it? [/INST] Assistant: From a security perspective, the approach of using multiple controls on a channel definition provides some redundancy. For example, many years ago researchers found a bug (which IBM quickly fixed) in the channel protocol that allowed the channel to start despite anMCAUSERthat should have prevented the connection. If the MQ admin had relied entirely on theMCAUSERvalue, the channels would have been vulnerable until the fix was applied.For that reason I generally advise to set multiple controls in the channels that you wish to be disabled. The idea is that if one control fails, the channel fails to a safe state. You could, for example, useCHLAUTHto disable a channel but if you then use the Broker's New Broker Configuration Wizard, the first thing it does (last time I checked) is to disableCHLAUTH. Whoops.Here are a few of the attributes that can be used to disable a channel. Remember that if you apply these to aSYSTEM.DEF.*orSYSTEM.AUTO.*channel, youmustoverride the attribute on creating a new legitimate channel so do not go overboard and use all of them. Or, more precisely, use one control for every layer of tin foil present in your favorite hat. ;-)SetMCAUSER('*NOBODY')because the asterisk is not a valid character in a user ID.Set the max message length to something shorter than theMQMDlength.SetSSLCIPH,SSLCAUTH(REQUIRED)and make sureSSLPEERhas an impossible value.UseCHLAUTHrules but make sure that when you create the rules that allow access on legitimate channels that they are not so broad as to authorize access to channels you did not intend.Specify exits that do not exist.Note that these address the issue of an attacker who does not already have access to the QMgr. Any attacker with admin access will keep templates on hand from asaveqmgrfrom each MQ version. This allows the attacker to submitDEFINEcommands that contain all the required attributes and thus will not be reliant on theSYSTEM.*objects. The legitimate administrator, however, must use the same approach or at least be cognizant of which attributes must be overridden to define a new channel.In short, this approach provides perimeter controls and the trade off is in administrative overhead. To be effective, use two or more unrelated controls (CHLAUTH,MCAUSERand invalid exit spec, for example), incorporate the setting into the training for administrators, and do not be tempted to use every possible control because the cost of doing so rises faster than the benefit. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I am using 'c-client' api to access theWebsphere IBM MQ 8. Is it possible to identify the source topic from which the message was published ? [/INST] Assistant: To inquire on the topic string, use theMQCRTMHAPI call to obtain a message handle, then inquire the properties of the message using theMQINQMPAPI call specifying theMQTopicStringproperty.MQCRTMH- Create message handleMQINQMP- Property NamesSample IBM MQ procedural programsAdmittedly, it can be difficult to track this info down in the IBM MQ reference documentation, especially if you do not already know the way it works and the names of the calls and fields. One approach that can help is to start with the sample programs to get a basic understanding and then work back into the manuals to fill in the missing details. The sample code is available from the install media by selecting the appropriate optional component.On Windows these end up in{MQM Home}/Toolsand on UNIX systems at{MQM Home}/samp. If the samples are installed,AMQSIQMAwill demonstrate how to inquire properties of a message handle, and is an example of the use of theMQINQMPAPI call. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is there any method/api to get JMS message receipt time (Not delivery, Not publish timestamp) ? Or i need to fix it manually inonMessage(Message msg)method ? [/INST] Assistant: Yep, there is no "receive timestamp" in JMS api, some more specific JMS implementations may provide this feature, however if you want to stay on specification level - you need to put down this data yourself. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is there a way to find the total number of messages that pass through an IBM websphere MQ queue manager over a specific period of time? [/INST] Assistant: This sounds like a perfect use of the MQ Accounting and Statistics feature. Among other things, these features record the number of messages (with a persistent and non-persistent count) and also number of bytes (not all messages are the same size).You can turn on Accounting and Statistics for just a selection of queues and/or channels or for everything.Further Reading:Accounting and statistics messagesTurning on Queue AccountingTurning on Queue StatisticsSupplied tool to view the output </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I want to change MaxChannels value, it is inside the qm.ini file. Is there any option with helm variable or do i need to rebuild image? [/INST] Assistant: If you are using the IBM sample Helm Chart availablehere, you can specify a qm.ini within a Kubernetes configMap and then reference this as part of the Helm deployment. Each of the samples already reference a qm.ini which you can use as an example. The qm.ini is created within a ConfigMaphere, and referencedhere. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Where can I find the differences between the IBM MQ versions V8.0.0.5 and V9.0? I tried to look it up on IBM website but no luck. [/INST] Assistant: IBM's v9 Knowledge center page "What's new in Version 9.0.0" lists new things in v9.0.New family features
are:Additional quality of protection for IBM MQ AMSWeb addressable access to the client channel definition table (CCDT)IBM MQ AMS supported in non-IBM JREs in Java clientsUpdated Resource Adapter for traditional WebSphere Application ServerEnhanced Unicode data conversion supportIBM MQ Managed File Transfer Protocol Bridge Agent logging enhancementsNew features for distributed platforms
are:Performance monitoring API and enhanced activity trace available through publish/subscribe[Windows] LDAP authorization on Windows platforms[UNIX] runmqsc command line editor for UNIX platformsNew z/OS® features
are:Data manager page set statisticsJMS support within CICS OSGI ServerJMS support within IMS ServerImproved control of messages by using message expiryIncreased number of active logsUsing IBM z/OSMF to automate IBM MQIBM's v9 Knowledge center page "What's changed in Version 9.0.0" lists what has changed.[V9.0.0.0]Changes to supported platformsFor IBM MQ Version 9.0, some changes are made to the platforms that
are supported.[V9.0.0.0]Changes to commandsA number of commands have changed at IBM MQ Version 9.0[V9.0.0.0]Command level changes for Version 9.0The command level changes to 900 at IBM MQ Version 9.0[V9.0.0.0]Deprecated, stabilized and removed featuresA number of features are deprecated, stabilized or removed from IBM MQ
Version 9.0.[z/OS][V9.0.0.0]z/OS: Prerequisites for Version 9.0Some prerequisites have changed for Version 9.0.[z/OS][V9.0.0.0]z/OS: Changes to OPMODEIn previous versions of IBM MQ, if a queue manager was started with
OPMODE=(COMPAT,vrm), new functions added at command level vrm would
always be available. In IBM MQ Version 9.0 this is no longer the case. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Can you tell me how to identify the version bit of installed IBM WebSphere MQ, 32 or 64? On Windows, Linux and UNIX respectively.Thanks very much [/INST] Assistant: Usedspmqver -alike so:bash-3.2$ dspmqver -a
Name: WebSphere MQ
Version: 7.0.1.4
CMVC level: p701-104-110114
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 2.6.18-194.17.4.el5
bash-3.2$Or on Windows:C:\>dspmqver
Name: WebSphere MQ
Version: 7.5.0.0
Level: p000-L120604
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Windows
Mode: 32-bit
O/S: Windows 7 Ultimate x64 Edition, Build 7601: SP1
InstName: WMQ75
InstDesc:
InstPath: C:\Program Files (x86)\IBM\WebSphere MQ
DataPath: C:\Program Files (x86)\IBM\WebSphere MQ
Primary: Yes
MaxCmdLevel: 750
C:\>Here is thedspmqverInfocenter page forV7.1andV7.5. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: On the receiver side, I need to know how long the message stayed in the queue before I got it for processing.I'm using Java and JMS. [/INST] Assistant: Upon further searching, I found a post in this forum with a similar discussion:http://www.mqseries.net/phpBB2/viewtopic.php?t=71092&sid=97f90533407247be7150d81d550538a1It's a convoluted solution but it appears to be the only way to know when a certain incoming message was effectively received.It involves setting up an exit program that process outgoing messages, and if it is a COA, save the current timestamp (with messageId/correlationId) somewhere for later processing.But the big question is: why don't IBM implemented an "arrival timestamp" property in the first place? It looks a trivial thing to do... </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is there a possibility in IBM WebSphere MQ to redirect message from queue to Dead Letter Queue (DLQ), when its withdrawal counter would be bigger than 3? [/INST] Assistant: The queue manager will NOT automatically move the messages to BOQUEUE or DLQ. It is typically done by the client or client application to route the messages which they are unable to process. MQ JMS and XMS clients have this capability. If your application uses any other MQ clients, then routing of messages will need to be done by your application. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I am trying to transfer a 60mb file to queue, butWebsphere MQfte stall the transfer and keep recovering. I am running WebSphere MQ FTE on default configuration. [/INST] Assistant: I have tested following scenario with different results according to configuration changes I made.These commands were issued to create monitor:fteCreateTransfer -sa AGENT1 -sm TQM.FTE -da AGENT2 -dm QM.FTE -dq FTE.TEST.Q -p QM.FTE -de overwrite -sd delete -gt /var/IBM/WMQFTE/config/TQM.FTE/TEST_TRANSFER.xml D:\\rvs\\tstusrdat\\ALZtoSIP\\INC\\*.zip
fteCreateMonitor -ma AGENT1 -mn TEST_MONITOR -md D:\\rvs\\tstusrdat\\ALZtoSIP\\INC -mt /var/IBM/WMQFTE/config/TQM.FTE/TEST_TRANSFER.xml -tr match,*.zipTest was performed on files: 53MB and 30MBDefault configuration (just enableQueueInputOutput=true added to AGENT2.properties)1) all defaultno success, transfer status: "recovering"for both files2) added maxInputOutputMessageLength=60000000, destination queue max message length changed to 103809024result transfer status: "failed" with following exception PM71138: BFGIO0178E: A QUEUE WRITE FAILED DUE TO A WMQAPIEXCEPTION WITH MESSAGE TEXT CC=2 RC=2142 MQRC_HEADER_ERRORfor both filesAfter reading this:http://pic.dhe.ibm.com/infocenter/wmqfte/v7r0/topic/com.ibm.wmqfte.doc/message_length.htmI came with working settings:3)maxInputOutputMessageLength=34603008(its maximum value), destination queue max message length still to 103809024result for file with size 30MB: succcessresult for file with size 53MB: "failed" with following exception PM71138: BFGIO0178E: A QUEUE WRITE FAILED DUE TO A WMQAPIEXCEPTION WITH MESSAGE TEXT CC=2 RC=2142 MQRC_HEADER_ERRORSo according to this I am afraid one can't transfer larger then 34603008 bytes. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Does anyone know if BizTalk 2006 MQSeries adapter (server version) supports MQ 7.0 on W2k3? I know R2 does but none of the documentation specifically mentions it. [/INST] Assistant: From a purely WMQ perspective, the answer is "yes." IBM has published asupport statementthat WMQ Server V7 is compatible with all previous WMQ clients. Assuming the BizTalk 2006 client is either bundling the IBM client or at least is compatible with it, then it should work fine. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: in my Java application I getMQQueueobject usingMQQueue tQueue = qManager.accessQueue(tqName, tqOptions);The queue is a remote queue. Is there way to get corresponding local transmission queue ?(UsingMQ 7.5)Thanks [/INST] Assistant: Yes, usingrunmqscconsole.First on a command prompt runrunmqsc <qmgr>.Once the console opens rundis qr<remote q> XMITQto display the transmit queue used by the remote queue definition.UPDATEAnother method is to use PCF classes.PCFMessageAgent pcfma = new PCFMessageAgent("QM");
PCFMessage pcfCmd = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);
pcfCmd.addParameter(MQConstants.MQCA_Q_NAME, "Q.REMOTE");
PCFMessage[] pcfResponse = pcfma.send(pcfCmd);
String xmitQName = (String) pcfResponse[0].getParameterValue(MQConstants.MQCA_XMIT_Q_NAME);
System.out.println("XmitQ name " + xmitQName); </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: What is the use of a server conn in Websphere MQ and why do we go for it.What is the difference between client conn and server conn. [/INST] Assistant: In some respects these are two opposite things, but they need to match to make a client connection to a queue manager. Its quite a generic topic but fortunately there is lots of useful documentation about this in google / IBM knowledgebase e.g.https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm.mq.con.doc/q016480_.htmAs a queue manager, if you are going to let clients connect into you, you need to be able to provide some configuration details (heartbeat intervals, max message sizes, user exits) - these are configured on a SVRCONN channelAs an application, if you want to connect into a queue manager via the client bindings (usually to go to another machine), you need some information about the configuration to use and these are configured on a CLNTCONN channel.The application 'provides' a CLNTCONN channel, and once the connection is made, an equivalent SVRCONN channel is looked up, and the configuration values are negotiated and the connection made.An application can 'provide' a CLNTCONN channel at least 3 common ways...
- As part of an MQSERVER environment variable
- Via a client channel table (MQCHLLIB/MQCHLTAB environment variables)
- During an MQCONNX call it can provide the channel detailsMore details here:https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.dev.doc/q027440_.htm </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I need to clear a group of messages from a MQ Queue, but I need to do this without retriving the message or clearing the whole queue? [/INST] Assistant: No, you can't remove/clear a message from a queue without retrieving it. A QueueBrowser is used to browse messages from a queue. It does not remove/clear messages from a queue. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I need to test the message flow in SONIC and also in IBM websphere MQ. Is there any tools to test the message flow for these?Thanks,
i2ijeya. [/INST] Assistant: Can you elaborate your question?But :if you want to test an outbound connection to Websphere MQ you can use the internal test scenario (in Sonic Workbench) and set a process with the onRamp/OffRamp Websphere MQ service(but it's not out of the box and requires the Service configuration).
Otherwise to put a jms Message in a Sonic Queue you can use the internal JMSClient or SonicMessageManager ([http://queuemanager.nl/]it has more options and use the ESB lib not only the jms ones)if you want to send messages and get messages from Websphere MQ the easiest way is to use :
- IBM mq tool
- MQJExplorer [https://code.google.com/p/mqjexplorer/]Cheers </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: We are trying to use IBM MQ manager as XA Transaction manager with spring-jms and spring transaction support.
Does IBM MQ manager play well with spring-jta support? [/INST] Assistant: You can't use the WMQ JMS client (which is what spring-jms would use) with the MQ QueueManager acting as the XA transaction manager. The intention is that a JMS application would be controlled via a JTA implemented transaction manager (i.e. a Java EE application server).You can however use the WMQ Java client (i.e. non JMS) and have the MQ QueueManager act as the XA transaction manager (non JTA).As @COLINHY said you can use it the other way around. The Spring transaction manager will be the coordinator using JTA and the spring-jms can then be used to bring in the WMQ JMS client and MQ Queue Manager as a transactional resource. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I use WebSphere MQ 7.0, followed necessary steps and configured it. Can I use same .binding file in another WebSphere MQ ?WebSphere MQ\java\bin\JMSAdmin.config entries as belowINITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
PROVIDER_URL=file:/C:/JNDI-Directory [/INST] Assistant: The .bindings file is the backing store for the FileSystem JNDI provider. You would typically conenct the JMS based applications to this to load the Connection Factories and Destinations.A single JNDI store can hold multiple objects and they don't all have to represent connections to a single Queuemanager.So if you're asking do I need another JNDI store for another queuemanager, no not necessarily. </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: I need to know if the character § is supported by CCSID 1208. In general, How do we find the list of characters supported by a particular CCSID.Thanks [/INST] Assistant: As nitgeek said, yes, it's supported and 1208 is UTF-8 (level 3).Here is alist of IBM's CCSID's. You can drill down to see the code pages - for instance here's the code page for37 (US/Canada). </s> |
<s>[INST] <<SYS>> You are a helpful, respectful and honest AI assistant. Based on the problem outlined in the provided context, your task is to identify the issue and provide a relevant answer or solution. <</SYS>> Context: Is it possible to use java messaging with mixed implementations.E.g.: Is it possible to connect an ActiveMQ clientdirectlyto an MQSeries(IBM) server to read/write messages from/to the message queue? [/INST] Assistant: JMS is an API specification, not a wire format specification. JMS describes the signature of APIs. It does not say how the internals should be implemented. Hence JMS client library implementations are Messaging Provider specific.A IBM MQ JMS Client knows how (i.e wire format) to communicate with IBM MQ. Similarly Active MQ JMS client knows how to speak to Active MQ JMS provider. Since the implementations are different, Active MQ JMS Client will not be communicate with IBM MQ. </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.