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
-
MDB: Multiple Topics or one topic handle multiple messages (1 messages)
- Posted by: Jingwei Zhang
- Posted on: March 28 2005 23:04 EST
Threaded Messages (1)
- how about selectors? by Bartek Styrylski on March 29 2005 08:28 EST
-
how about selectors?[ Go to top ]
- Posted by: Bartek Styrylski
- Posted on: March 29 2005 08:28 EST
- in response to Jingwei Zhang
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.