Open SPIManagedConnectionFactory.java and search for the character string CS_THSTR.
The object is located in the JNDI directory under the key SAPAdapterResources.
Open SPIManagedConnectionFactory.java and search for the character string CS_THREADMGR.
For example, the thread must be started in a sender adapter that is switched to active.
You manage the thread status in a separate variable.
Implement suitable start() and stop() methods.
The messaging system creates the thread for receiver channels.
AS Java administers an application and system thread pool for this purpose.
The maximum number of threads that each pool can contain is defined.
This limit is defined using the parameter MaxThreadCount in the kernel services ApplicationThreadManager and ThreadManager.
Ensure that the thread consumption of the adapter is well below this value. If necessary, advise your customers to set this value suitably high.
More information: Thread System
You can configure this limit in the service PI AF Core by using the parameter messaging.connectionDefinition.
You can set the parameter value as follows, for example:
name=myAdapter_http://myAdapterNamespace, messageListener=localejbs/AFWListener, exceptionListener=localejbs/AFWListener, pollInterval=60000, pollAttempts=60, Send.maxConsumers=7, Recv.maxConsumers=7, Call.maxConsumers=7, Rqst.maxConsumers=7)
More information: Properties for Service XPI AF Core