Products | Versions |
---|---|
TIBCO Enterprise Message Service | - |
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");