websphere-mq

Is it possible to move an MQ message from one queue to another?

I need to move one single message from an MQ queue to another queue. This other queue may already have existing messages in it. Is there a way to do this? ...

JBOSS 5.1 Upgrade - Messaging Issue

I'm trying bring up a hello world MDB in JBOSS 5.1 to see how i can get our messaging application into JBOSS 5.1 Messaging. The simple hellow world MDB gives me a wired issue. The MDB deployed fine and no problem in starting the JBOSS 5.1 AS. However when i tried to send a message from a client which is also running JBOSS 51 is throwing ...

java.lang.UnsatisfiedLinkError

hi guys, i am trying to access MQ queues using JMS. i am getting the below java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path i am passing -Djava.library.path="C:\Program Files\IBM\WebSphere MQ\java\lib" as the VM argument while running the program in eclipse. This issue is discussed quite a lot on the net but with ou...

Setting MQ Header in java client

hi, i am looking to set the MQ Header field 'PutApplName' in my java client and access the same in the JMSXAppID field as a JMS header. The documents on the net talk about the MQ Header Fields getting mapped to JMS ones. Has anyone tried this? ...

IBM JMS connection

Hi guys, I'm currently working in C# and I need to check the state of the JMS connection that i made (whether it's connected / disconnected). I'm sure that I can connect and disconnect succesfully..its just that i need to display the status of the connection in my UI. Is there any properties of the JMS connection that states connection ...

How to receive multiple messages from an IBM MQ

Hi, I'm connecting to an IBM Websphere MQ and currently reading one message at a time using the method receive() from the object: javax.jms.Message; Is there a way to retrieve multiple messages from the queue in one go? Many thanks, G. ...

Extract messages from IBM Websphere MQ

Hi, How to extract messages from MQ(message queue)? Message format in my requirement is String type. Please advice some sites. ...

JMS transport v/s MQ transport

hi, I am using Oracle Service Bus(OSB) as the MOM, and the destination URI is a IBM MQ queue. I just want to know which would be the preferred transport. OSB provides 2 adapters for the same, JMS adapter and MQ adapter for transport. Does any one knows what are the PROS and CONS of the same. TIA ...

get 2035 on connecting to the base queue

Hi all, I am running a simple Java client to connect to a remote MQ queue. When I run the Java code to read write messages with Alias queue name, it works fine. When i try to run the code on the same queue but witha a physical queue name (Because i wish to invoke getQueueDepth), I get a 2035 error at the point when the code tries to...

We use IBM MQ6.1. Can we send messages to Queue using multi threading?

We use IBM MQ6.1. And use IBM API to send Messages to Queue. As we need to send huge number of messages, was wondering if we can use multithreading and send messages to the same Queue. Any suggestions? ...

Looking for C# code samples on how to use Syncpoints in WebSphere MQ

I develop in C# using MQ v.7 native API. I would like to use syncpoints to guarantee data consistency but can't find any code samples on how to use them. I will be using local units of work. OS is Windows. Can anyone share some links or code snippets on using Commit() and Backout() in C#? ...

Why My WebSphere MQ (on Windows) API Exit didn't record anything when I put messages through a client program based on Java?

Hi, all I wrote a API EXIT for WebSphere MQ 7 on Windows, when I put to or get from queue a simple message from command line like: "amqsput" or "amqsget", I would get some log files containing information like time, message data, queue name, etc. That's what I expect for my test program writen in Java, but when I used code below: MQMe...

MQQueueManager constructor hangs if Queue Manager is unavailable and transaction is used

I have an issue where the call the MQQueueManager constructor is hanging if the queue manager is down. I have a TransactionScope open with EnterpriseOptions.Full when I call the constructor to the MQQueueManager. If MQ is down though (or possibly attempts a connect as the QM goes down) then this call hangs. Even if the transaction exp...

How to convert a MQseries reason code to string?

How do i convert/lookup a reason code of IBM Websphere MQseries to its explanation (for logging etc)? ...

IBM Mq Message Header

Hi, I am sending messages to a remote queue, to which I have no control. I send a xml file as message but when the application reads the message it gets a message header like <mcd><Msd>jms_text</Msd></mcd> \0\0\0l<jms><Dst>queue:///TEST</Dst><Tms>1281475843707</Tms><Cid></Cid><Dlv>1</Dlv></jms> i don't want this message header to b...

How to get model queue name for a given dynamic queue (WebSphere MQ)?

I've got a model queue (say, MY.MODEL.QUEUE). I'm opening it in process A and get a dynamic queue created (say, AMQ.WHATEVER). I send a message to another queue, specifying AMQ.WHATEVER as a ReplyTo queue. Now, process B receives the message, and replies to the dynamic queue. However, in B I need to know what model queue AMQ.WHATEVER is...

Websphere MQ remote queue performance tracing

We have IBM websphere mq set up that accepts message from outside world and transmits message to another internal queue manager. I want to trace time taken for this activity per message. Is anyone aware of any tool or MQ feature? Thanks! ...

Accessing MQ with JMS

hi, i am using MQ7 and trying to access a queue with JMS api's. Getting this error. Has anyone seen it before? How do i resolve this? TIA Exception in thread "main" com.ibm.msg.client.jms.DetailedJMSException: JMSFMQ6312: An exception occurred in the Java(tm) MQI. The Java(tm) MQI has thrown an exception describing the problem. S...

PutApplicationName versus PutApplName

Just wanted to know what is the difference between the two fields putApplicationName field which is a part of the MQMessage class and putApplName which is a part of MQMD class. When to choose what? ...

MQ With WLS Foreign Server

hi, I am facing two issues when i try to connect to MQ which is deployed on a Remote Server from Weblogic Server(WLS) by creating a Foreign Server. 1. When I try to connect to MQ Queuemanager in Bindings mode(after importing the .Bindings file) i keep getting the below error in WLS console: java.lang.UnsatisfiedLinkError: no mqjbnd05...