Is the creation of MRvSession an expensive operation in terms of system resource? Is it better to have a pool of sessions created ahead of time or to create a session dynamically?

Is the creation of MRvSession an expensive operation in terms of system resource? Is it better to have a pool of sessions created ahead of time or to create a session dynamically?

book

Article ID: KB0087707

calendar_today

Updated On:

Products Versions
TIBCO Adapter SDK -
Not Applicable -

Description

Resolution:
Each MRvSession encapsulates a tibrvTransport and a tibrvQueue. So creating transport (TCP) connection can be an expensive operation. It would be best if you can create the pool of sessions ahead of time rather than dynamically.

Issue/Introduction

Is the creation of MRvSession an expensive operation in terms of system resource? Is it better to have a pool of sessions created ahead of time or to create a session dynamically?

Environment

Product: TIBCO Adapter SDK Version: 5.1.3, 5.3.0, 5.2.1, 5.3.2, 4.1.3, 5.0.x OS: All --------------------