|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to define User Defined Catalog in WMB v6? --- VIP !! |
« View previous topic :: View next topic » |
Author |
Message
|
neerav |
Posted: Mon Jul 24, 2006 9:37 am Post subject: How to define User Defined Catalog in WMB v6? --- VIP !! |
|
|
Novice
Joined: 31 May 2006 Posts: 22
|
Hello IBM Experts !
We are looking at creating user defined exception catalog.
What are the steps that need to be followed for creating user defined MbException catalog.
Please do respond.
Help !!
Regards,
Neerav |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jul 24, 2006 9:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
neerav |
Posted: Mon Jul 24, 2006 2:10 pm Post subject: |
|
|
Novice
Joined: 31 May 2006 Posts: 22
|
This is what i am getting in the output.
*****************
C:\>mc.exe -v -w -s -h c:\temp -r c:\temp excpMsgIn.mc
Usage: mc [flags] [this_dir] [other_panel_dir]
-h, --help Displays this help message
-V, --version Displays the current version
-x, --xterm Forces xterm features
-d, --nomouse Disable mouse support in text version
-k, --resetsoft Resets soft keys on HP terminals
-s, --slow To run on slow terminals
-a, --stickchars Use stickchars to draw
-b, --nocolor Requests to run in black and white
-c, --color Request to run in color mode
-C, --colors=ARG Specifies a color configuration
-H, --help-colors Displays a help screen on how to change the color sch
-l, --ftplog=ARG Log ftp dialog to specified file
-f, --datadir Print data directory
-P, --printwd=ARG Print last working directory to specified file
-U, --subshell Enables subshell support (default)
-u, --nosubshell Disables subshell support
-v, --view=ARG Launches the file viewer on a file
-e, --edit=ARG Edits one file
+number Set initial line number for the internal editor
*****************
Also,
Quote: |
To create an event source for the Windows Event Log Service:
Create a message compiler input (.mc) file with the source for your event messages. Refer to the Microsoft website, http://msdn.microsoft.com, and search on .mc file for details on the format of this input file.
Compile this message file, to create a resource compiler input file, by issuing the command:
mc -v -w -s -h c:\mymessages -r c:\mymessages mymsg.mc
|
How do i fit the BIPv600.properties pattern of :
***********************
2001: BIP2001I: \
The WebSphere Message Brokers service has started at version {1}; process ID {0}. \n\nThe WebSphere Message Brokers service executable has been started. \n\nNo user action required.
***********************
Fit into the pattern of mymsg.mc as
Quote: |
; // ***** Sample.mc *****
; // This is the header section.
MessageIdTypedef=DWORD
SeverityNames=(Success=0x0:STATUS_SEVERITY_SUCCESS
Informational=0x1:STATUS_SEVERITY_INFORMATIONAL
Warning=0x2:STATUS_SEVERITY_WARNING
Error=0x3:STATUS_SEVERITY_ERROR
)
FacilityNames=(System=0x0:FACILITY_SYSTEM
Runtime=0x2:FACILITY_RUNTIME
Stubs=0x3:FACILITY_STUBS
Io=0x4:FACILITY_IO_ERROR_CODE
)
LanguageNames=(English=0x409:MSG00409)
LanguageNames=(Japanese=0x411:MSG00411)
; // The following are message definitions.
MessageId=0x1
Severity=Error
Facility=Runtime
SymbolicName=MSG_BAD_COMMAND
Language=English
You have chosen an incorrect command.
.
Language=Japanese
.
|
Now,
1. How and to which section of Sample.mc i'd give my custom ERROR Number.
2. How and to which section of sample.mc i'd give my custom message, its severity.
3. How would i get the acceptable syntax of MC.exe so as to create an output for the intermediate step of the creation of User Defined Catalog.
Appreciating your detailed solution.
Thanks jeff
-Neerav |
|
Back to top |
|
 |
