public static void initializeGlobalThreadPoolProperties(){
  setGlobalThreadPoolProperties(Integer.valueOf(System.getProperty(ActiveMQClient.THREAD_POOL_MAX_SIZE_PROPERTY_KEY,"" + ActiveMQClient.DEFAULT_GLOBAL_THREAD_POOL_MAX_SIZE)),Integer.valueOf(System.getProperty(ActiveMQClient.SCHEDULED_THREAD_POOL_SIZE_PROPERTY_KEY,"" + ActiveMQClient.DEFAULT_SCHEDULED_THREAD_POOL_MAX_SIZE)));
}

public static void initializeGlobalThreadPoolProperties ( ) { setGlobalThreadPoolProperties ( Integer . valueOf ( System . getProperty ( ActiveMQClient . THREAD_POOL_MAX_SIZE_PROPERTY_KEY , "" + ActiveMQClient . DEFAULT_GLOBAL_THREAD_POOL_MAX_SIZE ) ) , Integer . valueOf ( System . getProperty ( ActiveMQClient . SCHEDULED_THREAD_POOL_SIZE_PROPERTY_KEY , "" + ActiveMQClient . DEFAULT_SCHEDULED_THREAD_POOL_MAX_SIZE ) ) ) ; }
initializes the global thread pools properties from system properties . this method will update the global thread pool configuration based on defined system properties ( or defaults if they are not set ) . the system properties key names are as follow : activemqclient . thread_pool_max_size_property_key = " activemq . artemis . client . global . thread . pool . max . size " activemqclient . scheduled_thread_pool_size_property_key = " activemq . artemis . client . global . scheduled . thread . pool . core . size the min value for max thread pool size is 2 . if the value is not - 1 , but lower than 2 , it will be ignored and will default to 2 . a value of - 1 configures an unbounded thread pool . note : if global thread pools have already been created , they will not be updated with these new values .
