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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:34:43+00:00 2026-06-03T07:34:43+00:00

I am not able to connect to camel route having a SEDA queue. On

  • 0

I am not able to connect to camel route having a SEDA queue. On sever side I have following configuration:

<camel:route>
            <camel:from uri="seda:input"/>
            <camel:log  message =">>>>>data is : ${body}"/>
            <camel:inOnly uri="activemq:queue:TESTQUEUE"/>
        </camel:route>

I am trying to hit this route from a standalone client like this:

public static void main(String[] args) {

        CamelContext context = new DefaultCamelContext();
        producer = context.createProducerTemplate();
            producer.sendBody("seda:input","Hey");

}

But my producer is not able to connect to the seda queue.
Not able to hit queue of my route. Not able to add camelContext in my bean property. I am getting “Invalid property ‘camelContext’ of bean class”. If I am sending the body to SEDA queue, message is going there but not to the next element of the rout

  • 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-03T07:34:44+00:00Added an answer on June 3, 2026 at 7:34 am

    As Petter suggested, your client needs to connect to the same Camel Context which the SEDA route is defined in. In your example, it appears that you are creating a new DefaultCamelContext() and trying to send a message through to the route that is defined in another context.

    Generally, I define the Camel Context in Spring XML and then inject the context into any classes that need it…

    <camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring">
        <routeBuilder ref="myRouter"/>
    </camelContext>
    
    <bean id="myClient" class="com.mycompany.MyClient">
        <property name="camelContext" ref="camelContext"/>
    </bean>
    

    Then, your client code would simply need to call the following…

    getCamelContext().createProducerTemplate().sendBody("seda:input","Hey");
    

    That said, if your client code is not in the same JVM or not able to get a handle to the same CamelContext, then your options are to use JMS, REST, HTTP (or any camel component that support remote client interfaces)…instead of or around the SEDA endpoint.

    For example, you could wrap access to your SEDA queue with an HTTP endpoint (via camel-jetty) like this…

    from("jetty:http://localhost:9001/input").to("seda:input");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting an exception from Cruise Control about not being able to connect to
I'm not able to connect a simple client and a simple server. When I
I am not able to install VS2010 and WM7's SDK side by side. Has
I am only able to connect internet through emulator browser. I am not able
While deploying my web service I am not able to connect my Tomcat server
I downloaded Xcode 4.0.2 just a while back. I am not able to connect
I am not able to connect my PC to Android device using adb. I
i am not able to connect to MySQL database after working approx 5 hours
I'm not able to connect to internet on Android Emulator, I'm using Tata Photon+
I am not able to connect to Oracle using connection string and the correct

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.