×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

JMS queue

JMS queue

JMS queue

(OP)
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

RE: JMS queue

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.

RE: JMS queue

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  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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! Already a Member? Login

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