One of the things I do now is something like, having
/slayer/request/requestXPTO
/slayer/response/somekey
and after I get the "path" info for those urls, invoke something like on a "resource" object
However I don't know how to have access to the channels currently defined on the context. Now I'm "injecting" then on my "resource" object when I instanciate it, likeCode:if(channel.equals("request")){
responseBean = doRequest(rb, synchronous);
}
if(channel.equals("response")){
responseBean = doResponse(rb, synchronous);
}
However, I should be able to access the "current context" in a static way to avoid this.Code:context.start();
resource = (Resource) context.getBean("resource");
resource.setAvailableChannels(context.getBeanNamesForType(MessageChannel.class));
Is this possible?
Cheers.

