[jboss-user] [EJB 3.0 Users] - Re: Design: When the line between domain objects and service

le_garcon_enerve do-not-reply at jboss.com
Tue Sep 29 19:11:11 EDT 2009


Hello!

In the case of the mail-box, why not push the functionallity of reacting to an email into the implementation of the mailbox? E.g. change the mailbox.addMessage() method and dynamically set up a reference to the mailbox when you startup the bean.
In general, you could use an Adapter/Notifier pattern (with the additional advantage of being able to send one message too several mailboxes).

Am I missing something there?

Cheers ,
Georg


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257766#4257766

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257766



More information about the jboss-user mailing list