neerav |
Posted: Mon Jul 24, 2006 2:22 pm Post subject: |
|
|
Novice
Joined: 31 May 2006 Posts: 22
|
You may igonre this output as it wasn't of the Windows MC.exe
Quote: |
*****************
C:\>mc.exe -v -w -s -h c:\temp -r c:\temp excpMsgIn.mc
Usage: mc [flags] [this_dir] [other_panel_dir]
-h, --help Displays this help message
-V, --version Displays the current version
-x, --xterm Forces xterm features
-d, --nomouse Disable mouse support in text version
-k, --resetsoft Resets soft keys on HP terminals
-s, --slow To run on slow terminals
-a, --stickchars Use stickchars to draw
-b, --nocolor Requests to run in black and white
-c, --color Request to run in color mode
-C, --colors=ARG Specifies a color configuration
-H, --help-colors Displays a help screen on how to change the color sch
-l, --ftplog=ARG Log ftp dialog to specified file
-f, --datadir Print data directory
-P, --printwd=ARG Print last working directory to specified file
-U, --subshell Enables subshell support (default)
-u, --nosubshell Disables subshell support
-v, --view=ARG Launches the file viewer on a file
-e, --edit=ARG Edits one file
+number Set initial line number for the internal editor
*****************
|
However, please respond to us for the other questions. |
|
Back to top |
|
 |
neerav |
Posted: Tue Jul 25, 2006 9:46 am Post subject: Steps followed for User Defined Catalog; but broker fails!!! |
|
|
Novice
Joined: 31 May 2006 Posts: 22
|
Okay, now the DLL is ready. FYI: MC.exe was not available in my windows installation, so had to download Windows Platform SDK from microsoft's website.
Quote: |
To install the event source into the Windows Event Log Service:
Start the Windows Registry Editor by issuing the command:
regedit
Create a new registry subkey for your user-defined extension under the existing structure defined in:
HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Services
EventLog
Application
Right-click on Application and select New->Key. The new key is created immediately under the Application key (not under the WebSphere Message Broker key). You must give the key the name that you specify on the messageSource parameter of the CciLog invocation.
You must create the following values for this entry:
The EventMessageFile String value must contain the fully qualified path for the .dll you have created to contain your messages. This is the message catalog used by CciLog.
The TypesSupported DWORD value must contain the value "7". |
We have done all this. However, the broker DOES NOT recognize the User Defined Exception Catalog created by us after taking all the pains mentioned in the documentation. Somehow this makes me feel that its "only BIPv600" accepted by broker as its Catalog. Is this true?
Jefflowrey : Can you and other IBM experts help in this? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jul 25, 2006 9:58 am Post subject: Re: Steps followed for User Defined Catalog; but broker fail |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
neerav wrote: |
Jefflowrey : Can you and other IBM experts help in this?
|
I haven't done this. Well, not with Broker at least.
You tried restarting broker after configuring registry entry and etc?
I'd suggest opening a PMR. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
neerav |
Posted: Tue Jul 25, 2006 10:15 am Post subject: |
|
|
Novice
Joined: 31 May 2006 Posts: 22
|
Hi Jefflowrey,
Thanks for providing us directions.
Yes, we did restart machine as well as the broker.
Basically we need to categorize Technical v/s Business Exceptions based on the catalog.
Somehow we have this urge of not using the same catalog (BIPv600) for our Business as well as Technical exceptions.
Thus, all the efforts.
Appreciating your suggestions.
Regards,
Neerav |
|
Back to top |
|
 |
wbibrk |
Posted: Tue Aug 01, 2006 6:39 pm Post subject: |
|
|
Apprentice
Joined: 09 Jul 2005 Posts: 46
|
Hi Neerav,
Do you wish to use this catalog being used from a C/C++ plugin / Java Plugin / compute node?
If it is C/C++ plugin, you will need to use CciLog method. If it is Java plugins use the resource bundles (you would not need dll files) and if you want to throw an exception from compute node use THROW USER EXCEPTION statement |
|
Back to top |
|
 |
neerav |
Posted: Sun Aug 06, 2006 6:00 am Post subject: |
|
|
Novice
Joined: 31 May 2006 Posts: 22
|
I want to raise user exceptions under a specific catalog (not BIPv600). For this, I am using MbUserExceptions class.
This means that I want to have the ExceptionList tree contain its Catalog as say ABCDx9987 (and not BIPv600). However, what the broker is doing is, its NOT updating its Catalog to the custom defined one. Rather, its raising an 'Unhandled exception' under the catalog BIPv600.
BUT THIS IS POSSIBLE USING ESQL COMPUTE NODE and NOT THRU JAVA COMPUTE NODE. So i think that either there is a step being missed by me to create a Custom Catalog or the broker isn't behaving the way it should ( MbUserException API should ) |
|
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
|
|
|
|