• No results found

WebSphere MQ for AIX. Quick Beginnings GC

N/A
N/A
Protected

Academic year: 2021

Share "WebSphere MQ for AIX. Quick Beginnings GC"

Copied!
74
0
0

Loading.... (view fulltext now)

Full text

(1)

WebSphere

MQ

for

AIX

Quick

Beginnings

Version

5.3

GC34-6076-02

(2)
(3)

WebSphere

MQ

for

AIX

Quick

Beginnings

Version

5.3

GC34-6076-02

(4)

Note!

Beforeusingthisinformationandtheproductitsupports,besuretoreadthegeneralinformationunder“Notices”onpage 53.

Thirdedition(May2004)

ThiseditionappliestoWebSphereMQforAIX,V5.3,andtoallsubsequentreleasesandmodificationsuntil otherwiseindicatedinneweditions.

(5)

Contents

Tables

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. v

Welcome

to

WebSphere

MQ

for

AIX

.

. vii

Roadmap. . . vii

Conventions . . . vii

What’s

new

in

WebSphere

MQ

for

AIX,

Version

5

Release

3

.

.

.

.

.

.

.

.

. ix

Chapter

1.

Planning

to

install

WebSphere

MQ

for

AIX

.

.

.

.

.

.

.

. 1

Hardwarerequirements. . . 1

Diskstorage . . . 1

Prerequisitesoftware . . . 2

Operatingsystem. . . 2

Connectivity . . . 2

SSL(SecureSocketsLayer). . . 2

Optionalsoftware. . . 2 Compilers . . . 2 Transactionmonitors . . . 3 Databases . . . 3 DCE . . . 3 Java . . . 3 Delivery. . . 4 WebSphereMQcomponents . . . 4 Server . . . 4 Client. . . 5 Documentation . . . 5 Filesets . . . 6 readmefile. . . 7

Chapter

2.

Preparing

to

install

WebSphere

MQ

for

AIX

.

.

.

.

.

.

.

. 9

Preparingforinstallation . . . 9

CreatingWebSphereMQfilesystems . . . 9

SettinguptheuserIDandgroup . . . 10

Migratingfromanearlierversion . . . 11

Changestotheinstallationpath . . . 11

POSIXstandardthreadinglibrary . . . 12

Creatingthesystemdefaultobjects . . . 12

Clientapplications . . . 12

EXTSHM-ExtendedSharedMemorymodel . . . 13

Nationallanguageconsiderations . . . 13

Displayingmessagesinyournationallanguage 13 Nationallanguagesupportformanuals . . . . 14

Chapter

3.

Installing

the

WebSphere

MQ

for

AIX

server

.

.

.

.

.

.

.

.

.

. 15

Installationprocedure. . . 15

Easyinstallation. . . 15

Custominstallation. . . 16

Nationallanguageinstallation . . . 17

Remoteinstallation. . . 18

ReinstallingWebSphereMQforAIX . . . 18

Migratingfromanearlierversion . . . 18

Migratingauthorizationdata . . . 19

SettingthequeuemanagerCCSID. . . 20

Userexits . . . 21

Chapter

4.

Verifying

the

server

installation

.

.

.

.

.

.

.

.

.

.

.

.

. 23

Verifyingalocalinstallation. . . 23

Settinguptheinstallation . . . 23

Testingtheinstallation. . . 24

Verifyingaserver-to-serverinstallation . . . 24

Settingupthesenderworkstation. . . 25

Settingupthereceiverworkstation . . . 26

Testingcommunicationbetweentheworkstations 26 VerifyingtheinstallationusingtheJMSPostcard application . . . 28

SettingupyoursystemtoruntheJMSPostcard 28 UsingtheJMSPostcardapplicationtoverifya localinstallation. . . 29

UsingthePostcardapplicationtoverifya server-to-serverinstallation . . . 31

Chapter

5.

Installing

the

WebSphere

MQ

for

AIX

client

.

.

.

.

.

.

.

.

.

. 33

Installationprocedure. . . 33

Easyinstallation. . . 34

Custominstallation. . . 34

Nationallanguageinstallation . . . 35

MigratingtoandfromtheWebSphereMQSSL support. . . 35

Migratingfromanearlierversion . . . 35

Installingtheclientonthesamemachineasaserver 36

Chapter

6.

Verifying

the

client

installation

.

.

.

.

.

.

.

.

.

.

.

.

. 37

Verifyingtheinstallation . . . 37

Settinguptheserverworkstation . . . 37

Settinguptheclientworkstation . . . 38

Testingcommunicationbetweentheworkstations 39

Chapter

7.

WebSphere

MQ

documentation

.

.

.

.

.

.

.

.

.

.

. 41

Hardcopybooks. . . 41

Onlineinformation. . . 42

Publicationssuppliedwiththeproduct . . . . 42

HTMLandPDFbooksontheWorldWideWeb 43 Onlinehelp . . . 43

SupportPacs . . . 43

WebSphereMQnewsgroups. . . 43

Whitepapersandmigrationdocuments . . . . 43

Servicesupportsummary(PTFreadmes) . . . 43

(6)

Chapter

8.

Applying

maintenance

to

WebSphere

MQ

for

AIX

.

.

.

.

.

.

.

. 45

InstallingaPTF . . . 45

Restoringthepreviousservicelevel . . . 46

Chapter

9.

Uninstalling

WebSphere

MQ

for

AIX

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 47

Uninstallationprocedure . . . 47

RemovingtheWebSphereMQInternetGateway . . 47

Chapter

10.

Code

sets

supported

by

WebSphere

MQ

for

AIX

.

.

.

.

.

.

.

. 49

Migratingtoeurosupport . . . 50

Notices

.

.

.

.

.

.

.

.

.

.

.

.

.

. 53

Trademarks . . . 54

Index

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 57

(7)

Tables

1. Gettingstartedroadmap. . . vii

2. Filesetsandcomponents . . . 6

3. ExamplesofsettingtheCCSID . . . 20

4. WebSphereMQfamilybooks . . . 41

5. LocalesandCCSIDsforAIX. . . 49

(8)
(9)

Welcome

to

WebSphere

MQ

for

AIX

ThisbookdescribesWebSphereMQforAIXVersion5.3and explainshowtoplan fortheproduct,install it,andverifythattheinstallationhasworked.

See the:

v WebSphereMQBibliographyandGlossary foranexplanationoftermsusedinthis book

v WebSphereMQSystemAdministrationGuideforfurtherinformationonusingthe controlcommandscrtmqm,strmqm,andendmqm

Road

map

Use Table1 tofindtheinformationthatyouneedtoget startedwithWebSphere MQforAIX.

Table1.Gettingstartedroadmap

Ifyouwantto... Referto...

Learnaboutsystemrequirementsfor WebSphereMQforAIX

Chapter1,“PlanningtoinstallWebSphere MQforAIX,”onpage1andChapter2, “PreparingtoinstallWebSphereMQfor AIX,”onpage9

InstallWebSphereMQforAIX Chapter3,“InstallingtheWebSphereMQfor AIXserver,”onpage15andChapter4, “Verifyingtheserverinstallation,”onpage 23

InstalltheWebSphereMQforAIXclient Chapter5,“InstallingtheWebSphereMQfor AIXclient,”onpage33andChapter6, “Verifyingtheclientinstallation,”onpage37 ReadmoreaboutWebSphere®

MQ Chapter7,“WebSphereMQdocumentation,” onpage41

ApplymaintenancetoWebSphereMQfor AIX

Chapter8,“Applyingmaintenanceto WebSphereMQforAIX,”onpage45 UninstallaWebSphereMQforAIXserveror

client

Chapter9,“UninstallingWebSphereMQfor AIX,”onpage47

Conventions

Knowingtheconventionsusedinthisbookwillhelpyoutouseitmoreefficiently. v Boldfacetypeindicatesthenameofanitemthatyouneedtoselectorthename

ofacommand.

v Italicstypeindicatesnew terms,booktitles,orvariableinformationthatmustbe replacedbyanactualvalue.

v Monospacetypeindicates anexample(suchasa fictitiouspathorfilename)or textthatisdisplayedonthescreen.

(10)
(11)

What’s

new

in

WebSphere

MQ

for

