Working with multiple sessions
Because each Session object is associated with a particular user, you can create multiple Session objects for different users. Each Session object you create can access only the information available to the associated user.
You cannot use one Session object to operate on the objects returned by another Session object. All of the objects you create with a Session object are bound to that Session object and cannot be used by other sessions. For example, if you have two sessions, A and B, and you use session B to get an Entity object, session A cannot access that Entity object.
Note: You cannot share a HCL Compass Session
among multiple threads.