Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8325189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:20:56+00:00 2026-06-09T00:20:56+00:00

I am using dynamic queues for testing with names like dynamicQueues/Foo, but in the

  • 0

I am using dynamic queues for testing with names like dynamicQueues/Foo, but in the web console I am seeing the queue names as dynamicQueues/Foo rather than just Foo.

Other code (not ours) uses the same dynamicQueues/Foo but the queue name on the console is just Foo so things are misaligned so to speak.

I have followed the instructions here: http://activemq.apache.org/jndi-support.html

I am confused about whether the queue name reported in the web console should include dynamicQueues or not – finding it hard to debug our problem as a result.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:20:57+00:00Added an answer on June 9, 2026 at 12:20 am

    You should see Foo in the console window, yes.

    This code will produce a message on FOO and show the queue as FOO in the web console (amq 5.6.0):

    Properties props = new Properties();
    props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.apache.activemq.jndi.ActiveMQInitialContextFactory");
    props.setProperty(Context.PROVIDER_URL,"tcp://127.0.0.1:61616");
    javax.naming.Context ctx = new InitialContext(props);
    ConnectionFactory cf = (ConnectionFactory)ctx.lookup("ConnectionFactory");
    Connection conn = cf.createConnection();
    Destination dest = (Destination)ctx.lookup("dynamicQueues/FOO");
    Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
    MessageProducer prod = s.createProducer(dest);
    prod.send(s.createTextMessage("Hello, World!"));
    

    Are you sure you are using JNDI to lookup the queue and that you did not configure anything in jndi.properties?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am calling functions using dynamic function names (something like this) $unsafeFunctionName = $_POST['function_name'];
Here I have to send and receive dynamic data using a SysV message queue.
I would like to write a hql query using a dynamic instantiation with a
Most of the examples that I seem to run into are using dynamic queues
Without using dynamic SQL, and other than an If ELSE is there any way
I have a number of data structures (trees, queues, lists), created using dynamic allocation
I have to send and receive dynamic data using a SysV message queue for
I want to create a dynamic queue (using the keyword new ) with an
I am using Dynamic Data Web Entities Application website and need control of the
I'm using @dynamic properties in combination with -forwardInvocation: to generate properties at runtime (like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.