Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing Policy doesn't seem to work #51

Open
anixan opened this issue Aug 11, 2015 · 0 comments
Open

Routing Policy doesn't seem to work #51

anixan opened this issue Aug 11, 2015 · 0 comments

Comments

@anixan
Copy link

anixan commented Aug 11, 2015

Hi,

So I found another way to get a policy setup as shown below.

However when testing I was expecting to see the output in the console which i didn't.

I suspect that the policy isn't being attached properly, any ideas?

@Override
    void configure() {
        def config = grailsApplication?.config

        //Throttler Policy
        ThrottlingInflightRoutePolicy policy = new ThrottlingInflightRoutePolicy()
        policy.setMaxInflightExchanges(20)
        policy.setResumePercentOfMax(10)
        policy.setLoggingLevel(LoggingLevel.WARN)

        from("seda:input.queue").routePolicy(policy).to("seda:process.history")
        from("seda:input.queue.batch").routePolicy(policy).to("seda:process.history")

from("seda:process.history").to("bean:testService?method=showMsg")

    }

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant