I am working on a tool for visualisation of messages intercepted in JBossESB. The problem is, that when I intercept a message (using Pipeline Interceptor), I get the full service name + listener from the sender field (message.getFrom()), but I only get queue from the receiver field (message.getTo()).
I would like my communication to look like message: service ---> service
At the moment, I am trying to acomplish this by implementing a hashMap which would map every queue to corresponding service. I am able to retrieve some information from registry by doing this:
System.out.println("---Loading all services in registry---");
reg = RegistryFactory.getRegistry();
List<String> services = reg.findAllServices();
But this only returns the listeners of my registered services - not their categories!
This is the output: [JBpmCallbackService, DeadLetterService, SimpleListener, BlueListener]
It would be easy for me to retrieve desired information using this: