-
Bug
-
Resolution: Done
-
Major
-
7.1.0.DR10
Book: Configuring Messaging
Revision: n_2419258_configuring-messaging_version_7.1.Alpha_edition_1.0_release_0-revision_8284776
Link: https://doc-stage.usersys.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/7.1.Alpha/single/configuring-messaging/#client-side_thread_management
Following examples are incorrect
Incorrect example 1
ServerLocator locator = ActiveMQClient.createServerLocatorWithoutHA(...)
ClientSessionFactory myFactory = locator.createClientSessionFactory();
myFactory.setUseGlobalPools(false);
myFactory.setScheduledThreadPoolMaxSize(10);
myFactory.setThreadPoolMaxSize(-1);
This should look like following one:
Correct example 1
ServerLocator locator = ActiveMQClient.createServerLocatorWithoutHA(transportConfiguration);
locator.setUseGlobalPools(true);
locator.setThreadPoolMaxSize(-1);
locator.setScheduledThreadPoolMaxSize(10);
ClientSessionFactory myFactory = locator.createSessionFactory();
Incorrect example 2
ConnectionFactory myFactory = ActiveMQJMSClient.createConnectionFactory(myFactory);
myFactory.isUseGlobalPools(false);
myFactory.setScheduledThreadPoolMaxSize(10);
myFactory.setThreadPoolMaxSize(-1);
This should look like following one:
Correct example 2
ActiveMQConnectionFactory myConnectionFactory = ActiveMQJMSClient.createConnectionFactory(url, "ConnectionFactoryName"); myConnectionFactory.setUseGlobalPools(false); myConnectionFactory.setScheduledThreadPoolMaxSize(10); myConnectionFactory.setThreadPoolMaxSize(-1);