EJB design: MDB: Multiple Topics or one topic handle multiple messages
One design decision I have to make when design MDB. If I have few messages such as log, email, and so on. Should I use one topic to handle these messages or create multiple topics for each message?
- Posted by: Jingwei Zhang
- Posted on: March 28 2005 23:04 EST
One other question is that MDB does not have remote and local interface so I can instantiate it like regular Java class except for calling onMessage() method. Does that mean I can use it as a MDB client?
If you're using JMS, I'd consider using JMS selectors - you'll have one common message destination, but MDB's can recieve just these messages they're interested in. All you need is to set up appropriate JMSType field.