1 Reply Latest reply on Mar 7, 2013 6:59 PM by Dongbo Xiao-Oracle

    getJMSDestinationRuntimeMBean Unknown foreign destination

    995292
      Hi. I'm new with JMS and I'm trying to count how many message a queue have.

      When I run the code with my Eclipse i get the right result.

      But when I deploy in LOCAL weblogic I get:
      javax.jms.JMSException: Unknown foreign destination

      This line throws the exception
      JMSDestinationRuntimeMBean destMBean = JMSRuntimeHelper.getJMSDestinationRuntimeMBean(ctx, queue);


      The queue it's not in my LOCAL weblogic. I mean:
      env.put(Context.PROVIDER_URL, " t3://172.xx.xxx.xxx:port");


      How the proper way to solve this?

      Thanks