Products | Versions |
---|---|
TIBCO InConcert | - |
Not Applicable | - |
Resolution:
What is meant for this is doing the following in IcJava JNI but applies to ALL TIBCO InConcert API bindings :
MyClient.directInitalize (user_name, user_password, IcServer, service, network, daemon, ""); /*creates session 1*/
IcSession MySession = MyClient.getSession();
Any further calls then with the same service, network and daemon will now open quicker because the framework needed for the RV session is saved and reused. Creating the RV framework is a relative expensive operation.
The best way to save this session is in a private static class member.
NOTE: All other directInitalizes calls must be eventually matched with corresponding calls to terminate otherwise file handles are used up and eventually you will get one of several errors as resources are exhausted.