Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8478

Documentation - Client side thread management section incorrect examples

    XMLWordPrintable

Details

    Description

      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);
      

      Attachments

        Activity

          People

            rhn-support-pfestoso_jira Phil Festoso (Inactive)
            mstyk_jira Martin Styk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: