How a .NET application determines what channel definition to use
2012-04-28 01:38
399 查看
How a .NET application determines what channel definition to use
In the WebSphere® MQ .NET client environment, the channel definition to be used can be specified in a number of different ways. Multiple specifications of the channel definition can exist. An application derivesthe channel definition from one or more sources.
If more than one channel definition exists, the one used is selected in the following priority order:
Properties specified on the MQQueueManager constructor, either explicitly or by includingMQC.CHANNEL_PROPERTY in the properties hashtable
A property MQC.CHANNEL_PROPERTY in the MQEnvironment.properties hashtable
The property Channel in MQEnvironment
The .NET application configuration file, section name CHANNELS, key ServerConnectionParms (applies to managed connections only)
The MQSERVER environment variable
The client configuration file, stanza CHANNELS, Attribute ServerConnectionParms
The client channel definition table (CCDT). The location of the CCDT is specified in the .NET application configuration file (applies to managed connections only)
The client channel definition table (CCDT). The location of the CCDT is specified using the environment variables MQCHLLIB and MQCHLTAB
The client channel definition table (CCDT). The location of the CCDT is specified using the client configuration file
For items 1-3, the channel definition is built up field by field from values provided by the application. These values can be provided using different interfaces and multiple values can exist for each one. Field values
are added to the channel definition following the priority order given:
The value of connName on the MQQueueManager constructor
Values of properties from the MQQueueManager.properties hashtable
Values of properties from the MQEnvironment.properties hashtable
Values set as MQEnvironment fields (for example, MQEnvironment.Hostname, MQEnvironment.Port)
For items 4-6, the entire channel definition is supplied as the value. Unspecified fields on the channel definition take the system defaults. No values from other methods of defining channels and their fields are merged
with these specifications.
For items 7-9, the entire channel definition is taken from the CCDT. Fields which were not specified explicitly when the channel was defined take the system defaults. No values from other methods of defining channels and
their fields are merged with these specifications.
Parent topic: Writing
and deploying WebSphere MQ .NET programs
相关文章推荐
- How to use an ASP.NET application to query an Indexing Service catalog by using Visual Basic .NET
- How to use .NET Windows Control into the WPF Application
- How to use AspnetUpload™ in your web application
- How to set an IIS Application or AppPool to use ASP.NET 3.5 rather than 2.0
- How to set an IIS Application or AppPool to use ASP.NET 3.5 rather than 2.0
- How to Use the Visual Studio .NET Application Center Test
- How to use Asp.Net Mvc ActionFilterAttribute for form authentication
- Introduction to COM - What It Is and How to Use It.(ZT)
- 802.11 WDS how does it work, when to use it and what are the limitations
- HOW TO Analyze ASP.NET Web Application Performance by Using the Performance Administration Tool
- c# web应用发布,遇到错误 It is an error to use a section registered as allowDefinition='MachineToApplication'
- how to use javascript to control the usercotrol in the asp.net
- What and How to use JSF
- Kernel Korner - Why and How to Use Netlink Socket
- 部署asp.net时产生“分析器错误:在应用程序级别以外使用注册为 allowDefinition='MachineToApplication' 的节是错误的...”
- Why and How to Use Netlink Socket
- How to use .net Remoting
- How to Reference and Use JSTL in your Web Application
- How to use Console.WriteLine in ASP.Net (C#) during debug?
- How to launch Windows applications (Notepad) / Call Batch files from a C#/.NET console application.