Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQSeries & Creating Temporary Dynamic Queues

Status
Not open for further replies.

DrDrew

Programmer
Jun 24, 2002
8
US
I am running MQSeries 5.1 on a Windows NT box. Using MQSeries Automation Classes for ActiveX (MQAX) in VBScript (in an ASP file), I am trying to create a temporary dynamic queue (using a model queue that is set to create temporary instead of permanent dynamic queues). When I open the temp dynamic queue, I get no error messages and it appeard to be created correctly. However, the queue does not show up in MQSeries Explorer and if I try to write to it it tells me the queue does not exist. Is the temp dynamic queue being created then closed really fast or do temp dyanmic queues behave differently than other queues and are not visible until a certain event takes place? I have done some work with permanent dynamic queues and have not run into any problems like this, everything works smoothly. Any ideas or suggestions on what could be wrong?

Thanks,
DrDrew
 
A temporary dynamic queue will last until it is closed at which point it is deleted. Assuming that your program doesn't close it straight away, you should be able to see it in MQ Explorer.

I haven't used VB with MQ (or at all!) but assuming it works the same way as all of the other languages, you need to set the ObjectName field of the ObjectDescriptor with the Model Queue, do the MQOPEN, and if that's successful, you can retrieve the name of the queue it created from the ObjectName field, which will have overwritten the Model Queue name.

Cheers,
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top