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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:23:12+00:00 2026-06-18T05:23:12+00:00

I’m trying to start a Camel route on GAE and am running into one

  • 0

I’m trying to start a Camel route on GAE and am running into one brick wall after the next. First I tried a route that looked like this:

from("direct:start")
    .process(new Processor() {
        @Override
        public void process(Exchange exchange) {
            logger.info("I made it!");
        }
    })
    .to("direct:end");

But that doesn’t do anything. Being new to both Camel and GAE, I suspect that’s because the direct component doesn’t act as a consumer for the beginning of a route. So then I tried kicking off a timer:

from("timer://runOnce?repeatCount=1")
    .process(new Processor() {
        @Override
        public void process(Exchange exchange) {
            logger.info("I made it!");
        }
    })
    .to("direct:end");

Only to get a nasty error from GAE:

Error: access denied (java.lang.RuntimePermission modifyThreadGroup)

And it turns out you can’t create new Thread instances on GAE, and that’s exactly what the Timer component does.

So then I tried kicking the route off with a bean:

public class DummyBean {
    public void kickoffRoute() { return; }
}

// Inside the method that creates and starts the Camel route
SimpleRegistry reg = new SimpleRegistry();
DummyBean bean = new DummyBean();
reg.put("dummy", bean);

CamelContext camel = new DefaultCamelContext(reg);
camel.disableJMX();

// Inside my RouteBuilder
from("bean:dummy")
    .process(new Processor() {
        @Override
        public void process(Exchange exchange) {
            logger.info("I made it!");
        }
    })
    .to("direct:end");

I ran this, only to get the same “access denied” error as from before with the Timer.

All I’m trying to do is kick off a route from inside GAE so I can start getting familiar with both technologies (Camel & GAE). But for the life of me, I can’t figure out how to do this – every Camel component seems to create threads, which are illegal on GAE! So I ask:

  1. How do you even kickoff a route (an initial producer – Timer, or otherwise) on GAE? I see there is a Camel-GAE component, and I’m certainly willing to read up on it and learn how to use it, so that I could have routes starting with, say, a ghttp:///startRoute endpoint, but I’m really just starting out here and am hoping for an easier component/endpoint to work with.
  2. If both Timer and Bean components create threads, and this is disallowed on GAE, I have a sick feeling in my stomach that most/all Camel components are disallowed on GAE. Is this the case?!?! If so, how do you build useful/meaningful routes on GAE? Or is there some GAE “trick” to getting Camel to run and create threads? For instance, I know GAE backends do not suffer the same threading restrictions as frontend instances, etc.

Thanks in advance!

  • 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-18T05:23:13+00:00Added an answer on June 18, 2026 at 5:23 am

    Camel is built to run on Java environments using Java SE 6/7 with whatever that implies in file system access, thread creation, possibilities to open ports etc.

    Google App Engine has, as you realised, several restrictions. That does not make Camel unusable at all. You can use a lot of the routing features, producers endpoints (.to(..)), transformations, etc etc.

    In fact, in Java EE Application Servers, there are similar restrictions, but that does not prevent usage of camel.

    If you really are up for it, and need to do everything camel inside GAE, it’s perhaps possible to make jack in Camels pluggable threading models into GAE.

    Disclaimer: I have never used GAE tasks, but there is some documentations here

    https://developers.google.com/appengine/docs/java/taskqueue/
    http://camel.apache.org/threading-model.html

    You can also try to start the events by whatever feature you have in GAE and just use a producer template to kick start a Camel route.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm making a simple page using Google Maps API 3. My first. One marker
I am currently running into a problem where an element is coming back from
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,

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.