AIX,

Version

5

Release

3

WebSphereMQforAIX, Version5Release3providesthefollowingnewand changed functions:

v WebSphereMQforAIXnow supportsWebSphereMQchannelsprotectedusing theindustrystandardSecureSockets Layer(SSL).SeeWebSphere MQSecurityfor details.ThissupportisbasedonIBM® GlobalSecurityKit;acopyofthis

productisincludedwith WebSphereMQ.

v SupportforJavaisintegratedwithintheproduct.Thisreplacesthesupport previouslyprovided byMQSeries®SupportPacMA88.

v Productdocumentationisnow suppliedonseparateCD-ROMs.

v SupportforWebAdministrationandtheInternet Gatewayhasbeen removed.If youhavethesefeaturesinstalledfromapreviousrelease oftheproduct, you willlosethemwhenyouupgrade.

v Anew formoflicensemanagementisimplementedforthis releaseofthe product.

v WebSphereMQforAIXnow supportstheAIXExtendedSharedmemorymodel EXTSHM.

v Itisnow mandatorytoexporttheentrypoint ’MQStart’inanyexits that WebSphereMQforAIXuses.

v WebSphereMQnowsupportsgenericauthorityadministration.

(12)
(13)

Chapter

1.

Planning

to

install

WebSphere

MQ

for

AIX

ThischapterdescribestheprerequisitesforrunningWebSphereMQforAIX,V5.3, including:

v “Hardwarerequirements”

v “Prerequisitesoftware”onpage2 v “Optionalsoftware”onpage2

Thesoftware thatissupplied withtheWebSphereMQforAIXproductpackageis described in:

v “Delivery”onpage4

v “WebSphereMQcomponents”onpage4

Thelatest informationabouttheproductcanbe foundintheREADMEfile(see “readme file”onpage7).

Hardware

requirements

WebSphereMQforAIX, V5.3runsonanymachinethatsupportstheAIXV4.3.3 PowerPC®32–bit,orAIX®V5.1Power32bitonlyoperatingsystem,whetherfrom IBM orothervendors.For example:

v IBMRS/6000®POWERserver® v IBMRS/6000POWERstation

v IBMScalablePOWERparallel®systems v BullDPX/20(RISC)

v BullESCALA(SMP)

Disk

storage

Thestorage requirementsforWebSphereMQforAIX, V5.3depend onwhich componentsyouinstall(see“WebSphereMQcomponents” onpage4), andhow muchworkingspaceyouneed.This, inturn,dependsonthenumber ofqueues thatyouuse,thenumberandsize ofthemessagesonthequeues,andwhetherthe messages arepersistent.Youalsorequire archivingcapacityondisk,tape,orother media.

Typicalstorage requirementsare asfollows: v Serverinstallation:50MB

v Clientinstallation:15MB v Datastorage(server):50MB v Datastorage(client):5 MB

Use thedfcommandtodeterminetheamount offreespaceonyour system. Diskstorageisalsorequiredfor:

v Prerequisitesoftware v Optionalsoftware

v Yourapplication programs

See “Preparingforinstallation”onpage9 forinformationaboutcreating thefile systemsyouneedtoinstalland runWebSphereMQforAIX.

(14)

Prerequisite

software

Thissectiongivestheminimumsupportedsoftware levels.Laterlevels,if any,are supportedunlessotherwisestated.Theseprerequisites applytobothclientand serverinstallations ofWebSphereMQ.

Note: WebSphereMQdoesnotsupporthostnamesthatcontainspaces.Ifyou installWebSphereMQonacomputerwith ahostnamethatcontainsspaces, youwillbeunabletocreateanyqueuemanagers.

Operating

system

The operatingsystemssupportedbyWebSphereMQforAIX, V5.3are:

v AIXV4.3.3, withPTFU472177,runningina32bitenvironment,on32or64bit hardware.

v AIXV5.1, withPTFsU476879,U477366,U477367andU477368, andAPARfix IY29345running32bitkernelrunningon32or64bithardware.

v AIXV5.1, withPTFU476879, U477366,U477367andU477368,andAPARfix IY29345running64bitkernelrunningon64bithardware.

The CandC++runtimemust beat level5.0.2.0orhigher.

Use theoslevel commandtodeterminetheleveloftheoperatingsystemyouare running.

Connectivity

The networkprotocols supportedbyWebSphereMQforAIX,V5.3are: v TCP/IP

v SNALU6.2

TCP/IPispartofthebaseoperatingsystem.For SNAconnectivityyouneedIBM eNetwork™CommunicationsServerforAIXV6.0.

IfyouwanttousetheSNALU6.2support onWebSphereMQforLinuxforIntel, youneedtheIBMCommunicationsServer forLinux5799-RQAVersion6.0.The CommunicationsServer isavailable asaPRPQproductfromIBM. Formore details, see:

http://www.ibm.com/software/network/commserver/about/cslinux.html

SSL

(Secure

Sockets

Layer)

IfyouwanttousetheSSLsupport,youneedIBMGlobalSecurityKitV6.Thisis supplied withWebSphereMQ.

Optional

software

The followingproductscanbeusedwith WebSphereMQforAIX,V5.3,butare not required. Unlessotherwisestated,theseproductsapplyonlytoserverinstallations of WebSphereMQ.

Compilers

The followingcompilers aresupportedfor WebSphereMQforAIX, V5.3 applications:

v IBMVisualAge®C++ProfessionalforAIXVersion5.0 v MicroFocusServer expressV2.0.10

v IBMDeveloperKitforAIX,JavaTechnology Edition,Version1.3.1

(15)

Transaction

monitors

Thefollowingtransactionprocessingmonitors(coordination throughX/OpenXA interface) aresupported:

v BEATUXEDOV6.4and V6.5 v WebSphereApplicationServer V4.0 v TXSeriesforAIXV4.3

WebSphereMQforAIX, V5.3supportsWebSphereApplicationServerasanXA coordinator.For moreinformationabouttheWebSphereMQapplicationadaptor, and howtowriteComponentBrokerapplications,seetheWebSphereApplication Server EnterpriseEditionComponentBrokerWebSphereMQApplicationAdaptor DevelopmentGuide, SC09–4444.

Databases

Thefollowingdatabasesaresupported: v DB2®Universal DatabaseV7.1orV7.2 v Oracle8iR3(8.1.7)andOracle 9i v SybaseV12orV12.5:

– AdaptiveServer Enterprise(A.S.E.),V11.5 – OpenClient(ctliband dblib),V11.1 – Embedded SQL/C,V11.0

– XAServer,V11.1

– AdaptiveServer Enterprise(A.S.E.),V12with - TheDTMoption

- Thelatestpatchesinstalled(testedwith EBF9091)

- EnvironmentvariablesSYBASEandSYBASE_OCS settoappropriatevalues intheshellfromwhichyoustarta queuemanager orapplicationprogram For informationonhowtosetupXAcoordination,seetheWebSphereMQSystem AdministrationGuide.

DCE

ThefollowingDCE productsaresupportedforclient andserverinstallationsof WebSphereMQ.IfyouwanttoruntheDCEsend,receive, ormessageexits supplied byWebSphereMQ,youmust usea DCEproductthatsupportsDESdata encryption.

v IBMDCEV3.1 v IBMDCEV3.2

DCE namesandsecuritymodulesareprovidedwith WebSphereMQforAIX,V5.3.

Note: Ifyouinstall theWebSphereMQDCEextensions, youwillnotbeableto useSSLchannels.

Java

Ifyouwantto usetheJavaMessagingSupport,youneed theJava Runtime Environment Version1.3orlater.

Software

requirements

(16)

Delivery

WebSphereMQforAIX, V5.3issuppliedona numberofCD-ROMs,asfollows: v WebSphereMQforAIXServer

v WebSphereMQClients (2CDs) v WebSphereMQDocumentation

WebSphereMQforAIXcanbeinstalledasaserverora client.SeetheWebSphere MQSystemAdministrationGuideforanexplanationofclientand serverinstallations of WebSphereMQ.

The ClientsCD-ROMscontaintheWebSphereMQclientsforAIX, HP-UX,Linux, Solaris, andWindows.RefertotherelevantQuickBeginningsbookforinformation onhow toinstalltheclientonotherplatforms.

The documentationCD-ROMscontaintheproductdocumentationinHTMLand PDFformats.

WebSphere

MQ

components

WhenyouinstallWebSphereMQforAIX,V5.3, youcanchoosewhichcomponents toinstall.

Server

The componentsavailableontheServerCD-ROMareasfollows:

Runtime

Mandatory component.Providessupport forexternalapplications.

BaseKit

Needed forapplicationdevelopment.

Server Provides messagingandqueuingservices toapplications,andsupport for WebSphereMQclientconnections.

Client forAIX

Provides remoteaccesstoWebSphereMQ.Mustbe connectedtoaserver. Toinstall aclientonthesamemachineasa server,usetheServer

CD-ROM;otherwiseusetheClientsCD-ROM.

Sampleprograms

Sampleapplication programs.Neededifyouwanttocheck your

WebSphereMQinstallationusingtheverification proceduresdescribedin this book.

DCE support

Provides supportforDCEnamesand securityontheserver.Install this componentonlyifyouare usingDCE.

DCE samples

Sampleprogramsfor DCEsupport.

Java messaging

Thefiles neededformessagingusingJava (includesJava Messaging Service).

Messagecatalogs

Messagecatalogsareavailable forthefollowingnational languages.The messagecatalog forthelocaleselectedonyour machineisinstalledby default.

(17)

v Brazilian Portuguese v French v German v Italian v Japanese v Korean v Spanish v SimplifiedChinese v TraditionalChinese v U.S.English Manpages

UNIX® manpages,inU.S.English,forthefollowing:

v Controlcommands

v MessageQueue Interface(MQI)commands v MQSC commands

WebSphereMQ supportfortheGlobal SecurityKit(GSKit)andtheKey Managementtool(iKeyman)

Needed forSSL.

IBMGlobal SecurityKitV6

Needed forSSL.

Client

Thefollowingcomponentsof WebSphereMQforAIXareavailable ontheClients CD-ROM.For adescriptionofeachcomponent,see“Server”onpage4.

Runtime BaseKit ClientforAIX Sampleprograms DCEsamples Messagecatalogs

Documentation

HTMLandPDFversionsof theWebSphereMQforAIXbooksare availableonthe DocumentationCD-ROM package,ontwoCD-ROMs,insomeorallof the

followingnationallanguages: v BrazilianPortuguese v French v German v Italian v Japanese v Korean v Spanish v SimplifiedChinese v TraditionalChinese v U.S.English

See “Onlineinformation” onpage42fordetailsofthedocumentationCD-ROM package.

Note: HTMLand PDFversionsoftheWebSphereMQbooks canbe viewed directlyfromtheCD-ROMs.

WebSphere

MQ

components

(18)

Filesets

The filesetsthatcorrespondtoeachofthecomponentsarelistedinTable2. Table2.Filesetsandcomponents

Fileset Component

mqm.base.runtime Runtime

mqm.base.samples Sampleprograms mqm.base.sdk BaseKit

mqm.Client.Bnd ClientBundle(forEasyInstallation) mqm.client.rte ClientforAIX

mqm.dce.samples DCEsamples mqm.dce.server DCEsupport

mqm.java.rte JavaandJMSsupport

mqm.keyman.rte SupportforSSLkeymanagement mqm.man.en_US.data Manpages(U.S.English)

mqm.msg.de_DE Messagecatalog(German) mqm.msg.De_DE Messagecatalog(German) mqm.msg.en_US Messagecatalog(U.S.English) mqm.msg.es_ES Messagecatalog(Spanish) mqm.msg.Es_ES Messagecatalog(Spanish) mqm.msg.fr_FR Messagecatalog(French) mqm.msg.Fr_FR Messagecatalog(French) mqm.msg.it_IT Messagecatalog(Italian) mqm.msg.It_IT Messagecatalog(Italian) mqm.msg.ja_JP Messagecatalog(Japanese) mqm.msg.Ja_JP Messagecatalog(Japanese) mqm.msg.ko_KR Messagecatalog(Korean)

mqm.msg.pt_BR Messagecatalog(BrazilianPortuguese) mqm.msg.zh_CN Messagecatalog(SimplifiedChinese) mqm.msg.Zh_CN Messagecatalog(SimplifiedChinese) mqm.msg.zh_TW Messagecatalog(TraditionalChinese) mqm.msg.Zh_TW Messagecatalog(TraditionalChinese) mqm.server.rte Server

mqm.Server.Bnd ServerBundle(forEasyInstallation) gskak.rte IBMGlobalSecurityKitV6

Note: Forsomelanguages,twomessagecatalogsare availableindifferentcode sets(forexamplemqm.msg.de_DEiscodesetISO8859-1and mqm.msg.De_DEis codesetIBM-850).Formore information,seeChapter10,“Codesets supportedbyWebSphereMQforAIX,”onpage49.

(19)

readme

file

Before startingtoinstallWebSphereMQforAIX,review thereadmefileforthe latest informationontheproduct.Thereadmefilesforall supportednational languages arefoundintheREADMESdirectoryoneachCD-ROM.

readme

file

(20)
(21)

Chapter

2.

Preparing

to

install

WebSphere

MQ

for

AIX

Thischapterdescribeswhattodotoprepareyour systemforinstallingWebSphere MQforAIX(see“Preparingforinstallation”).

Ifyouaremigratingfromanearlierversionof MQSeries,read“Migratingfroman earlier version”onpage11.

“National languageconsiderations”onpage13describes howtoselectthenational languageforyour WebSphereMQinstallation.

Preparing

for

installation

Before youinstall WebSphereMQforAIX,youneedto:

1. CreatethefilesystemsusedtoholdWebSphereMQanditsdata. 2. SetuptheuserIDandgroupforWebSphereMQ.

Creating

WebSphere

MQ

file

systems

Theinstallation directoryfortheWebSphereMQproductcodeis/usr/mqm. Working dataisstored in/var/mqm.Youcannotchangethese.

Creating

a

file

system

for

the

product

code

Install WebSphereMQforAIXin/usr/mqm.Thespacerequireddependsonhow manycomponentsyouinstall.Typicallyyouneed50 MBforaserverinstallation, or15 MBfora clientinstallationwithoutSSL.

Ifyoucannotinstalltheproductcodeinthis filesystem(forexample,ifitistoo smalltocontaintheproduct),youcando oneofthefollowing:

1. Createa newfilesystemandmountit as/usr/mqm.

2. Createa newdirectoryanywhereonyourmachine,andcreatea symboliclink from/usr/mqmtothisnew directory.Forexample:

mkdir /bigdisk/mqm

ln -s /bigdisk/mqm /usr/mqm

3. Allowtheinstallprogramtoexpandthefilesystem.

Whichever oftheseoptionsyouchoose,youmust doitbefore installingthe productcode.Thefilesystemintowhichthecodeisinstalledcanbea remote networkdevice,forexample,NFS.However,youmustdefinethemountoptions definedonthatdevicetoallowsetuidprograms,includingrootaccess, torun.

Creating

a

file

system

for

the

working

data

Before youinstall WebSphereMQforAIX,createandmounta journalizedfile system called/var/mqm.Use apartitionstrategywitha separatevolume forthe WebSphereMQdata.Thismeansthatothersystemactivityisnotaffectedifa large amount ofWebSphereMQworkbuildsup.

Todeterminethesizeofthe/var/mqmfilesystemfora serverinstallation,consider: v Themaximumnumberofmessages inthesystem atonetime

v Contingencyformessagebuildups, ifthereisa systemproblem

(22)

v Theaveragesizeofthemessagedata,plus500 bytesforthemessageheader v Thenumberofqueues

v Thesizeoflogfilesand errormessages

v TheamountofSSLtracethatiswritten tothe/var/mqm/tracedirectory(this isa newdirectoryforthis release)

Allow50 MBasaminimum foraWebSphereMQserver.Youneedlessspacein /var/mqmfora WebSphereMQclient,typically15 MB.

Creating

separate

file

systems

for

working

data

Youcanalsocreateseparate filesystemsforyour logdata(/var/mqm/log)and errorfiles(/var/mqm/errors).Ifpossible,storelogfilesona differentphysical volume fromtheWebSphereMQqueues(/var/mqm).Thisensures dataintegrityin thecaseofahardwarefailure.

Ifyoucreateseparatefilesystems:

v The/var/mqmand/var/mqm/logdirectoriesmust beonalocalfilesystem. v The/var/mqm/errorsdirectorycanbeNFSmounted.

Attention

IfyouchoosetoNFS-mount/var/mqm/errors,theerrorlogsmight belostif thenetworkfails.

Ifyouarecreatingseparate filesystems,allowaminimumof 30MBofstoragefor /var/mqm,20MBofstorage for/var/mqm/log,and 4MBof storagefor

/var/mqm/errors.

Ifyouwanttouseindividualqueues thatwillholdmore than2 GBofdata,you must enable/var/mqmtouselargefiles.

The sizeofthelogfiledependsonthelogsettingsthatyouuse.Thesize we recommend isforcircularloggingusingthedefaultsettings.For further informationonlogsizesseetheWebSphereMQSystemAdministrationGuide.

Setting

up

the

user

ID

and

group

Auser IDofthenamemqm,witha primarygroupofmqm,iscreatedautomatically during installation.Afterinstallation,themqm userIDownsthedirectoriesandfiles thatcontaintheresourcesassociatedwith theproduct.

YoucancreatetheuserIDandgroupIDsyourself,asdescribedinthenext section. For example,youmight wanttodo thisifyouaresettingupallsecuritygroups before installingWebSphereMQ.

Creating

the

user

ID

and

group

IfyouwanttocreatetherequireduserIDandgroupIDyourself,youmust doit

before youinstall WebSphereMQ.BothuserIDandgroupIDmustbe settomqm. For stand-alonemachines, youcancreatethenewuserIDandgroup IDslocally; for machinesadministeredinanetworkinformationservices(NIS) domain,an administratormust createtheIDsontheNISmasterservermachine.

YoucanusetheSystemManagementInterfaceTool(smit),for whichyourequire rootauthority.

(23)

1. Tocreatethemqmgroup,displaytherequiredwindow usingthis sequence:

Security & Users Groups

Add a Group

Setthenamefieldtomqm.

2. Tocreatethenewuser,mqm,displaytherequiredwindowusingthissequence:

Security & Users Users

Add a User

Setthenamefieldtomqm.

3. ToaddapasswordtothenewuserID, displaytherequiredwindowusingthis sequence:

Security & Users

Change a Users Password Passwords

Setthepasswordasrequired.

Adding

existing

user

IDs

to

the

group

Ifyouwantto runadministrationcommands,forexamplecrtmqm(createqueue manager) orstrmqm(startqueuemanager),your userIDmustbe amemberofthe mqm group.

Users donotneedmqmgroup authoritytorunapplicationsthatusethequeue manager;it isneededonlyfortheadministrationcommands.

Youcanusesmitto addanexistinguser IDtothemqm group.Display therequired window usingthissequence:

Security & Users Users

Change / Show Characteristics of a User

Enterthenameoftheuser intheUserNamefield.Addmqmto theGroupSET

field,whichisacomma-separatedlistof thegroupstowhichtheuser belongs. Users neednothavetheirprimarygroupsettomqm.Provided thatmqmisintheir set ofgroups,theycanusetheadministrationcommands.

Migrating

from

an

earlier

version

Thissectiondescribes differencesbetweenWebSphereMQforAIX, V5.3and earlier versions oftheproduct,knownpreviouslyasMQSeries.

Changes

to

the

installation

path

Changes inAIXpackagingmeanthatMQSeriesV5.1and laterversions installinto directory /usr/mqm,whereasMQSeriesV5.0installsintodirectory /usr/lpp/mqm. InstallingWebSphereMQforAIX,V5.3failsif afilesystemmounted as

/usr/lpp/mqmisdetected.Ifyouare migratingfromanearlier version,andafile system existsfor thisdirectory,youneedtodooneofthefollowingthingsbefore installingWebSphereMQforAIX, V5.3.Either:

v Uninstallyour existingMQSeriesproduct, anddeletethefilesystem ormoveit tothenew installpathof/usr/mqm

or

Preparation

(24)

v Movetheoldfilesystemof/usr/lpp/mqmtothenewinstallationpathof

/usr/mqmandcreateasymboliclinkfromtheoldpathtothenewbyissuingthe followingcommand:

ln -s /usr/mqm /usr/lpp/mqm

Ifyouuninstallyour existingMQSeriesproduct,and deleteormoveyourexisting filesystem,youcantheninstall WebSphereMQforAIX,V5.3asdescribedin “Installation procedure”onpage15.

However, ifyoumovetheoldfilesystemtothenewinstallationpath,perform the migration installationdescribedin“Migratingfromanearlier version”onpage18. Ifyouhavealreadysymbolically linkedafilesystemto/usr/lpp/mqm,installing WebSphereMQforAIX, V5.3destroysthefilesystemcontentand thelink, and youareleft withanemptyfilesystem.Inthis case,uninstallyour existing

MQSeriesproductanddeletethefilesystem,or relinkittothenewinstall pathof /usr/mqm,beforeinstallingWebSphereMQforAIX, V5.3.

The installationprocessforWebSphereMQforAIX,V5.3createsa symboliclink fromtheold/usr/lpp/mqmpathtothenew /usr/mqmpath.Thereforeanyexisting scripts ormakefilesthatreference theoldpatharestill valid.

POSIX

standard

threading

library

MQSeriesforAIX,V5.2onwards,usesthePOSIXstandardthreading library (whichwas notavailable onAIXV4.2)tomatchtheimplementationonother UNIX platforms.ExistingMQSeriesapplicationsbuiltonAIX4.2usingthedraft7 levelofPOSIXthreadsarenotaffectedbythisnew implementationand will continuetorununchanged.However, youneedtorecompileWebSphereMQexits and installableservicesandrelinkthemusingthexlc_r compileronAIX4.3touse thefinallevelofthepthreadstandarddefinition(alsoknown asthedraft 10level). Write anynewthreaded applicationsonAIX4.3tousethislevelofthepthreads standard.

Creating

the

system

default

objects

WhenyouusethecrtmqmcommandtocreateaqueuemanagerwithWebSphere MQforAIX,V5.3, thesystem defaultobjectsareautomaticallycreated.Weno longerprovidethesampleMQSC definitionfile,amqscoma.tst.

Ifyouusedamqscoma.tsttocustomize yoursettingsforMQSeriesforAIX, V5.0, and youwanttousethesamesettingswith V5.3oftheproduct:

1. Saveyour copyofamqscoma.tst. 2. InstallWebSphereMQforAIX, V5.3.

3. Loadyour copyofamqscoma.tstand usethefiletore-createyourdefault objects.

Client

applications

An MQSeriesVersion5 clientcanconnecttoallqueuemanagersthatsupport client attach.Note, however,thatyoucannotusefeaturesandstructuresspecificto WebSphereMQforAIX, V5.3inyour clientapplicationif youconnecttoa

non-Version 5.3queuemanager.

(25)

EXTSHM

-

Extended

Shared

Memory

model

By default,AIXhasa differentSystemVSharedMemorymodelfromtheother UNIX platforms.Nomorethan10shared memorysegmentscanbeattached simultaneouslybyanindividualprocess.

With WebSphereMQforAIX, V5.3,queuemanagersusetheAIXextension EXTSHM,whichallowsmorethan10segmentstobe attachedbya singleprocess. ThisisenabledbyexportingtheenvironmentvariableEXTSHM=ONinthe environment beforeaprocess isstarted(thevariablemust beinuppercase). Totakefulladvantageofthisfacility, settheenvironmentvariable EXTSHM=ON intheenvironmentof allWebSphereMQapplicationsbeforetheyare started.All WebSphereMQqueuemanagerprocesseswillset thisvariableforthelifetime of theirprocess,if itisnotalreadysetwhenthequeuemanagerisstarted.

Ifa user’sWebSphereMQapplication choosesnottosetthis variable,itcanstill connectand communicatewith WebSphereMQcorrectly.However,if the application triesto usemoreshared memorythanisavailable inthe10slots providedfor attachingsharedmemorysegments,thatrequestmightfail.

ThetypesofsituationsthatcanincreasethenumberofsegmentsthatWebSphere MQtriestoattachare:

v Manythreads allattachtoWebSphereMQ

v Largemessages transferbetweentheapplicationandWebSphereMQ

v Anapplicationusesotherapplicationlibraries,suchasdatabaseconnections, andtheseotherlibrariesallocatesharedmemoryfromthe10slotsavailable.

Note: Notall applicationssupport theuseoftheEXTSHM=ONenvironment variable.Donotsetthisvalue globally(forexample,in/etc/environment). Itisbetter tosetthisvalue locallyintheprofileofanyuserwhowantsto runWebSphereMQapplications.

National

language

considerations

Thissectionincludesinformationondisplayingmessages inyournational languageand nationallanguagesupportformanuals.

Displaying

messages

in

your

national

language

Messages inthelanguagespecified bythelocaleselectedonyourmachineare installedbydefault.Ifyourequiremessages inadifferentlanguage,ensurethat: 1. Youinstalltheappropriatemessagecatalog (see“WebSphereMQcomponents”

onpage4and “Nationallanguageinstallation”onpage17).

2. YourNLSPATHenvironmentvariable includestheappropriatedirectory. For example,toselectmessagesinGermanusethefollowing:

export LANG=de_DE

export NLSPATH=/usr/lib/nls/msg/%L/%N

Tofind outwhichlanguageiscurrentlyinstalled,usethelocalecommand. Ifa messagecatalog isnotavailable forthislanguage,installamessage catalogfora differentlanguage,oryouwillnotseeanymessages.

Migration

(26)

National

language

support

for

manuals

The documentationforWebSphereMQissupplied inHTMLandPDFformatson a separateCD-ROM.Thedocumentationisavailable inanyof thelanguagesthat are supportedbyWebSphereMQforAIX.

See “Onlineinformation” onpage42formore informationabouthypertextlinking betweenbooks indifferentnational languages.

(27)

Chapter

3.

Installing

the

WebSphere

MQ

for

AIX

server

Thischaptertellsyouhow toinstalltheWebSphereMQforAIXserver.

Italso tellsyouhow tomigratefromaversion ofMQSeries(see“Migratingfrom an earlierversion”onpage18),anddescribes someotherproceduresthatmight be neededafteryouhaveinstalledWebSphereMQ.

Chapter4,“Verifyingtheserverinstallation,”onpage23describeshowtoverify thatyour installationoftheWebSphereMQserverisworking.

Ifyouwantto installtheWebSphereMQclient,seeChapter5,“Installingthe WebSphereMQforAIXclient,”onpage33.

Installation

procedure

Thereare differentwaysofinstallingWebSphereMQforAIX.Youcanuse: v Easyinstallation

v Custominstallation

v Nationallanguageinstallation v Remoteinstallation

The“Easyinstallation”proceduregivesaminimalconfigurationonyourmachine, consistingofthefollowingcomponents:

v Runtime v BaseKit v Server

v Sampleprograms

Ifyouwantanyoftheothercomponents,suchasonlinedocumentation, use “Custominstallation”onpage16.

Ifyouwantmessages inadifferentnationallanguagefromthelocaleselectedon your machine,use“National languageinstallation”onpage17.

Toinstall WebSphereMQforAIXona remotemachine,see“Remoteinstallation” onpage18.

Before youstart theinstallationprocedure, makesurethatyouhaveprepared your system asdescribedin“Preparingforinstallation”onpage9.

Note: WerecommendthatyouinstallAIXPTFU472177beforeinstalling

WebSphereMQforAIX,V5.3. ThisPTFupdatesthebos.rte.install fileset onAIXtoVersion4.3.3.17.

WithoutthisPTF,theWebSphereMQproductmightappeartoinstall correctly,eventhoughsomeoftheproductfilesare missing.

Easy

installation

Thisinstallationprocedureusesthexinstallmprogram, whichisavailable inthe X11.vsm.rte optionalfileset.

(28)

By default,theprocedureinstallstheclientcomponentsforWebSphereMQSSL support. IfyoudonotwanttoinstalltheclientcomponentsforWebSphereMQ SSLsupport,seethereadmefilesuppliedwith WebSphereMQforAIX.

1. Loginasroot.

2. InserttheWebSphereMQforAIXServerCD-ROMintotheCD-ROMdrive. 3. EnterthefollowingcommandtomounttheCD-ROM:

mount /cdrom

4. Type: xinstallm -ez

TheWebSphereMQWelcomewindowisdisplayed,followedbya second windowwhere youcanmakesomeselections.

5. ChoosetheCD-ROM softwaresource.

6. For Whichbundleof softwarewouldyouliketoinstall?choose

Media-defined.

7. ClickInstall/Update tocreatethemqm.Serverandmqm.Client. 8. Choosethemqm.Serverbundleand clickInstall/Updateagain.

Thisinstallsthefilesetsinthisbundle, andaworkinprogresswindowgives informationastheinstallationproceeds.

Attheendoftheinstallation,click theViewlogbuttonandscrolltothebottomof thelogtoseethefilesetsthathavebeeninstalledsuccessfully.

Once youhaveinstalledWebSphereMQforAIX,youneedtorunthesetmqcap

command, inputtingthenumberofprocessorsyouhavepaidfor.Therelationship betweenprocessorsandlicenseunitsforUNIX serversisshowninthelicense agreement.

The firsttimeyoustart aqueuemanageronthismachine,if youhavenotalready runthe setmqcapcommand, yougeta warning sayingPurchased licenseunits not set (usesetmqcap). Ifyou havealreadyrunsetmqcap but enteredan

incorrect value, yougetthewarning Insufficientlicense units.Youneed torun

setmqcaptocorrectthis beforeyoucanstart aqueuemanager.

Tochangeyour installation,orbackout afailedinstallation,usetheSystem Management InterfaceTool(smit)inthefollowingtext.

Custom

installation

ThisinstallationprocedureusestheSystemManagementInterfaceTool(smit), enabling youtoselectwhichcomponentsyouwanttoinstall.Thecomponentsand filesetsarelisted in“WebSphereMQcomponents”onpage4;youmustinstall at least theRuntime, BaseKit,and Servercomponents.

By default,theprocedureinstallstheclientcomponentsforWebSphereMQSSL support. IfyoudonotwanttoinstalltheclientcomponentsforWebSphereMQ SSLsupport,seethereadmefilesuppliedwith WebSphereMQforAIX.

1. Loginasroot.

2. InserttheWebSphereMQforAIXServerCD-ROMintotheCD-ROMdrive. 3. EnterthefollowingcommandtomounttheCD-ROM:

mount /cdrom

4. Selecttherequiredsmitwindow usingthefollowingsequence:

Software Installation and Maintenance Install and Update Software

Install and Update from LATEST Available Software

Installing

the

server

| |

| |

(29)

Alternativelyyoucanusea fastpathcommand(smittyinstall_latest). 5. ClickListtodisplaytheinputdeviceordirectoryforthesoftware. 6. Select/dev/cd0(CD-ROM Drive)andclickOK.

7. UsetheSOFTWAREtoinstall fieldtoobtainalistofavailablefilesets, and selectthefilesetsyouwanttoinstall.

Note: Ifyouinstall theDCE extensions,youwillnotbeabletorunSSL channels.

8. MakesurethatInclude correspondingLANGUAGEfilesets?issettoYes. 9. OnAIXV4.3.3:

a. ClickOKtoinstall WebSphereMQ. OnAIXV5.1:

a. ChangePreviewnewLICENSEagreements?toyes andclickOKtoview thelicenseagreements.

Note: Payparticularattentiontothesectionthatoutlinesthenumberof licenseunitsyouneed,becauseyouwillbeasked latertoconfirm thatyouhavepurchasedsufficientlicenseunitsforthenumberof processorsyouhaveinyour computer.

b. ChangeACCEPTnewlicense agreements?toyesandclick OKtoaccept thelicenseagreementsand installWebSphereMQ.

OnceyouhaveinstalledWebSphereMQforAIX, youneed torunthe

setmqcapcommand,inputtingthenumber ofprocessorsyouhavepaidfor. TherelationshipbetweenprocessorsandlicenseunitsforUNIXservers is shown inthelicenseagreement.

National

language

installation

TheEasy andCustominstallationproceduresinstall messagesinthelanguage, specified bythelocaleselectedonyourmachine,bydefault.Ifyourequire messages inadifferentlanguage,usethefollowingprocedure.

Theprocess issimilarto“Custominstallation”onpage16.Youmustinstall atleast theRuntime,BaseKit,and Servercomponents,inadditiontotheMessageCatalog foryour chosenlanguage.

1. Loginasroot.

2. InserttheWebSphereMQforAIXServerCD-ROMintotheCD-ROMdrive. 3. EnterthefollowingcommandtomounttheCD-ROM:

mount /cdrom

4. Selecttherequiredsmitwindow usingthefollowingsequence:

Software Installation and Maintenance Install and Update Software

Install and Update from ALL Available Software

5. Check Listtodisplaytheinputdeviceordirectoryforthesoftware. 6. Select/dev/cd0(CD-ROM Drive)andclickOK.

7. UsetheSOFTWAREtoinstall fieldtoobtainalistofavailablefilesets, and selectthefilesetsyouwanttoinstall (includingthemessagecatalog). 8. OnAIXV4.3.3:

a. ClickOKtoinstall WebSphereMQ. OnAIXV5.1:

Installing

the

server

Chapter3.InstallingtheWebSphereMQforAIXserver

17

| |

(30)

a. ChangePreviewnewLICENSEagreements?toyes andclickOKtoview thelicenseagreements.

Note: Payparticularattentiontothesectionthatoutlinesthenumberof licenseunitsyouneed,becauseyouwillbeasked latertoconfirm thatyouhavepurchasedsufficientlicenseunitsforthenumberof processorsyouhaveinyour computer.

b. ChangeACCEPTnewlicense agreements?toyesandclick OKtoaccept thelicenseagreementsand installWebSphereMQ.

OnceyouhaveinstalledWebSphereMQforAIX,youneed torunthe

setmqcapcommand,inputting thenumber ofprocessorsyouhavepaidfor. TherelationshipbetweenprocessorsandlicenseunitsforUNIXservers is shown inthelicenseagreement.

Remote

installation

Toinstall WebSphereMQforAIXona remotemachine,youcanusestandardAIX techniques.

By default,theprocedureinstallstheclientcomponentsforWebSphereMQSSL support. IfyoudonotwanttoinstalltheclientcomponentsforWebSphereMQ SSLsupport,seethereadmefilesuppliedwith WebSphereMQforAIX.

Todo this,logontobothsystemsasroot.PuttheWebSphereMQforAIXServer CD-ROM intheCD-ROMdriveof themachine fromwhichyouaregoingtotake thecopy.Followthis procedureforeachtarget machineonwhichyouwantto install theproduct:

1. Createa CD-ROMfilesystemonthelocalmachine,and mounttheCD-ROM filesystem onthelocal machine(mount /cdrom).

2. Using smit,exportthisfilesystemusingNFStothetargetmachine.

3. Logontotheremote machineanduseNFStomounttheCD-ROMfilesystem that youcreated (mount local_machine:/cdrom).

4. Usesmittoinstall WebSphereMQforAIXfromthetargetdirectory thatyou specified.

Once youhaveinstalledWebSphereMQforAIX,youneedtorunthesetmqcap

command, inputtingthenumberofprocessorsyouhavepaidfor.Therelationship betweenprocessorsandlicenseunitsforUNIX serversisshowninthelicense agreement.

Reinstalling

WebSphere

MQ

for

AIX

IfyoureinstallWebSphereMQforAIX, acheck ismadetoseeiftheWebSphere MQconfigurationfile(mqs.ini)exists.Ifthefileexists,itiskeptand usedwith the newlyinstalledsystem.Ifthefiledoesnotexist, anemptymqs.ini fileisplacedin thedirectory/var/mqm.

Migrating

from

an

earlier

version

Alwaysbackupthe/var/mqmdirectory beforestartingtomigratefromanearlier version ofMQSeriesforAIX.

Ifyouhaveinstalledanyofthefollowingfilesets,uninstallthembefore you perform themigration.

mqm.java.bindings

(31)

mqm.java.client mqm.java.share mqm.gateway.* mqmjava.base mqmjava.jms mqm.html.*

Tomigrate toWebSphereMQforAIX,V5.3,first endallqueuemanageractivityon thetarget machineandthen usetheSystemManagementInterfaceTool(smit)to updateyour currentlyinstalledcomponents.

1. Loginasroot.

2. InserttheWebSphereMQforAIX,V5.3ServerCD-ROMintotheCD-ROM drive.

3. Selecttherequiredsmitwindow usingthefollowingsequence:

Software Installation and Maintenance Install and Update Software

Update Installed Software to Latest Level (Update All)

Alternativelyyoucanusea fastpathcommand(smittyupdate_latest). 4. Check ListtodisplaytheSingleSelectListwindow,and select/dev/cd0

(CD-ROM Drive).

5. Check OKtodisplaytheparametersforUpdateAll.

6. For correctmigration,updateall previouslyinstalledWebSphereMQ

(MQSeries)software.Selectthe_update_alloption intheSoftwaretoUpdate

fieldandpressEnter.

7. ClickOK ontheconfirmationwindowtoupdatethesoftware.

Whenallpreviouslyinstalledcomponentshavebeenupdatedtothelatest level, youcaninstallanyadditionalcomponents(includingsupport forJavaifyou uninstalleditbefore theupdate)asdescribedin“Custominstallation”onpage16. Differences betweenWebSphereMQforAIX,V5.3andversionsof MQSeriesare described in“Migratingfromanearlierversion”onpage11.

Migrating

authorization

data

IfyouaremigratingfromMQSeriesV5.1orV5.2,and youareusingthe

compatibility OAM,allauthorizationdataismigrated fromtheauthorizationfiles totheauthorizationqueuethefirst timethatyourestartthequeuemanagerafter installingWebSphereMQforAIX, V5.3.IftheOAMdetectsa missingfileand: v Theauthorizationappliestoasingle object,theOAMgivesthemqmgroup

accesstotheobjectandcontinueswiththemigration.MessageAMQ5528is writtentothequeuemanager’serrorlog.RefertotheWebSphereMQMessages

bookformoreinformationaboutmessageAMQ5528.

v Theauthorizationappliestoaclass ofobjects,theOAMstopsthemigration.The queuemanager doesnotstart untilthefilehasbeenreplaced.

Youcancontinuetostoreauthorizationdatainfiles.However, ifyoudoso,you cannotexploitanyoftheV5.3improvements(suchasgeneric profiles),and the performance oftheOAMwillbeaffected.ThedefaultOAMservicemoduleis amqzfu. WebSphereMQforAIX,V5.3alsoprovidesthepreviousservicemodule asamqzfu0.Therearetwowaysinwhichyoucanusethepreviousmoduleto continuetostoreauthorizationdatainfiles:

Migration

(32)

v ModifytheModuleattributeintheServiceComponentstanza oftheqm.inifile touseamqzfu0.Notethatthisoptionispossibleonlyforqueuemanagers createdbeforeyoumigratedtoV5.3.

v Replacetheamqzfumodulefoundin/opt/mqm/libbythepreviousversion.For example,youcandothisby:

1. Removing theexistingamqzfumodule 2. Renamingamqzfu0asamqzfu

Notes:

1. Youcanrestorethenewamqzfumodulefromthecopy providedasamqzfu1. 2. Once youhavecreatedorrestartedaqueuemanagerwith thenew amqzfu

module,youcannolongerreplacetheamqzfumodulewiththeprevious version.Themigration process,describedabove,isnotreversible.

Youcanview authorizationdatawith thedspmqautand dmpmqautcommands. Refer totheWebSphere MQSystemAdministrationGuideforacompletedescription of thesecommands.

Setting

the

queue

manager

CCSID

The codedcharactersetidentifier(CCSID)isfixed whenyoucreatea queue manager.TheCCSIDisdeterminedbythelocalethatyouusetorunthecrtmqm

command. FormoreinformationonusingcommandsetsseetheWebSphereMQ System AdministrationGuide

