[jboss-dev-forums] [Design of JBoss ESB] - Re: Specific type of ServiceInvoker
mark.little@jboss.com
do-not-reply at jboss.com
Sun Aug 5 04:44:31 EDT 2007
"tfennelly" wrote : I totally got you the first time Mark :-) 20+ years experience or not, creating a separate class (subclass or otherwise) for doing this particular job stinks IMO, sorry ;-)
|
BTW, the other way of doing this (which is essentially the same, but just hides the details), would be to have a SpecificService class (name is open to debate) and have that do:
| class SpecificService
| {
| public static final String DLQ = "DLQServiceName";
|
| ServiceInvoker getSpecificService (String name);
| }
|
So essentially it's a factory that returns SI instances of well defined services that we support. That way there's no overloading of SI and there's also no static method for a specific DLQ service on the SI class definition.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070946#4070946
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070946
More information about the jboss-dev-forums
mailing list