1 Reply Latest reply on Oct 22, 2003 10:57 AM by divine_comedy

    MDB -- when should ejbLoad be called?

      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