8/12/2019 Auto Client Reconnect IBM Webcast
1/57
IBM Software Group
WebSphere Support Technical Exchange
Exploiting Automatic Client Reconnectin WebSphere M !
Angel Ri"era # ri"era$u%&ibm&com 'WebSphere M (nix an) Win)ow% *e"el + Support,ate- ./0Ma10+./2
mailto:[email protected]:[email protected]:[email protected]:[email protected]8/12/2019 Auto Client Reconnect IBM Webcast
2/57
IBM Software Group
Agen)a
Intro)uctionSimple %cenario u%ing non0reconnectable client#u%ing M SER3ER'
Simple %cenario u%ing reconnectable client4rece)ence of mechani%m% for a client to connectto a 5ueue manager Reconnect inter"al #u%ing m5client&ini'
Reconnection to another 5ueue manager6 u%ingconnection7ame*i%tScenario u%ing CC,TM 8MS client from WAS
+WebSphere Support Technical Exchange
8/12/2019 Auto Client Reconnect IBM Webcast
3/57
IBM Software Group
What i% automatic client reconnect9
Allow% M client application% to reconnectautomaticall16 without writing an1 a))itional co)e6b1 configuring a number of component%&
In %ome ca%e%6 1ou will nee) to mo)if1 theapplication to incorporate new option%&
Automatic client reconnection i% inline&
The connection i% automaticall1 re%tore) at an1point in the client application program6 an) thehan)le% to open ob:ect% are all re%tore)&
2WebSphere Support Technical Exchange
8/12/2019 Auto Client Reconnect IBM Webcast
4/57
IBM Software Group
;nl1 for Tran%port T1pe of Client
Thi% feature applie% to M client% connecting to the5ueue manager u%ing a tran%port t1pe of-
C*IE7TThat i%6 u%ing a networ< connection "ia a
Ser"er0Connection Channel #S3RC;77'
It )oe% 7;T appl1 to M client% u%ing a tran%portt1pe of-
BI7,I7GS #inter proce%% communication%'
=WebSphere Support Technical Exchange
8/12/2019 Auto Client Reconnect IBM Webcast
5/57
IBM Software Group
Re5uirement%
Both the Client application an) the ueue Managermu%t be at- !&.&/&. or higher
8MS i% !&.&/&2 or higher&
Ser"er0Connection channel mu%t be >ull0,uplex-The ?%hare) con"er%ation%@ of the channel attributeM(ST ha"e a "alue of / or greater-
S AREC73 e5ual or greater than / A "alue of . mean% the channel i% alf0,uplex& A "alue of / or greater6 mean% >ull0,uplex
WebSphere Support Technical Exchange
8/12/2019 Auto Client Reconnect IBM Webcast
6/57
IBM Software Group
alf0)uplex "er1 %imple explanation #/'When u%ing alf0,uplex6 i% li
8/12/2019 Auto Client Reconnect IBM Webcast
7/57
IBM Software Group
alf0)uplex "er1 %imple explanation #+'The 5ueue manager recei"e) the 4ut re5ue%t an)then replie% with an ac
8/12/2019 Auto Client Reconnect IBM Webcast
8/57
IBM Software Group
alf0)uplex "er1 %imple explanation #2'If the networ< ha% a problem or if the 5ueuemanager en)% unexpecte)l16 the M clientCA77;T %en) a heartbeat to the 5ueue managera%
8/12/2019 Auto Client Reconnect IBM Webcast
9/57
8/12/2019 Auto Client Reconnect IBM Webcast
10/57
IBM Software Group
>ull0)uplex "er1 %imple explanation #+'
Can %en) heartbeat to %ee if the other componenti% %till connecte)
/.WebSphere Support Technical Exchange
Application
M client librar1 ueue Manager
H Wait &&&eartbeat
Ac&S3RC;77KTC4Klocalho%t#/=/='
7otice that the %pecification i% li
8/12/2019 Auto Client Reconnect IBM Webcast
35/57
IBM Software Group
Reconnect inter"al
Maximum Reconnect Inter"al ,efault% to /6 .. %econ)% #2. minute%' Setting in m5client&ini- ()"econnect*imeout
Reconnect Inter"al% ,ela1 con%i%t% of fixe) an) ran)om part Can be change) in m5client&ini"econ+elay #/...6+..' #+...6+..' #=...6/...'
Initial )ela1 / %ec Y ran)om inter"al of up to +.. m%+n) )ela1 i% + %ec% Y up to +.. m%*ater )ela1% are = %ec% Y up to /... m%
2WebSphere Support Technical Exchange
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
36/57
IBM Software Group
Reconnect inter"al #+'
The main rea%on for ha"ing a combination of a fixe)an) ran)om part i% to a"oi) a ma%%i"e reconnectattempt %imultaneou%l1 from man1 client%&>or example6 there are /6... reconnectable clientconnecte) to a 5ueue manager& The 5ueue manager i%%toppe) with 0ir an) re%tarte)&If there wa% onl1 a fixe) part in the reconnect inter"al6then the /6... client% will tr1 to reconnect at the %ame
time #
8/12/2019 Auto Client Reconnect IBM Webcast
37/57
IBM Software Group
n
ot
es
If the 5ueue manager i% en)e) with the proper flag%-
reconnection #0r' or %witcho"er #0%'But it i% not re%tarte) within the maximum reconnect inter"al #)efault i% 2. minute%'6then the reconnectable client% will i%%ue RC + = an) terminate-
C- am5%phac /Sample AM S4 AC %tarttarget 5ueue i% /
me%%age XMe%%age /me%%age XMe%%age +/.- D-=! - E3E7T - Connection Reconnecting #,ela1- !m%'/.- D-=! - E3E7T - Connection Reconnecting #,ela1- F=/m%'&&&/.- -+= - E3E7T - Connection Reconnecting #,ela1- 22+F+m%'/.- -+= - E3E7T - Reconnection faile)/.- -+= - E3E7T - Connection Bro
8/12/2019 Auto Client Reconnect IBM Webcast
38/57
IBM Software Group
Reconnection to another 5ueue manager
Allowing an M client to connect to the nexta"ailable 5ueue manager in a li%t of 5ueuemanager%-
Connection7ame*i%t
2WebSphere Support Technical Exchange
Application
M client librar1
ueue Manager /
ueue Manager +
8/12/2019 Auto Client Reconnect IBM Webcast
39/57
8/12/2019 Auto Client Reconnect IBM Webcast
40/57
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
41/57
IBM Software Group
Connection7ame*i%t #2' 0 am5%putc
(%ing non0reconnectable app%- onl1 at connecttime #%tartup'-
ML! i% running in ;ST/#/=/='MLMIG in ;ST+#/=/ '
Both are up an) running&We )o 7;T %pecif1 the 5ueue manager-
C- am5%putc /Sample AM S4(T. %tarttarget 5ueue i% /me%%age0/
=/WebSphere Support Technical Exchange
8/12/2019 Auto Client Reconnect IBM Webcast
42/57
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
43/57
p
Connection7ame*i%t # '
*etU% %top ML! - en)m5m 0i ML!
Then tr1 the client again-C- am5%putc /Sample AM S4(T. %tarttarget 5ueue i% /Me%%age0+
Becau%e ML! i% )own6 the client will tr1 toconnect to MLMIG an) it %uccee)%&Thu%6 the Me%%age0+ i% recei"e) b1 MLMIG&
=2WebSphere Support Technical Exchange
8/12/2019 Auto Client Reconnect IBM Webcast
44/57
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
45/57
p
Connection7ame*i%t Multi0In%tance #/'
A "ariation i% to u%e a Multi0In%tance 5ueue manager&In our example i% A7GE*MI
;ne in%tance i% in ho%t aemaix/#/= /'6 i% the Acti"e an)
another in%tance i% in ho%t aemaix+#/= /'6 i% the Stan)b1
Each were %tarte) b1- %trm5m 0x A7GE*MI#the 0x in)icate% to run in multi0in%tance mo)e'
*etU% )efine the M SER3ER-C- %et M SER3ER SVSTEM&,E>&S3RC;77KTC4Kaemaix/&x&com#/= /'6aemaix+&x&com#/= /'
=WebSphere Support Technical Exchange
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
46/57
Connection7ame*i%t Multi0In%tance #+'
When u%ing am5%phac6 the client will connect to the Acti"ein%tance6 an) will be able to put me%%age%&
The Acti"e in aemaix/ i% en)e) with a %witch o"er-
en)m5m 0i% A7GE*MI7ote- The 0% flag in)icate% to %witch o"er A7, to alert thereconnectable clien% to tr1 to reconnect&
Thi% will ma
8/12/2019 Auto Client Reconnect IBM Webcast
47/57
n
ot
es
;ST/- )%pm5 0x 0m A7GE*MIM7AME#A7GE*MI' STAT(S#Running'
I7STA7CE#aemaix/' M;,E#Acti"e' I7STA7CE#aemaix+' M;,E#Stan)b1'&
;ST+- )%pm5 0x 0m A7GE*MIM7AME#A7GE*MI' STAT(S#Running a% %tan)b1'
I7STA7CE#aemaix/' M;,E#Acti"e' I7STA7CE#aemaix+' M;,E#Stan)b1'&C*IE7T ;ST-C- am5%phac /
Sample AM S4 AC %tarttarget 5ueue i% /me%%age XMe%%age /&
;ST/- en)m5m 0i% A7GE*MI
;ST+- )%pm5 0x 0m A7GE*MIM7AME#A7GE*MI' STAT(S#Running' I7STA7CE#aemaix+' M;,E#Acti"e'
C*IE7T ;ST-/=-. -22 - E3E7T - Connection Reconnecting #,ela1- ! m%'/=-. -2 - E3E7T - Connection Reconnecting #,ela1- +m%'/=-. -=. - E3E7T - Connection Reconnecte)me%%age XMe%%age +
Notes: multi-instance - e4ample
=!WebSphere Support Technical Exchange
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
48/57
Client Channel ,efinition Table #CC,T'
The la%t mechani%m i%-Client Channel ,efinition Table #CC,T'7ee) to un%et M SER3ER an) m5client&ini
#Common pitfall' Thinor more )etail% %ee-http-KKwww&ibm&comK%upportK)oc"iew&w%%9ui) %wg+!.+=/.FWSTE- (%ing a Client Channel ,efinition Table#CC,T' in M 3! for ueue Manager Group%
=WebSphere Support Technical Exchange
IBM Software Group
http://www.ibm.com/support/docview.wss?uid=swg27024109http://www.ibm.com/support/docview.wss?uid=swg270241098/12/2019 Auto Client Reconnect IBM Webcast
49/57
A))ing channel% to a CC,T
A CC,T file i% generate) when the 5ueue manageri% create)&
To a)) channel% to the CC,T6 1ou nee) to )efinethe following-
/' A Ser"er Connection Channel6 %uch a%-
,E>I7E C A77E*#A7GE*MI' YC *TV4E#S3RC;77' TR4TV4E#TC4'
=FWebSphere Support Technical Exchange
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
50/57
A))ing channel% to a CC,T 0 +
+' ,efine a corre%pon)ing Client ConnectionChannel with the SAME name a% the Ser"erConnection Channel-,E>I7E C A77E*#A7GE*MI' Y C *TV4E#C*7TC;77'TR4TV4E#TC4' YC;77AME#Uaemaix/&Z&com#/= /'6aemaix+&Z&com#/=+/'U' Y
M7AME#A7GE*MI'
2' Cop1 a% binar1 the AM C*C *&TAB file into the
client ho%t&=' Setup the "ariable% a% mentione) in next page
' 4erform the te%t in page =!
.WebSphere Support Technical Exchange
8/12/2019 Auto Client Reconnect IBM Webcast
51/57
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
52/57
CC,T )etaile) tech)oc%
http-KKwww&ibm&comK%upportK)oc"iew&w%%9ui) %wg+!.+. =(%ing a Client Channel ,efinition Table #CC,T' in
WebSphere M 3! for ueue Manager Group%
http-KKwww&ibm&comK%upportK)oc"iew&w%%9ui) %wg+!.+. D+
(%ing a CC,T file to connect to multipleWebSphere M 5ueue manager% u%ing 8MS
+WebSphere Support Technical Exchange
http://www.ibm.com/support/docview.wss?uid=swg27020848http://www.ibm.com/support/docview.wss?uid=swg27020848http://www.ibm.com/support/docview.wss?uid=swg27020862http://www.ibm.com/support/docview.wss?uid=swg27020862http://www.ibm.com/support/docview.wss?uid=swg27020862http://www.ibm.com/support/docview.wss?uid=swg27020862http://www.ibm.com/support/docview.wss?uid=swg27020848http://www.ibm.com/support/docview.wss?uid=swg270208488/12/2019 Auto Client Reconnect IBM Webcast
53/57
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
54/57
A an) CC,T
http-KKwww0./&ibm&comK%upportK)oc"iew&w%%9ui) %wg+/D2/ !FConfiguring WebSphere Application Ser"er to connect "ia aCC,T to a WM 5ueue manager for Global Tran%action A
capabilit1&
7ot Supporte)-0 CC,T to connect to multiple )ifferent 5ueue manager%0 CC,T to connect to multiple multi0in%tance 5 manager%Supporte)-0 CC,T to connect to %ingle 5ueue manager 0 CC,T to connect to a %ingle multi0in%tance 5ueue manager
=WebSphere Support Technical Exchange
IBM Software Group
http://www-01.ibm.com/support/docview.wss?uid=swg21631879http://www-01.ibm.com/support/docview.wss?uid=swg21631879http://www-01.ibm.com/support/docview.wss?uid=swg216318798/12/2019 Auto Client Reconnect IBM Webcast
55/57
WebSphere Support Technical Exchange
A))itional WebSphere 4ro)uct Re%ource%*earn about upcoming WebSphere Support Technical Exchange webca%t%6 an) acce%%pre"iou%l1 recor)e) pre%entation% at-http-KKwww&ibm&comK%oftwareKweb%phereK%upportK%uppLtech&html
,i%co"er the late%t tren)% in WebSphere Technolog1 an) implementation6 participate intechnicall10focu%e) briefing%6 webca%t% an) po)ca%t% at-http-KKwww&ibm&comK)e"eloperwor
8/12/2019 Auto Client Reconnect IBM Webcast
56/57
IBM Software Group
8/12/2019 Auto Client Reconnect IBM Webcast
57/57
ue%tion% an) An%wer%