1 Reply Latest reply on Sep 3, 2019 10:02 PM by Wrushasen Dakhane

    JMS Foreign Server unable to lookup destination

    Wrushasen Dakhane

      1. Defined Foreign server inside JMS Module

      2. Created destination queue and destination conn factory;

      3. Now while puting the message on the local queue JNDI. But context.lookup(local jndi name of destination)

       

      causing NameNotFoundException.

       

      InitialContext context = new InitialContext();

       

      // lookup the queue object

      Queue queue = (Queue) context.lookup("jms/SelfServiceStatusQueue");

       

      // lookup the queue connection factory

      QueueConnectionFactory conFactory = (QueueConnectionFactory) context.lookup("jms/SelfServiceConnectionFactory");