[jboss-dev-forums] [Design of JBoss ESB] - Specific type of ServiceInvoker
mark.little@jboss.com
do-not-reply at jboss.com
Sat Aug 4 03:58:43 EDT 2007
I notice that we now have a:
| public static synchronized void deliverToDeadLetterChannel(Message message) throws RegistryException, MessageDeliverException {
| if (dlQueueInvoker == null) {
| dlQueueInvoker = new ServiceInvoker(INTERNAL_SERVICE_CATEGORY, DEAD_LETTER_SERVICE_NAME);
| }
| dlQueueInvoker.deliverAsync(message);
| }
|
operation in ServiceInvoker. Although I can understand the necessity for this (make it easier to send specifically to the DLQ), I disagree with the approach. Why not subtype ServiceInvoker and have a specific DLQServiceInvoker? That way we also encourage others to use the SI approach in an extensible and manageable way. Plus, if someone wants to deliver something synchronously to the DLQ we don't have to go back and change the SI interface again.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070842#4070842
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070842
More information about the jboss-dev-forums
mailing list