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 7756133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:44:31+00:00 2026-06-01T12:44:31+00:00

So I got my ActiveMQ to receive messages from another location woo hoo –

  • 0

So I got my ActiveMQ to receive messages from another location woo hoo – happy dance going on here this morning!

Now I need to take subsequent steps on the messages once they arrive in the queue.

Specifically, depending on the file name, it will need to be sent to another queue or directly to another process if that can happen.

For instance, a one file is sent that contains information about changes to a court session. I need to read that XML and update some local MySQL tables. Could the court session process be a webservice? ideally I would like to just pass along the file to that service.

Another file is sent that contains information about a cancelled warrant, I need to send information from that file to a stored procedured on an external Oracle database.
I can tell from the file name what the next process is that the file should be sent to.

So, I am looking for suggestions on what would my best course of action is to set up the additional processing for the files that are being sent to our queue?

Thanks a bunch!!!
BTW – We have already ordered ‘ActiveMQ in Action’ and ‘Camel in Action’ and I will be reading those but for right now, any specific newbie guidance will be greatly appreciated.

leslie

  • 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-01T12:44:33+00:00Added an answer on June 1, 2026 at 12:44 pm

    Camel’s content based router is what you are looking for. It allows you to setup routing rules based on the message body/headers/properties…

    Here is a basic example that reads from an inbound queue and simply delegates to other queues based on headers…

       from("activemq:queue:inboundQueue")
            .choice()
                .when(header("foo").isEqualTo("bar"))
                    .to("activemq:queue:barQueue")
                .when(header("foo").isEqualTo("cheese"))
                    .to("activemq:queue:cheeseQueue")
                .otherwise()
                    .to("activemq:queue:generalQueue");
    

    In addition to checking message headers, you can also check the body and properties (using simple expressions, xpath, etc) to determine proper routing, etc…

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

Sidebar

Related Questions

Got a problem with selecting message from topic by message id. Here’s the boiled
Got it from php.net, but I am not sure is this how everybody destroy
I got activemq running on remote server. When I connect to it from my
I'm using ActiveMQ (with Spring) for sending messages to remote OSGi-Container. This works very
Got this idea from this previous question. How to create a generic array in
I'm using ActiveMQ to send and receive messages using a C# app. However I'm
I got several questions regarding this issue 1) ActiveMQ after installed and started also
I have configured Spring DefaultMessageListenerContainer as ActiveMQ consumer consuming messages from a queue. Let's
Got another simple question here that is eluding me. I have 2 classes: namespace
Using stomp.py (3.0.5) with python (2.6) alongside Apache ActiveMQ (5.5.1). I have got the

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.