0 Replies Latest reply on Nov 18, 2003 11:36 AM by ah123

    Stateful session bean and MDB architecture

    ah123 Newbie

      Hello members,

      I'm using an application design in the following manner but not sure if that's the correct approach. Your input would be greatly appreciated.

      I have a stateful session bean (also implements a MessageListener) which takes an order, sends it to a MQ. The MDB takes the message from the queue processes it by saving it to database and returns some search results as a message back to the stateful session bean (it has a QueueReceiver). Then my client reads the search results from the session bean.

      This seems to work fine, but I'm not sure whether I'm violating any of the J2EE specs and whether this is a correct design.

      Thanks for your response,

      -a