Does anyone have any experience using the opswclient.jar?
We have a situation where we need to write a single script that connects to two different meshes. I'm looking at the twist docs, and the inital OpswareClient object, but I can't see how to create multiple connections.
The 'connect' method states:
Create a connection to the specified Opsware server. Once a connection is formed, the connection remains for duration of the application until it is explicitly disconnected or a new connection is formed in favor of the existing connection. Only one connection to an Opsware server can exist at any given time, though multiple users may share the same connection. Multiple connections can exist if each connection is directed at a unique Opsware server. Each connection is robust in it will attempt to automatically reconnect if a network failure is detected, or a laptop revives from a sleep state. By default, the connection uses IIOP/HTTPS to connect to the Opsware server.
It does state 'Multiple connections can exist if each connection is directed at a unique Opsware server.', which is why I'm guessing this *can* work, but it sure doesn't seem to - When I try to connect to the second mesh, it just overwrites the original object with the new connection. Looking at OpswClientEndpoint, it states that it's a singleton, so I'm afraid that the documentation is wrong.