7 Replies Latest reply on Sep 3, 2013 12:08 PM by Justin Bertram

    How to set Client ID when subscriber is in one AS7 and JMS server is in another AS7

    William Moore Newbie

      I have code which is working in a standalone application that I must move into a JBOSS AS7 server.

       

      Here is the code:

       

        context = new InitialContext();
         TopicConnectionFactory factory = (TopicConnectionFactory) context.lookup("java:/ConnectionFactory1Mgmt");
         connection = factory.createTopicConnection();
         connection.setClientID("MYCATR");
         topicSession = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);

       

      When the setClientID is called, the following error is raised:

      This method is not applicable inside the application server.