We bS ph ere M Q
Using Java
SC34-6066-00
We bS ph ere M Q
Using Java
SC34-6066-00
Note!
Before using this information and the product it supports, be sure to read the general information under Appendix J,
“Notices” on page 441.
First edition (June 2002)
This edition applies to IBM
®
WebSphere
®
MQ classes for Java
™
Version 5.3 and WebSphere MQ classes for Java
Message Service Version 5.3, and to any subsequent releases and modifications until otherwise indicated in new
editions.
© Copyright International Business Machines Corporation 1997, 2002. All rights reserved.
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract
with IBM Corp.
Contents
Figures ...............ix
Tables ...............xi
About this book ..........xiii
Abbreviations used in this book .......xiii
Who this book is for ...........xiii
What you need to know to understand this book xiii
How to use this book ...........xiv
Summary of changes ........xv
Changes for this edition (SC34-6066-00) .....xv
Part 1. Guidance for users .....1
Chapter 1. Getting started .......3
What are WebSphere MQ classes for Java? ....3
What are WebSphere MQ classes for Java Message
Service? ................3
Who should use WebSphere MQ Java?......3
Connection options ............4
Client connection ............5
Bindings connection ...........5
Prerequisites ..............6
Chapter 2. Installation.........7
What is installed .............7
Installation directories ..........8
Environment variables ..........8
Web server configuration ..........10
Running WebSphere MQ Java applications under
the Java 2 Security Manager .........10
Chapter 3. Using WebSphere MQ
classes for Java (WebSphere MQ base
Java) ...............13
Configuring your queue manager to accept client
connections ..............13
TCP/IP client.............13
Verifying with the sample application .....14
Running your own WebSphere MQ base Java
programs...............15
Solving WebSphere MQ base Java problems . . . 15
Tracing the sample application .......15
Errormessages............16
Chapter 4. Using WebSphere MQ
classes for Java Message Service
(WebSphere MQ JMS) ........17
JMS Postcard ..............17
Setting up JMS Postcard .........17
Starting...............17
Signon ...............18
Sending a postcard ...........18
JMS Postcard configuration ........20
How JMS Postcard works ........20
Post installation setup ...........23
Additional setup for publish/subscribe mode . . 24
Queues that require authorization for
non-privileged users ..........26
Using the sample JMS applet to verify the TCP/IP
client ................27
Using the sample applet with OS/400 ....27
Running the sample applet ........27
Running the point-to-point IVT........28
Point-to-point verification without JNDI ....29
Point-to-point verification with JNDI .....30
IVTerrorrecovery...........31
The publish/subscribe installation verification test 32
Publish/subscribe verification without JNDI . . 32
Publish/subscribe verification with JNDI . . . 34
PSIVTerrorrecovery..........35
Running your own WebSphere MQ JMS programs 35
Solvingproblems............36
Tracingprograms...........36
Logging ..............36
Chapter 5. Using the WebSphere MQ
JMS administration tool .......39
Invoking the Administration tool .......39
Configuration .............40
Using an unlisted InitialContextFactory ....41
Security ..............41
Configuring for WebSphere Application Server
V3.5................42
Administration commands .........42
Manipulatingsubcontexts .........43
Administering JMS objects .........43
Object types .............43
Verbs used with JMS objects ........45
Creating objects ............45
Properties ..............46
Property dependencies .........51
SSL properties ............53
Sampleerrorconditions.........54
Part 2. Programming with
WebSphere MQ base Java .....55
Chapter 6. Introduction for
programmers ............57
Why should I use the Java interface? ......57
The WebSphere MQ classes for Java interface . . . 58
JavaDevelopmentKit...........58
WebSphere MQ classes for Java class library . . . 59
© Copyright IBM Corp. 1997, 2002 iii
||
||
||
||
||
||
|
||
||
||
||
||
||
||
||
||
- 1
- 2
前往页