Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I have found your site brilliant. What makes it good are the people that contribute to the site..."

Geography

Where in the world do Tek-Tips members come from?
lpjseeth (Programmer)
26 Mar 03 15:12
I would like to republish from JMS journal (and archive) based on content of the message. Only command availabe to see the content of a topic is to run following command for every message in the queue.
stcmsctrlutil -host stcdev -port 30090 -j -gtm  et_queueOut <seq num>
Running a script to dump all messages into a file and search is very slow.
Is there any way to do dump of all messages or to do a search on all messages in the queue? (code samples are useful)

thanks
Jay
RFC01 (Programmer)
10 Apr 03 11:04
Jay,

we had the same problem. Not knowing which message number a specific message had. So we used a batch script to retrieve all messages from the JMS Queue. Then check the messages for the right one. The NT script uses the same command as you within a loop.

What you can try (this requires programming) is to make your own "Queue search" application using the e*Gate API Kit. Then you can have full control over the queues.
I have done some testing and I am able to do something but not all. So I do not have anythng available for you.
We use 4.5.3 at the moment.
Good luck.
Madere.

agmick (Programmer)
24 Aug 04 13:04
I'm sure this is dated, but here is how you dump the entire IQ.  Did either of you have any luck with the e*Gate API?  I'm currently having issues with it.  Any help would be appreciated.

How to dump and reload an IQ.  

**Note to use the –backup function with stcmsctrlutil you must have journaling on the iqmgr.

Dump:

stcmsctrlutil -backup <archive.zip> <"date"> -port <iqmgr port number> -host <registry host>

stcmsctrlutil -backup C:\IQBackup\GenericIqmgr.zip "04/14/2004" -port 24054 –host prw2kt12

This will create a zip file with 2 files inside it.  

One *.dbs and one *.ndx file.

Viewing what you dumped:

To see a list of topics that were dumped:
C:\>stcmsctrlutil -ar C:\IQtest\backup  -port 24054 -host mhanna -tl
Number Of Topic(s): 1
Topic List:
        GenericInJava

To see information about the topic that you dumped:

C:\>stcmsctrlutil -ar C:\IQtest\backup  -port 24054 -host mhanna -ts GenericInJa
va
Topic Name: GenericInJava
First sequence number: 0
Last sequence number: 1383
First enqueue time: 04142004:17:11:19
Last enqueue time: 04142004:17:02:36
Number of current subscribers: 0
Number of total subscribers: 0
Message count: 1384
Lowest subscriber sequence: 0
Highest subscriber sequence: 0

To Reload what you dumped:
Stcmsctrlutil –ar <location of archive> -port <port> -host <registry host> -tim <topic name> <starting sequence number> <number of messages to import>

stcmsctrlutil -ar C:\IQtest\backup  -port 24054 –host mhanna -tmi GenericInJava 0 25
Importing messages
Last imported sequence number = 11
Last imported sequence number = 20
Last imported sequence number = 25  

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close