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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:26:20+00:00 2026-06-13T12:26:20+00:00

I have defined a camel jetty-activemq route as below: from(jetty:http://0.0.0.0:8087/url1).to(activemq:queue:queue1) Does camel create an

  • 0

I have defined a camel jetty-activemq route as below:

from(“jetty:http://0.0.0.0:8087/url1”).to(“activemq:queue:queue1)

Does camel create an activemq connection and then use that connection for all messages received by jetty or create an activemq connection per message.

I am planning to use a pooled connection for activemq, since my message inflow is pretty high per second, i need to understand camel behaviour to define the max connection pool size.

  • 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-13T12:26:21+00:00Added an answer on June 13, 2026 at 12:26 pm

    The ActiveMQ component, as well as the JMS component, is based on JMSTemplate from Spring Framework, when sending messages.

    As you fear, it creates and closes a connection+session+producer per message, which is not optimal performence wise.

    As recommended in the activemq component documentation, you should set it up with pooling. Then you will reuse the connection/session/producer.

    You could actually live with just one connection in the pool for that pool if you intend to use it for this route only.

    ActiveMQ has made a summary of tips and tricks with JMSTemplate. It’s worth reading.

    Update: Regarding the number of Connections related to concurrency:

    Simplified, a Connection is a network connection (“socket”) with the broker, that is shared among many threads. Each of your threads would still have it’s own (pooled) session that uses the shared connection and operate concurrently. Multiple connection could still be an enhancement, if you have multiple ActiveMQ brokers and want to loadbalance between them (given ActiveMQ is the bottleneck and not your application).

    failover:(ssl://host1:61616,ssl://host2:61616)
    

    It might also be that, in practice, performance might go up to some small extent by using a limited set of connections instead of one, but that you probably have to test out for your particular environment.

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

Sidebar

Related Questions

Have to throw an exception in my camel route defined in XML. Found throwException
I have defined a table type PL/SQL variable and added some data there. create
I have defined a rectangle drawable like this: <shape xmlns:android=http://schemas.android.com/apk/res/android android:shape=rectangle> <corners android:radius=4dip/> <solid
I have 2 tables, defined as such: CREATE TABLE `product` ( `pid` SMALLINT( 5
I have a user defined class that I want to create a public List
I have Camel route that I would like to expose as a REST Web
I have defined following control template for my custom control. <ControlTemplate TargetType={x:Type local:CustomControl}> <Grid
I have defined the following class using COM to use the IGroupPolicyObject using C#.NET:
I have defined a ConfigurationProperty class, which is basicly a key-value pair (with key
I have defined the following two functions test <- function(t) { return( (0.5*eta^2/theta)*(1-exp(-2*theta*t)) )

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.