|Applies To||RSA ClearTrust 5.0.1|
|Issue||Is the RSA ClearTrust Java Admin API threadsafe?|
|Resolution||Unlike the Runtime API, the RSA ClearTrust Java Admin API is not at all threadsafe. Put another way, you cannot have several threads or processes using the same connection at the same time. You can do this with the Runtime API, but not with the Admin API.|
If you have multiple threads that each need an Admin API, they must each use a separate connection. A common way to handle this is with a connection pool, where a set number of connections are reallocated. These connections can be allocated for exclusive use by a thread, then returned to the pool when that thread is done with it. This minimizes the overhead of establishing a connection and ensures the thread has exclusive use of the connection.
|Legacy Article ID||a17190|