- 
        1. Re: Create queue dynamically after Wildfly server is startedwwang2016 Jun 25, 2019 2:52 PM (in response to wwang2016)I also tried ActiveMQConnectionFactory activeMqconnectionFactory = new ActiveMQConnectionFactory( "vm://localhost" ); I got the same error message 
- 
        2. Re: Create queue dynamically after Wildfly server is startedwwang2016 Jun 25, 2019 3:12 PM (in response to wwang2016)I removed port-offset (it was 400), and now I got a different error message: Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance Caused by: javax.jms.JMSSecurityException: AMQ119031: Unable to validate user from /127.0.0.1:56008. Username: null; SSL certificate subject DN: unavailable Caused by: ActiveMQSecurityException[errorType=SECURITY_EXCEPTION message=AMQ119031: Unable to validate user from /127.0.0.1:56008. Username: null; SSL certificate subject DN: unavailable]"}} It looks like I need some additional configuration? 
- 
        3. Re: Create queue dynamically after Wildfly server is startedjewellgm Jun 25, 2019 4:27 PM (in response to wwang2016)Rather than directly instantiating the connection factory, have you tried resource injection? The resource will be available to you during the execution of the method marked with @PostConstruct. @Resource ConnectionFactory cf; You can specify the JNDI name of the connection factory inside the annotation if the default CF isn't the one you want. Is your bean marked as a @Singleton, or are you taking some other precaution to make sure the dynamic queue hasn't already been created? 
- 
        4. Re: Create queue dynamically after Wildfly server is startedmayerw01 Jun 26, 2019 5:15 AM (in response to wwang2016)Did you try this? ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://${hostname}:61616"); 
 
     
    