0 Replies Latest reply on Aug 1, 2018 11:19 AM by Abdelhakim AIT ERRAMI

    Couldn't create session factory even if connection to remote provider is OK

    Abdelhakim AIT ERRAMI Newbie



      I make a jar to connect to JMS provider, it's work fine in a server (a) but doesn't work from server (b).

      I verify that connection to the JMS provider from server (b) is OK via telnet as shown below:

          -> telnet -d 4447 Trying Connected to

      The logs and exception that it's throw is below :

      2018/08/01 11:19:47:921 - Processing command line arguments... 
      2018/08/01 11:19:47:927 - Preparing the output...  Writing to file = true
      2018/08/01 11:19:50:315 - Trying to establish connection, attempt: 0
      2018/08/01 11:19:52:132 - Connecting to provider: remote:// using user: oad_user
      2018/08/01 11:19:52:132 - Creating a regular (non-secure) connection factory...
      2018/08/01 11:19:53:073 - Opening a connection to the JMS provider...
      2018/08/01 11:20:24:192 - Attempt failed: Failed to create session factory javax.jms.JMSException:
      Failed to create session factory
      at org
      at org
      at com
      at com
      at com
      at com
      Caused by: ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.]
      at org
      at org

      I don't how to debug such a problem knowing i'm new in JMS, i'll be grateful for any remarks and ideas..

      Many thanks