ibm-mq

Changing Activation Config of Topic reading MDB at deploy time

本秂侑毒 提交于 2019-12-18 07:14:36
问题 I feel this should be easy. Just RTM and go. But I can't find the info I need. Q: Can I change the value of an @ActivationConfigProperty at deploy time without having to write any XML? More detail I have an MDB which is using the @MessageDriven annotation. Within this are a number of @ActivationConfigProperty annotations configuring it. @MessageDriven(mappedName = "jms/TestJeremyTopic ", activationConfig = { @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto

Websphere 7 MQueue: how to access queue depth from Java?

痞子三分冷 提交于 2019-12-18 07:12:55
问题 I'd like to write some code to monitor the queue size on Websphere 7 MQ. This is the code I've come up with MQEnvironment.hostname = "10.21.1.19"; MQEnvironment.port = 1414; MQEnvironment.channel = "SYSTEM.CDEF.SVRCONN"; MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES); MQQueueManager qMgr = new MQQueueManager("MYQMGR"); MQQueue destQueue = qMgr.accessQueue("PUBLISH", MQC.MQOO_INQUIRE); System.out.println(destQueue.getCurrentDepth()); destQueue.close(); qMgr

Unable to connect to queue manager in WebSphere MQ 7.1

て烟熏妆下的殇ゞ 提交于 2019-12-18 04:26:20
问题 I've installed WebSphere MQ 7.1 on Linux platform, after which I installed WebSphere Message Broker 8.0.0.1. Now when I try to create an execution group, I get an exception: Reason code 2035. This exception states that the user is unauthorised to connect to the queue manager. I have this user added in the mqm group. I did not face any such issue when I was working with MQ 7.0.x. I searched a lot and came to know that there is user ID blocking in MQ 7.1. But, I want this user to be able to

How to resolve WebSphere MQ Reason code 2195 related error?

不羁岁月 提交于 2019-12-18 03:37:13
问题 I am getting an WebSphere MQ Reason code 2195 MQRC_UNEXPECTED_ERROR when I try to connect to the message flows deployed on the execution group. Can somebody please tell me what exactly does this reason code mean? Queue manager, broker , execution group.. everything is up and running and the ports are also open. I am not getting anything worthwhile on the net. Please advise. 回答1: The 2195 return code is a high-level exception that is hit when errors are not caught at lower levels in the code.

What's the difference between ActivationSpec and ConnectionFactory?

时光怂恿深爱的人放手 提交于 2019-12-17 21:51:50
问题 My understanding is that: MD B s (Message Driven Beans) connect via Activation Specification. MD P s (Message Driven POJO) connect via Connection Factory. This diagram from IBM is helpful: To me, this explanation from IBM does not shed much light on the difference: Connection factory -- used by the application to get connections to the messaging bus. Queue -- used by the application to send and receive messages. Activation specification -- used by the application's message-driven bean to

IBM WebSphere MQ request/reply scenario

允我心安 提交于 2019-12-17 16:12:01
问题 I'm currently working on a project where I need to interface with an IBM system which communicates with the outside world through WebSphere MQ. I need to query the system in a "request-response" fashion using queues, and I will be doing this through a queue manager. However, I can't quite get my head around how this works in practical terms. Say I've got multiple instances of the same application which puts a message onto a request queue. The message gets a CorrelationId and MessageId upon

Connecting to a Websphere MQ in Java with SSL/Keystore

坚强是说给别人听的谎言 提交于 2019-12-17 07:29:11
问题 I'd like to connect to a Websphere 6.0 MQ via Java. I have already working code for a "normal" queue, but now I need to access a new queue which is SSL encrypted (keystore). I have been sent a file called something.jks, which I assume is a certificate I need to store somewhere. I have been searching the net, but I can't find the right information. This is the code I use for the "normal" queue. I assume I need to set some property, but not sure which one. MQQueueConnectionFactory

Websphere 6.1 to 7.0 JmqiObject and JmsQueue missing

一个人想着一个人 提交于 2019-12-14 03:48:42
问题 I am trying to migrate an application from Websphere 6.1 to 7.0 I noticed that many of the ibm MQ/JMS classes have changed/disappeared =) In particular, I am getting errors on com.ibm.msg.client.jms.JmsQueue com.ibm.mq.jmqi.JmqiObject it is saying "...cannot be resolved. It is indirectly referenced from required .class files" Does anyone know what I can do to get this to compile? thanks 回答1: Hard to say exactly from the description so I'll provide some general pointers that may be of help.

How do I browse a Websphere MQ Queue through all messages?

喜夏-厌秋 提交于 2019-12-14 03:47:53
问题 I've run into a frustrating problem browsing a queue all the way through its depth. I understood that the queue needs to be opened with the MQOO_BROWSE option among the open options. Then on the first read do a GET using the Get Messsage Option MQGMO_BROWSE_FIRST. Finally, the subsequent GET's should use the MQGMO_BROWSE_NEXT option. The problem is, my attempts worked only to retrieve the first message! Upon the second GET, even with MQGMO_BROWSE_NEXT, the method threw MQRC_NO_MSG_AVAILABLE,

Why do I get a MQRC_NOT_AUTHORIZED error when trying to get channel information using PCF?

匆匆过客 提交于 2019-12-14 02:36:35
问题 I am using MQ Java PCF API to retrieve information from an MQ installation. There are several constructors for the class PCFMessageAgent. There is one that accepts the host, port and channel name. I have shown an extract from the documentation. public PCFMessageAgent(String host, int port, String channel) throws MQException Initialises a new PCFMessageAgent with a client connection to a queue manager. The code I have is PCFMessageAgent agent = new PCFMessageAgent(host, port, "SYSTEM.DEF