How to decrease the value of timeout (default is 2-3 minutes) at Queue connection factories in WAS 8.0.0.10?

I am a java developer. I have created the Queue connection factories and Queues in WAS 8.0.0.10 in order to connect to IBM MQ. I want to test the timeout scenario, hence, i purposely shut down the IBM MQ. It took about 2-3 minutes to get the expected timeout result. I want to decrease the value of timeout, however, i could not find any configuration in there.

May i know is there possible to configure the timeout value? Because i try out almost all the timeout configuration, but none of them helps. Thank you.

It depends on which TIMEOUT you are trying to configure.

The TCP Connection Timeout for an initial connection can be configured by setting the Connect_Timeout value to the number of seconds you want the connection to wait for an initial TCP connection. This would apply for instance if the server was down, or a network connection to the server was down. If the server was up and reachable over the network and only the MQ listener (or all of MQ) was shutdown then the response from the server to a connection to the MQ listener port would be an immediate “Connection refused” and you would never hit the TCP Connection Timeout.

You can set Connect_Timeout in various ways, two of which are:

  1. mqclient.ini file (see Location of the client configuration file) in the TCP stanza, for example:

    Plain text
    Copy to clipboard
    Open code in new window
    EnlighterJS 3 Syntax Highlighter
    <code> TCP:
    Connect_Timeout=30
    </code>
    <code> TCP: Connect_Timeout=30 </code>
     TCP:
         Connect_Timeout=30
    
  2. Passing a java system property equivalent to the above, for example:

    Plain text
    Copy to clipboard
    Open code in new window
    EnlighterJS 3 Syntax Highlighter
    <code> -Dcom.ibm.mq.cfg.TCP.Connect_Timeout=30
    </code>
    <code> -Dcom.ibm.mq.cfg.TCP.Connect_Timeout=30 </code>
     -Dcom.ibm.mq.cfg.TCP.Connect_Timeout=30
    

If you are looking for how to set the timeout of a existing connection to MQ there are a few things to note:

IBM MQ clients/queue managers by default send heartbeat messages when a channel is idle. The HBINT of the SVRCONN channel will define the interval in seconds at which a heart beat message is sent if no other traffic has passed over the channel for JMS MQ clients.

Normally the client should always initiate the HB and the queue manager will respond. If the queue manager does not receive a HB request in HBINT+5 seconds it will initiate a HB to the client and expect a response.

The timeout is based upon 2*HBINT for HBINT‘s of less than 60 seconds and HBINT + 60 for HBINT‘s of over 60 seconds. The default HBINT on a SVRCONN is 300 so the TIMEOUT of a MQ connection to a channel with the default HBINT would be 360 seconds. You mention 2 – 3 minutes I suspect if you timed it on a watch it would be 6 minutes.

If you wanted to set the timeout to 30 seconds then you would alter the SVRCONN channels HBINT to 15 seconds, for example:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>ALTER CHL(CHL.NAME) CHLTYPE(SVRCONN) HBINT(15)
</code>
<code>ALTER CHL(CHL.NAME) CHLTYPE(SVRCONN) HBINT(15) </code>
ALTER CHL(CHL.NAME) CHLTYPE(SVRCONN) HBINT(15)

Note that the value only takes effect the next time you make a client connection to the channel, it would not impact the HBINT of already running channels.

Additional note that when connecting to MQ queue managers v6 or older, client HB messages are only sent when the client is in a GET with WAIT operation, not at other times.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật