|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
User Catalogs for Windows |
« View previous topic :: View next topic » |
Author |
Message
|
fazz |
Posted: Fri Feb 20, 2004 4:25 am Post subject: User Catalogs for Windows |
|
|
 Centurion
Joined: 20 Feb 2004 Posts: 144 Location: England
|
Hi,
I am trying to create a user catalog for a Windows broker. I have created a catalog on my Control Center with the values:
9000: USER9000: \
The world is coming to and end!! {0}. \n\nHELLLLLLLLLLLLP!! {1}.
I then throw an exception with the following statement :
THROW USER EXCEPTION CATALOG 'MyCatalog' MESSAGE 9000;
The message I get is :
(
(0x1000000)RecoverableException = (
(0x3000000)File = 'F:\build\S210_BP\src\DataFlowEngine\ImbComputeNode.cpp'
(0x3000000)Line = 453
(0x3000000)Function = 'ImbComputeNode::evaluate'
(0x3000000)Type = 'ComIbmComputeNode'
(0x3000000)Name = '29a465cd-fa00-0000-0080-eb10665d5444'
(0x3000000)Label = 'USER_ERROR.Throw User Error'
(0x3000000)Text = 'Caught exception and rethrowing'
(0x3000000)Catalog = 'WMQIv210'
(0x3000000)Severity = 3
(0x3000000)Number = 2230
(0x1000000)UserException = (
(0x3000000)File = 'F:\build\S210_BP\src\DataFlowEngine\ImbRdl\ImbRdlThrowExceptionStatements.cpp'
(0x3000000)Line = 160
(0x3000000)Function = 'SqlThrowExceptionStatement::execute'
(0x3000000)Type = 'ComIbmComputeNode'
(0x3000000)Name = '29a465cd-fa00-0000-0080-eb10665d5444'
(0x3000000)Label = 'USER_ERROR.Throw User Error'
(0x3000000)Text = 'User Generated SQL 'USER' exception'
(0x3000000)Catalog = 'MyCatalog'
(0x3000000)Severity = 1
(0x3000000)Number = 9000
)
)
)
I was expecting to see the parameters {0} and {1} in an 'Insert' section off the message.
The Broker is running on another Windows machine, does the catalog need to be on this machine as well?
I have read the 'Programming guide' and this talks about creating a dll for the User Event Log, but all I need to do is log to a file. Any ideas?
Thanks
fazz |
|
Back to top |
|
 |
fschofer |
Posted: Fri Feb 20, 2004 7:25 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
Try this:
THROW USER EXCEPTION CATALOG 'MyCatalog' MESSAGE 9000
VALUES ('text1', 'text2');
These to values will be inserted into your message like
The world is coming to and end!! text1. \n\nHELLLLLLLLLLLLP!! text2.
Greetings
Frank |
|
Back to top |
|
 |
fazz |
Posted: Mon Feb 23, 2004 1:52 am Post subject: |
|
|
 Centurion
Joined: 20 Feb 2004 Posts: 144 Location: England
|
Hi Frank,
I have tried this but all I get are the values I pass when I throw the exception i.e. text1 and text2.
Think I'm going to just use the WMQIv210 catalog, thanks for your help.
Fazz. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|