Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is it the Message selector in MDB?

 
alzamabar
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm reading that this is part of the responsibility either of the bean's developer and the application assembler, but I can't figure out what is it.

Any help...

Marco
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Section 22.5 of the EJB 2.0 spec states:

<!--
The message-selector element is used to specify the JMS message selector
to be used in determining which messages a message-driven bean is
to receive.
Example:
<message-selector>JMSType = �car� AND color = �blue� AND weight >
2500</message-selector>
Used in: message-driven
-->
<!ELEMENT message-selector (#PCDATA)>


You may check out the javax.jms.Message class comment for a detailed definition of message selectors
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic