MDB: Multiple Topics or one topic handle multiple messages

Discussions

EJB design: MDB: Multiple Topics or one topic handle multiple messages

  1. 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?

    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?

    Thanks,

    Jingwei
  2. how about selectors?[ Go to top ]

    Hi

    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.