Contents

Figures
About this book
Who this book is for
Where to find more information about ActiveX
Introduction
WebSphere MQ Automation Classes for ActiveX overview
COM and ActiveX scripting
WebSphere MQ environment support
Designing and programming using WebSphere MQ Automation Classes for ActiveX
Designing MQAX applications that access non-ActiveX applications
Using WebSphere MQ Automation Classes for ActiveX
Programming hints and tips
Message Descriptor properties
WebSphere MQ constants
WebSphere MQ string constants
Null string constants
Receiving a message from WebSphere MQ
Using data conversion
Numeric encoding
Character set conversion
Threading
Error handling
How error handling works
Getting a property
WebSphere MQ Automation Classes for ActiveX reference
WebSphere MQ Automation Classes for ActiveX interface
About WebSphere MQ Automation Classes for ActiveX classes
Parameter passing
MQSession Class
Creation
CompletionCode property
ExceptionThreshold property
ReasonCode property
ReasonName property
AccessGetMessageOptions method
AccessMessage method
AccessPutMessageOptions method
AccessQueueManager method
ClearErrorCodes method
ReasonCodeName method
MQQueueManager class
Containment
AlternateUserId property
AuthorityEvent property
BeginOptions property
ChannelAutoDefinition property
ChannelAutoDefinitionEvent property
ChannelAutoDefinitionExit property
CharacterSet property
CloseOptions property
CommandInputQueueName property
CommandLevel property
CompletionCode property
ConnectionHandle property
ConnectionStatus property
ConnectOptions property
DeadLetterQueueName property
DefaultTransmissionQueueName property
Description property
DistributionLists property
InhibitEvent property
IsConnected property
IsOpen property
LocalEvent property
MaximumHandles property
MaximumMessageLength property
MaximumPriority property
MaximumUncommittedMessages property
Name property
ObjectHandle property
PerformanceEvent property
Platform property
ReasonCode property
ReasonName property
RemoteEvent property
StartStopEvent property
SyncPointAvailability property
TriggerInterval property
AccessQueue method
AddDistributionList method
Backout method
Begin method
ClearErrorCodes method
Commit method
Connect method
Disconnect method
MQQueue class
Containment
AlternateUserId property
BackoutRequeueName property
BackoutThreshold property
BaseQueueName property
CloseOptions property
CompletionCode property
ConnectionReference property
CreationDateTime property
CurrentDepth property
DefaultInputOpenOption property
DefaultPersistence property
DefaultPriority property
DefinitionType property
DepthHighEvent property
DepthHighLimit property
DepthLowEvent property
DepthLowLimit property
DepthMaximumEvent property
Description property
DynamicQueueName property
HardenGetBackout property
InhibitGet property
InhibitPut property
InitiationQueueName property
IsOpen property
MaximumDepth property
MaximumMessageLength property
MessageDeliverySequence property
Name property
ObjectHandle property
OpenInputCount property
OpenOptions property
OpenOutputCount property
OpenStatus property
ProcessName property
QueueManagerName property
QueueType Property
ReasonCode property
ReasonName property
RemoteQueueManagerName property
RemoteQueueName property
ResolvedQueueManagerName property
ResolvedQueueName property
RetentionInterval property
Scope property
ServiceInterval property
ServiceIntervalEvent property
Shareability property
TransmissionQueueName property
TriggerControl property
TriggerData property
TriggerDepth property
TriggerMessagePriority property
TriggerType property
Usage property
ClearErrorCodes method
Close method
Get method
Open method
Put method
MQMessage class
Containment
CompletionCode property
DataLength property
DataOffset property
MessageLength property
ReasonCode property
ReasonName property
AccountingToken property
AccountingTokenHex property
ApplicationIdData property
ApplicationOriginData property
BackoutCount property
CharacterSet property
CorrelationId property
CorrelationIdHex property
Encoding property
Expiry property
Feedback property
Format property
GroupId property
GroupIdHex property
MessageData property
MessageFlags property
MessageId property
MessageIdHex property
MessageSequenceNumber property
MessageType property
Offset property
OriginalLength property
Persistence property
Priority property
PutApplicationName property
PutApplicationType property
PutDateTime property
ReplyToQueueManagerName property
ReplyToQueueName property
Report property
TotalMessageLength property
UserId property
ClearErrorCodes method
ClearMessage method
Read method
ReadBoolean method
ReadByte method
ReadDecimal2 method
ReadDecimal4 method
ReadDouble method
ReadDouble4 method
ReadFloat method
ReadInt2 method
ReadInt4 method
ReadLong method
ReadNullTerminatedString method
ReadShort method
ReadString method
ReadUInt2 method
ReadUnsignedByte method
ReadUTF method
ResizeBuffer method
Write method
WriteBoolean method
WriteByte method
WriteDecimal2 method
WriteDecimal4 method
WriteDouble method
WriteDouble4 method
WriteFloat method
WriteInt2 method
WriteInt4 method
WriteLong method
WriteNullTerminatedString method
WriteShort method
WriteString method
WriteUInt2 method
WriteUnsignedByte method
WriteUTF method
MQPutMessageOptions class
Containment
CompletionCode property
Options property
ReasonCode property
ReasonName property
RecordFields property
ResolvedQueueManagerName property
ResolvedQueueName property
ClearErrorCodes method
MQGetMessageOptions class
Containment
CompletionCode property
MatchOptions property
Options property
ReasonCode property
ReasonName property
ResolvedQueueName property
WaitInterval property
ClearErrorCodes method
MQDistributionList class
Properties:
AlternateUserId property
CloseOptions property
CompletionCode property
ConnectionReference property
FirstDistributionListItem property
IsOpen property
OpenOptions property
ReasonCode property
ReasonName property
AddDistributionListItem method
ClearErrorCodes method
Close method
Open method
Put method
MQDistributionListItem class
Properties:
AccountingToken property
AccountingTokenHex property
CompletionCode property
CorrelationId property
CorrelationIdHex property
DistributionList property
Feedback property
GroupId property
GroupIdHex property
MessageId property
MessageIdHex property
NextDistributionListItem property
PreviousDistributionListItem property
QueueManagerName property
QueueName property
ReasonCode property
ReasonName property
ClearErrorCodes method
Troubleshooting
Code level tool
Example output file from code level tool
Using trace
Trace filename and directory
Example trace file
When your WebSphere MQ Automation Classes for ActiveX script fails
First failure symptom report
Other sources of information
Reason codes
ActiveX interface to the MQAI
The MQBag class
MQBag properties
Item property
Count property
Options property
MQBag methods
Add method
AddInquiry method
Clear method
Execute method
FromMessage method
ItemType method
Remove method
Selector method
ToMessage method
Truncate method
Error handling
Using the Active Directory Service Interfaces (ADSI)
Prerequisites
Troubleshooting
The WebSphere MQ namespace and object hierarchy
Accessing WebSphere MQ objects using COM or URL addresses
C++ Language invocation
Structuring WebSphere MQ COM and URL addresses
Accessing WebSphere MQ objects using enumeration
C++ Language invocation
Configuring WebSphere MQ Active Directory objects
Object descriptions
WebSphere MQ
MQHost
MQQueueManager
Schema
MQClntConnChannel
MQClusterReceiverChannel
MQClusterSenderChannel
MQReceiverChannel
MQRequesterChannel
MQSenderChannel
MQServerChannel
MQSvrConnChannel
MQProcess
MQAliasQueue
MQClusterQueue
MQLocalQueue
MQModelQueue
MQRemoteQueue
Appendix A. About the WebSphere MQ Automation Classes for ActiveX Starter samples
What is demonstrated in the samples
Preparing to run the samples
Error handling in the samples
Running the ActiveX Starter samples
MQAX Starter samples for Microsoft Visual Basic Version 4 or later
Starting the MQAXCLSS sample
The MQAXDLST sample
MQAX Starter sample for Microsoft Excel 95 or later
Starter sample using an ActiveX compatible WWW browser
Appendix B. Notices
Index