This discussion is archived
1 Reply Latest reply: Mar 7, 2013 10:59 AM by 653697 RSS

getJMSDestinationRuntimeMBean Unknown foreign destination

995292 Newbie
Currently Being Moderated
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://");

How the proper way to solve this?

  • 1. Re: getJMSDestinationRuntimeMBean Unknown foreign destination
    653697 Journeyer
    Currently Being Moderated
    I got the impression that the JMS destination is not a WebLogic destination. In other words, it is a JMS destination that is running on a foreign JMS provider. If it is the case, I don't think you can use JMSRuntimeHelper to access the MBeans because the helper only works with WLS JMS destinations.
    You need to use the JMX capability provided by the foreign JMS provider.



  • Correct Answers - 10 points
  • Helpful Answers - 5 points