ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problem in defining Userdefined Exception Catalog.

Post new topic  Reply to topic
 Problem in defining Userdefined Exception Catalog. « View previous topic :: View next topic » 
Author Message
sarathsps
PostPosted: Tue Jun 20, 2006 2:57 pm    Post subject: Problem in defining Userdefined Exception Catalog. Reply with quote

Novice

Joined: 04 May 2006
Posts: 19

Hi All,

I am using MB5.0 and i am trying refer a message catlog for userdefined exceptions. The i followed the bellow steps given in the IBM site

------------------------------------------------------------------
1.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

Where c:\mymessages is the path and directory for the output files and mymsg.mc is the name of the input file.

The message compiler produces an output header (.h) file which contains symbolic #defines that map to each message number coded in the input.mc file. This header file must be included when compiling a user-defined extension source file that uses the CciLog utility function to write an event message you have defined. The messageNumber argument to CciLog must use the appropriate value hash-defined in the output header file.

Compile the output file (.rc) from the message compiler to create a resource (.res) file by issuing the command:
RC /v <filename>.rc
Create a resource DLL using the .res file by issuing the command:
LINK /DLL /NOENTRY <filename>.res
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".

------------------------------------------------------------------

Please find the contents of the .mc file bellow.

; // ***** 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)


; // The following are message definitions.

MessageId=3001
Severity=Error
Facility=Runtime
SymbolicName=MSG_INVALID_BUSFUN
Language=English
INVALID BUSINESS FUNCTION
.

------------------------------------------------------------

I have created properties file sample.properties and placed on the path
C:\Program Files\IBM\WebSphere Business Integration Message Brokers\Messages

The content of sample.properties file is
3001: MSG_INVALID_BUSFUN: \ INVALID MESSAGE FORMAT FOR DATA UPSYNC FROM GMS ITEM.


in the broker ESQL i am invoking using the stmt
THROW USER EXCEPTION CATALOG 'sample' MESSAGE 3001 ;

The Problem is i am not able get the exception message from the catalog.

Please advise if i have missed some thing.

Please help .

Thanks, Partha
Back to top
View user's profile Send private message
jboller001
PostPosted: Thu Jul 20, 2006 9:39 am    Post subject: Reply with quote

Apprentice

Joined: 31 May 2006
Posts: 40

Were you able to get this working?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problem in defining Userdefined Exception Catalog.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.