MDB activation-config-property-value

why we need below kind of entries in ejb.jar.xml for MDBs

<message-driven>
			<ejb-name></ejb-name>
			<ejb-class></ejb-class>
			<messaging-type>javax.jms.MessageListener</messaging-type>
			<transaction-type>Bean</transaction-type>
			<activation-config>
				<activation-config-property>
					<activation-config-property-name>messageSelector</activation-config-property-name>
					<activation-config-property-value>Ixy 'aaa'</activation-config-property-value>
				</activation-config-property>
			</activation-config>
			<message-destination-type>javax.jms.Queue</message-destination-type>
		</message-driven>
			<message-driven>
			<ejb-name>

Open in new window

what is importance of activation-config-property-value and how that is related to XSD and incoming messages to the system through the Active MQ of IBM

Please advise.
LVL 7
gudii9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

girionisCommented:
The activation configuration are properties (key/value pairs) that are passed to the MDB container when you deploy an MDB. These properties are used to configure the MDB.

In your example you define a message selector by using the activation configuration properties. This means that your MDB will only receive messages that comply with the selector (it will only receive messages that their property named "Ixy" has the value of  "aaa"*).

* I am not sure if the Ixy 'aaa' is a valid value. You would normally do Ixy = 'aaa'
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
girionisCommented:
This is a perfectly valid answer.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.