[
http://jira.jboss.com/jira/browse/JBESB-575?page=comments#action_12363053 ]
Tom Fennelly commented on JBESB-575:
------------------------------------
I think we're gone off in a bit of a tangent there. I'm not suggesting we change
how EPRs etc are used, or what they mean.
I'm just stating the fact that within the core ESB code, we have 3 different ways of
doing essentially the same thing - going from a service cat:name combo to a working
courier that can deliver a message to that service. In most of the situations that
I've seen, the code has been (for the most part) a c+p job. This is how I ended up
creating the MessageDeliveryAdapter and Bill ended up creating the ServiceInvoker.
Neither of these classes change anything about how EPRs etc are used. They just
encapsulate this 90%+ usecase into an easy to use class, cutting out the need to write all
that ugly code that most people are not interested in (IMO).
So out of that I was trying to highlight 2 main problems:
1. Situations where the core ESB code could be cleaned up by replacing this boiler plate
code with one of the 2 classes I mentioned.
2. The fact that we have 2 classes doing the same thing - MessageDeliveryAdapter and
ServiceInvoker.
Standardize on a message delivery mechanism...
----------------------------------------------
Key: JBESB-575
URL:
http://jira.jboss.com/jira/browse/JBESB-575
Project: JBoss ESB
Issue Type: Task
Security Level: Public(Everyone can see)
Affects Versions: 4.2 Milestone Release 2
Reporter: Tom Fennelly
Assigned To: Mark Little
Fix For: 4.2
A few "(anti-)patterns" have developed re ESB-Aware message delivery to an
endpoint:
1. Raw code that deals right down to the level of EPRs and Couiers (Yeuukieee...). The
code is littered with this stuff :-(
2. Classes like the ServiceInvoker
(
http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/core/listeners/...)
and MessageDeliveryAdapter
(
http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/core/listeners/...).
Both of these classes essentially do the same thing. They're created against a
Service Cat:Name combo and they take care of looking up EPRs and Couriers etc.
Basically, I think we should settle on using one of classes listed in #2, and (where the
opportunity arises) remove that ugly code described in #1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira