Sailpointcontext plugin threading

Which IIQ version are you inquiring about?

[Replace this text with your version of IIQ. The more specific you can be (7.1, 8.3, 8.X), the more people can help. If you do not know, put Unsure.]
8.4

Please share any images or screenshots, if relevant.

[Please insert images here, otherwise delete this section]

Please share any other relevant files that may be required (for example, logs).

[Please insert files here, otherwise delete this section]

Share all details about your problem, including any error messages you may have received.

[Replace this text with the problem that you are facing]

want a better understanding, this SailpointContexts that we are calling is within a plugin, which extends the BasePluginResource. We simply do getContext() function to get a SailpointContext. When we get the context, we try to get the jdbcConnection from the context. if this connection is running and not yet done with database call, anyone else calling this api where getting another jdbcConnection to be opened and run for the same plugin. is that going to cause an threading issue? or connection issue? does the base resource sailpointcontext open a new thread?

You can create a new context by utilizing the SailPointFactory class and below are the methods available to create a new context.

for ex: You can create a new method to create a new context and if it is already created then use the getCurrentContext()

SailPointContext context = SailPointFactory.getCurrentContext(); 
   if(context == null) {
      context = SailPointFactory.createContext("Test User Name");
   }

Hi sorry but for the same context from factory does that create a new thread? JDBC connection from the context can be paralleled?

Hi @xliu962 In my opinion, this shouldn’t be an issue. Typically, the IIQ and plugin datasources are configured with connection pooling settings (for example, maxSize=50), allowing them to handle up to 50 concurrent requests. You can verify these settings in the iiq.properties file.

1 Like

Yes, it can be paralleled and shouldn’t be a issue

The thread should be different if the request is different, so I don’t see any issue in this case.
You may just need to review your connection pool settings.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.