All,
I have a several message-driven beans, each of which listens to the same queue, only with slightly different message selectors. What I'd like to do, is to have each of these message-driven beans notify (through a session bean) some other part of the system of their existence, and the appropriate message-selector to use when sending a message to this component. I tried using ejbLoad for this purpose, however ejbLoad does not seem to get called until the first time a message matching the message-selector is sent to the queue.
Is this correct behavior, or should ejbLoad be called as soon as JBoss initializes it? Is there some other method I should be using instead of ejbLoad?
Thanks in advance.
--Chris
Maybe I am missing something here, but I do not think ejbLoad is a part of either SessionBean or MDB interface. It's only applicable to the EntityBean interface.