One of the things I do now is something like, having
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, like
responseBean = doRequest(rb, synchronous);
responseBean = doResponse(rb, synchronous);
However, I should be able to access the "current context" in a static way to avoid this.
resource = (Resource) context.getBean("resource");
Is this possible?