Posted: Tue Aug 19, 2003 10:15 am Post subject: Archive MQ Message into file system
Novice
Joined: 17 Jun 2002 Posts: 10
Hi,
I have an MQSeries Queue manager (V5.2.1) running on a Sun OS. We have a Java application listening to a Queue and we want to archive these messages (XMLs) into a file system before they are picked up by the Java application. We have a limitation where we can not modify the java application. So any direction how to handle this from MQSeries itself ?
Theres point if mq lets you archive your messages.that should be done in you application.If you cant change the existing application , try using a mirror queue and write a program that feeds of that mirror queue and records your messages.
You can code an API Exit to accomplish what you are trying to do. I believe the API Exit is supported on solaris as of CSD04 on 5.2. For sure it is at the latest level which now is CSD07.
You will need to write an "MQGET before" function and register it. In this function you can do your writes to file. This function will be called by MQ prior to the GET by your java application. API Exits can only be written in C. You can find a sample, amqsaxe0.c in /opt/mqm/samp.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum