Forums Register Login

whats the difference

+Pie Number of slices to send: Send
Hi ranchers,

I would like to know the difference between the tag

<resource-env-ref>
(HFEJB says that this can be used only as a JMS destination as of now)

and

<message-driven-destination>

Can someone please help ......
+Pie Number of slices to send: Send
They have different usages.
Message-Driven Beans and JMS:

Clients do not bind to an MDB like they do for session beans and entity beans. The client only needs to send a JMS message to the queue/topic to which the MDB is configured to listen. Typically clients also use the <resource-ref> and <resource-env-ref> elements of their deployment descriptor and then point to the same JNDI names as the MDB's <connection-factory-name> and <message-driven-destination-name> descriptor elements.

....

In ejb-jar.xml, attaching a JMS resource to an MDB requires the <message-driven-destination> entry in the MDB's declaration.
+Pie Number of slices to send: Send
Thanks Wise .
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 785 times.
Similar Threads
MDB + DD question.
Destination Queue not found
Difference between <resourse-env-ref> and <message-destination-ref>
open a heper link in a new window using trinidad tags
MDB Question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:06:51.