It is quite easy to route messages. For example, write a Grails service like this:
class MyService { def myMethod(fooBarText) { log.info “Got text: ${ fooBarText }” } }
Then, using Camel’s bean integration, you can deliver messages from an in-memory queue directly to that Grails service:
from(“seda:my.queue”).filter { it.in.body.contains(“FooBar”) }.to(“bean:myService?methodName=myMethod”)
Cool, isn’t it? As usual, you can find more info on the plugin page on grails.org.
Diese Beiträge könnten Sie noch interessieren:
- Tomcat behind Apache 2 reverse proxy
- International AndroMDA Boot Camp in Frankfurt
- Parallels on the Mac: Where is my Insert key?
- JAX 2005: Softwarearchitektur = Kommunikation
- Preparing for openArchitecture 2005
Berater, Coach und Trainer für effektive Produktentwicklung