The followingtable givessomeexamples ofusingtheLANGparameterinyour NLSPATH environmentvariabletochangethecodeset andCCSID.

Table3.ExamplesofsettingtheCCSID

Example Codeset CCSID

exportLANG=C (thisisthedefaultlocale) ISO8859-1 819 export LANG=en_US ISO8859-1 819 export LANG=En_US IBM-850 850

Tomodify anexistingqueuemanager CCSID,followthisprocedure: 1. StartMQSC commandsbytyping: runmqsc

2. Display theexistingqueuemanagerCCSID, usingtheMQSC command:

display qmgr ccsid

3. ChangetheCCSIDtothenew CCSIDwith theMQSCcommand:

alter qmgr ccsid (new.ccsid)

wherenew.ccsid isthenumberof thenew CCSID. 4. StopMQSCcommandsbytyping: end

5. Stopthequeuemanager,and thenrestart itandanychannelsthatituses. See Chapter10,“CodesetssupportedbyWebSphereMQforAIX,”onpage49for furtherinformationaboutsupportedcode sets.See“Migratingtoeurosupport”on page50forinformationonmigratingtoaCCSIDthatsupportstheeurocharacter.

(33)

User

exits

Check thatyouruser exitsarelinkedwith threadedlibrariesbefore usingthemon this versionoftheproduct.

v Forfurtherdetailsonthreaded libraries,and informationaboutdata-conversion exits,seetheWebSphereMQApplicationProgrammingGuide.

v Forinformationaboutchannelexits,seetheWebSphereMQIntercommunication book.

v Forinformationaboutcluster-workloadexits,seetheWebSphere MQQueue

ManagerClustersbook.

User

exits

(34)
(35)

Chapter

4.

Verifying

the

server

installation

Thischapterdescribeshowto verifythattheWebSphereMQforAIXserverhas been correctlyinstalledand configured.YoucanverifyaWebSphereMQserver installationat differentlevels:

v Alocal(stand-alone) installationthathasnocommunicationlinkswithother WebSphereMQinstallations.Thisisdescribedin“Verifyinga localinstallation.” v Aserver-to-serverinstallationthatincludescommunicationlinksto other

WebSphereMQinstallations.Thisisdescribedin“Verifyinga server-to-server installation”onpage24.

See Chapter6,“Verifyingtheclientinstallation,”onpage37ifyouhavea client/server installationthatincludescommunicationlinksbetweenaserver machine andaWebSphereMQclient.

Verifying

a

local

installation

Toverify alocalinstallationwith asimpleconfigurationofonequeuemanager and onequeue,usesampleprogramstoputa messageontothequeueand toread themessagefromthequeue.

Note: WebSphereMQobjectdefinitionsarecase-sensitive.Anytextenteredasan MQSCcommandinlowercaseisconvertedautomaticallytouppercase unlessyouencloseitinsinglequotationmarks.Make surethatyoutype the examplesexactlyasshown.

Theproceduresoutlinedinthis sectiondescribehowtoconfigureyour default queuemanagerfromthecommandline.

Setting

up

the

installation

From ashellwindow,usethese stepstoinstall aqueuemanagerand aqueue: 1. Createa defaultqueuemanager calledvenus.queue.managerbyentering the

followingcommand:

crtmqm -q venus.queue.manager

Youwillseemessagestelling youthatthequeuemanagerhasbeen created, andthatthedefaultWebSphereMQobjectshavebeen created.

2. Tostart thequeuemanager,type:strmqm

Amessagetellsyouwhenthequeuemanagerhasstarted.

Thefirst timethatyoustarta queuemanager onamachine,youmightgetone of the following warnings: Purchased license units not set (use setmqcap) or Insufficientlicense units.See “Installation procedure”on page15 for howto correctthis.

3. EnableMQSC commandsbytyping:runmqsc

Amessagetellsyouthatan MQSCsessionhasstarted.MQSChasnocommand prompt.

4. Definea localqueuecalledORANGE.QUEUEbyenteringthefollowingcommand: define qlocal (orange.queue)

(36)

Amessagetellsyouwhenthequeuehasbeencreated. 5. StopMQSCbytyping: end

Youwillseesomemessages,followedbythecommandprompt. Youhavenowdefined:

v Adefaultqueuemanager calledvenus.queue.manager v AqueuecalledORANGE.QUEUE

Testing

the

installation

Totest thequeuemanagerand queue,usetheamqsputsampleprogramtoputa message onthequeue,andtheamqsgetsampleprogramtoget themessageback fromthequeue:

1. Changeintothe/usr/mqm/samp/bindirectory, whichcontains thesample programs.

2. Puta messageonthequeueusingthefollowingcommand: ./amqsput ORANGE.QUEUE

Thefollowingmessagesare displayed: Sample amqsput0 start

target queue is ORANGE.QUEUE

3. Typesomemessagetext, ononeormorelines,followedbyablank line.The followingmessageisdisplayed:

Sample amqsput0 end

Yourmessageisnowonthequeueand thecommandpromptisdisplayed again.

4. Togetthemessagefromthequeue,usethefollowingcommand: ./amqsget ORANGE.QUEUE

Thesampleprogramstarts,andyour messageisdisplayed.Afterapause,the sampleendsandthecommandpromptisdisplayed again.

Youhavenowsuccessfullyverifiedthelocalinstallation.

Verifying

a

server-to-server

installation

Thereare morestepsinvolvedinverifyingaserver-to-serverinstallation,because youneedtocheck thecommunicationslinkbetweenthetwomachines. Beforeyou cando this,youmust ensurethatthecommunicationsprotocolhasbeeninstalled and configuredonbothsystems.WebSphereMQforAIXsupportsbothTCPand SNA.Thisexampleexplainshowtoverifyyour installationifyouareusingTCP; if youare usingSNA,refertotheWebSphereMQIntercommunication manual. Totest theinstallation,set uptwoworkstations,oneasasender andoneasa receiver.Youtestcommunicationsbetweensender andreceiverusingsample programs,whichyoumustinstall onbothworkstations.Theverification procedure assumesthatbothworkstationsare UNIXmachines;ifthis isnotthecase,someof thecommandsaredifferent(fordetails, refertothedocumentationforthe

workstation).

(37)

Note: WebSphereMQobjectdefinitionsarecase-sensitive.Anytextenteredasan MQSCcommandinlowercaseisconvertedautomaticallytouppercase unlessyouencloseitinsinglequotationmarks.Make surethatyoutype the examplesexactlyasshown.

Setting

up

the

sender

workstation

From ashellwindow,usethese stepstoset upthesendermachine: 1. Createa defaultqueuemanager calledsaturn.queue.managerwith the

followingcommand:

crtmqm -q saturn.queue.manager

Messagestellyouthatthequeuemanagerhasbeencreated,andthatthe defaultWebSphereMQobjectshavebeen created.

2. Tostart thequeuemanager,type: strmqm

Amessagetellsyouwhenthequeuemanagerhasstarted.

Thefirst timethatyoustarta queuemanager onamachine,youmightgetone of the following warnings: Purchased license units not set (use setmqcap) or Insufficientlicense units.See “Installation procedure”on page15 for howto correctthis.

3. StartMQSC commandsbytyping: runmqsc

Amessagetellsyouthatan MQSCsessionhasstarted.MQSChasnocommand prompt.

4. Definea localqueuecalledTRANSMIT1.QUEUE (tobeusedasatransmission queue)byentering thefollowingcommand:

define qlocal (transmit1.queue) usage (xmitq) Amessagetellsyouwhenthequeuehasbeencreated.

5. Definea localdefinitionof theremotequeuewith thefollowingcommand: define qremote (local.def.of.remote.queue) rname (orange.queue) + rqmname (’venus.queue.manager’) xmitq (transmit1.queue)

ThenamespecifiedbytheRNAME parametermustbe thesame asthenameof thequeuetowhichyouaresendingthemessage(ORANGE.QUEUEonthereceiver workstation).

6. Definea senderchannelwiththefollowingcommand: define channel (first.channel) chltype (sdr) +

conname (’con-name(port)’) xmitq (transmit1.queue) trptype (tcp)

Thevalue con-nameistheTCPaddress ofthereceiverworkstation, andportis theportname,with 1414asdefault.

7. StopMQSCbytyping: end

Some messagesaredisplayed,followedbythecommandprompt. Youhavenowdefinedthefollowingobjects:

v Adefaultqueuemanagercalled saturn.queue.manager v AtransmissionqueuecalledTRANSMIT1.QUEUE

v Alocaldefinitionofa remotequeuecalledLOCAL.DEF.OF.REMOTE.QUEUE v Asender channelcalledFIRST.CHANNEL

Verifying

a

server-to-server

installation

(38)

Setting

up

the

receiver

workstation

Now followthesestepstosetupthereceiver:

1. Createa defaultqueuemanager calledvenus.queue.managerbyenteringthe followingcommand:

crtmqm -q venus.queue.manager

Messagestellyouthatthequeuemanagerhasbeencreated,andthatthe defaultWebSphereMQobjectshavebeen created.

2. Tostart thequeuemanager,type: strmqm

Amessagetellsyouwhenthequeuemanagerhasstarted.

Thefirst timethatyoustarta queuemanager onamachine,youmightgetone of the following warnings: Purchased license units not set (use setmqcap) or Insufficientlicense units. See“Installation procedure” onpage15 for how tocorrectthis.

3. Starta WebSphereMQlistenerasabackgroundtaskbyenteringthefollowing command:

runmqlsr -t tcp &

Youcanusethe-pparametertospecifythenumberofa portthatthelistener shouldlistenon.Ifyoudonotspecifyit,thedefaultof 1414isused. Theport numbermust bethesameastheonethatyouspecifywhensettingupthe sender.

4. EnableMQSC commandsbytyping:runmqsc

AmessagetellsyouthatanMQSCsession hasstarted.MQSChasnocommand prompt.

5. Definea localqueuecalledORANGE.QUEUEbyenteringthefollowingcommand: define qlocal (orange.queue)

Amessagetellsyouwhenthequeuehasbeencreated. 6. Definea receiverchannelwiththefollowingcommand:

define channel (first.channel) chltype (rcvr) trptype (tcp) Amessagetellsyouwhenthechannelhasbeencreated.

7. StopMQSCbytyping:end

Some messagesaredisplayed,followedbythecommandprompt. Youhavenowdefinedthefollowingobjects:

v Adefaultqueuemanager calledvenus.queue.manager v AqueuecalledORANGE.QUEUE

v AreceiverchannelcalledFIRST.CHANNEL

Testing

communication

between

the

workstations

Finally,usetheamqsputsampleprogramtoputamessagefromthesender workstationtoa queueat thereceiver,andtheamqsgetsampleprogramonthe receiverworkstationtogetthemessagefromthequeue:

1. Ifthequeuemanagersonthetwoworkstationshavestopped, restartthemnow bytyping: strmqm

(39)

2. On thesenderworkstation,start thesenderchannelasabackgroundtaskby enteringthefollowingcommand:

runmqchl -c FIRST.CHANNEL -m saturn.queue.manager &

Thereceiverchannelonthereceiverworkstationstartsautomaticallywhenthe sender channelstarts.

3. On thesenderworkstation,change intothe/usr/mqm/samp/bin directory,which containsthesampleprograms.

4. Toputamessageonthelocaldefinitionoftheremotequeue(whichinturn specifiesthenameoftheremotequeue),usethefollowingcommand:

./amqsput LOCAL.DEF.OF.REMOTE.QUEUE

Youwillseethefollowingmessages: Sample amqsput0 start

target queue is LOCAL.DEF.OF.REMOTE.QUEUE

5. Typesomemessagetextononeormorelines,followedbya blankline.You willseethefollowingmessage:

Sample amqsput0 end

Yourmessageisnowonthequeueand thecommandpromptisdisplayed again.

6. On thereceiverworkstation, changeintothe/usr/mqm/samp/bindirectory, whichcontainsthesampleprograms.

7. Togetthemessagefromthequeueatthereceiver,enterthefollowing command:

./amqsget ORANGE.QUEUE

Thesampleprogramstarts,andyour messageisdisplayed.Afterapause,the sampleendsandthecommandpromptisdisplayed again.

Youhavenowsuccessfullyverifiedtheserver-to-serverinstallation.

Verifying

a

server-to-server

installation

(40)

Verifying

the

installation

using

the

JMS

Postcard

application

TousetheJMSPostcard,youmustinstall theoptionalJavaMessagingand sample programs featuresofWebSphereMQ,andyoumust haveaworkingJRE (Java Runtime Environment).

Note: IfyouwanttheJMSPostcardapplicationtousefontandcolorsettings differentfromtheJava VirtualMachinedefaults,changethePostcard.inifile. Formore informationseeWebSphereMQUsingJava.

Use theJMSPostcardapplication toverifythatWebSphereMQissuccessfully installed,theassociatedcommunicationlinksare workingproperly,andthat WebSphereMQJavaMessaging supportissuccessfullyinstalled.

YoucanusetheJMSPostcardapplication toverifya localinstallation(whichdoes nothaveanycommunicationlinkswith otherWebSphereMQinstallations).For furtherinformation,see“UsingtheJMSPostcardapplication toverifyalocal installation”onpage29.

YoucanalsousetheJMSPostcardapplicationtoverifycommunicationbetween your machineandthemachineof anothernameduser,where thatmachineis runningWebSphereMQandusingTCP/IP.Therefore,youcanusetheJMS Postcard applicationtoverifythatyoucancommunicatewithanotherserver.To usetheJMSPostcardapplicationforthis typeofverification,eitherbothmachines must beinthesamecluster (thesimplestmethod),oryoumustconfigurechannels tocommunicatebetweenthetwomachines(see“Verifyinga server-to-server installation”onpage24)

Toensurethatbothmachinesarepart ofthesame cluster,youcandoeitherof the following:

v RuntheJMSPostcardapplication forthefirst timeoneachmachine.TheJMS

Postcardapplicationdetectsthattherearenolocalqueuemanagersdefinedfor thatmachine,anddisplaystheDefaultConfigurationwizardsothatyoucan createthedefaultqueuemanagersandlinkthemtothedefaultcluster.

v Createyourownqueuemanagersonbothmachines,createacluster,and ensure thatthequeuemanagersthatyoucreateoneachmachinebelongtothesame cluster.

YoucanusetheJMSPostcardapplication withexistingqueuemanagers,aslong asbothqueuemanagersbelongtothesame cluster,orcommunicationchannels havebeen configuredbetweenthequeuemanagers.Alternatively,youcan

exchangepostcardsbetweentwoqueuesthatare usingthesamequeuemanageras theirmailbox.

For furtherinformation,see“UsingthePostcard applicationtoverifya server-to-serverinstallation”onpage31.

Setting

up

your

system

to

run

the

JMS

Postcard

Before youcanruntheJMSPostcardapplication, youmust ensurethat:

v Youare amemberoftheWebSphereMQadministratorsgroup(mqm).Ifyouare nota memberofmqm,ask someonewhoisamembertoruntheDefault

Configurationtoolonyourbehalf,eitherdirectly,orbyrunningtheJMS Postcardapplication,whichrunstheDefault Configurationtoolindirectly.

References

Related documents

Provided EM U aims at implementing a cyclically-adjusted mechanism while eliciting member states’ private information, the mechanism proposed in this paper presents one major di

Instead, there are sizeable di ff erences for GDP growth, and the Chow-Lin backdated series for Germany produces the best results at the euro area level, in terms of stability of

MIA-mi is a feature-length, micro-budget, and digital motion picture, produced, written, and directed by Yesenia Lima in pursuit of the Master of Fine Arts in Entrepreneurial

of all three species. Basal area exhibited a negative effect on abundance of pine seedlings but a 316.. first positive, later negative) on abundance of evergreen and marcescent oak

2000-Present: Clinical Professor; Department of Internal Medicine; The University of Texas Southwestern Medical School; Dallas, Texas..

There needs to be National and provincial consultations, workshops, further training etc with regards to implementation strategies of new policies with regard to South African

According to Schiefele, (as cited in Paris & Turner, 1995, p.664) “when students can choose tasks and texts they are interested in, they expend more effort learning

However, understanding these experiences as outcomes of social processes, such as racial formation and immigrant adaptation, can lead to more complex knowledge about how race