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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:53:36+00:00 2026-05-17T14:53:36+00:00

my camel route is given below <camelContext id=camel xmlns=http://camel.apache.org/schema/spring > <route> <from uri=bean:SendClass?method=send />

  • 0

my camel route is given below

 <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring" >
    <route>
      <from uri="bean:SendClass?method=send" />
      <to uri="jms:MyQueue" pattern="InOnly" />
    </route>
    <route>
    <from uri="jms:MyQueue" />
    <to uri="bean:recvClass?method=recv" />
    </route>
  </camelContext>

The send method sends messages when activated by a 3rd party Pojo at some irregular intervals.But, the problem i think is camel is restarting
the routes once the message is being received by recv bean and resending the same message (hundred’s of them in a second ) .Ideally i want it to
send the message when the send method gets activated and a new message has been created (i.e JMS Queue should be having unique message’s).how do i do this ?

possible solutions being:

  1. is their some attribute which i can place inside the <from.../> to do this ?
  2. write a processor to filter unique message’s between the send bean and the queue .
  3. Is their some other way of routing it without using the <from uri="bean:..." />

thanks
sanre6

  • 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-05-17T14:53:36+00:00Added an answer on May 17, 2026 at 2:53 pm

    You should not have the 1st route. When you do that you tell Camel to constantly invoke the send method on that bean and route it. And hence why you see 100s of messages per sec.

    Instead you should use some Camel API from within your bean code and send the message to the JMS queue. For example using a ProducerTemplate.

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

Sidebar

Related Questions

I'm trying to run the Camel Example camel-example-spring-jms (also at http://activemq.apache.org/camel/tutorial-jmsremoting.html ). However, when
My camel context sample. <camel:camelContext> <camel:route id=r1> <camel:from=someEndpoint/> ... <camel:to=to2/> </camel:route> <camel:route id=r2> <camel:from=to2/>
trying to use this route: from(activemq:profiles).aggregate(header(cheese)).batchSize(30).bean(ProfilesQueueService, saveContacts) Fails with: No signature of method: org.apache.camel.model.RouteType.aggregate()
How can I do multipart file uploads using the Apache Camel HTTP component ?
I'm trying to retrieve the stacktrace from the onException handler in Apache Camel: <onException>
I have a Camel Route Definition written in Java DSL like this: from(myEndpoint) .throttle(200)
In an Apache Camel route, I want to take several headers and compose them
I have a camel route: from(file:///u01/www/images/nonprofits-test?move=.done&preMove=.processing&filter=#nonpFileFilter&minDepth=2&recursive=true) Later on in the route I need to
I'm trying to integrate Google Places API using Apache Camel (2.10-SNAPSHOT) and Spring (3.0.7.RELEASE)
We're using camel routes to post values from a queue to an http endpoint.

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.