Setting number of connect attempts on JNDI lookup.

Setting number of connect attempts on JNDI lookup.

book

Article ID: KB0083947

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -

Description

The number of connect attempts can be set on the connection to JNDI server in the following ways.

1).  For Java applications, the parameter "com.tibco.tibjms.connect.attempts" can be passed as command option.  For example,

java -Dcom.tibco.tibjms.connect.attempts=5,500 

The EMS client library will try to connect to the JNDI server five times, 500ms apart.

2).  In the application code, the following call is set before lookup().

com.tibco.tibjms.Tibjms.setConnectAttempts("5,500");

Environment

All

Issue/Introduction

By default, in JNDI lookup, EMS client library connects to JNDI server two times 500ms apart. The number of connect attempts can be set in the connection to JNDI server.