[jboss-dev-forums] [JBoss ESB Development] - How to implement queue to service mapping
Martin Myslík
do-not-reply at jboss.com
Fri Jul 26 03:54:00 EDT 2013
Martin Myslík [https://community.jboss.org/people/m.myslik] created the discussion
"How to implement queue to service mapping"
To view the discussion, visit: https://community.jboss.org/message/829924#829924
--------------------------------------------------------------
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:
System.out.println(reg.findEPR("BlueServiceESB", "BlueListener"));
But I have no idea, how to get the *category*, if I only know the correspong *listener*, In other words, I would like to use it like this:
System.out.println(reg.findEPR(MAGIC GOES HERE, services.get(i)));
Thanks for any tips.. I am literally lost here :-(
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/829924#829924]
Start a new discussion in JBoss ESB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130726/405be7fe/attachment.html
More information about the jboss-dev-forums
mailing list