Double Duty

Discussions

EJB design: Double Duty

  1. Double Duty (4 messages)

    Can a session bean double as a message bean and vice versa, ie. can a message bean double as a session bean?

    Thanks
    Anh

    Threaded Messages (4)

  2. Double Duty[ Go to top ]

    No. Message driven beans have no client interaction, their lifecycle is completely hidden and not related to user load.

    If you tried to share them you'd really make the servers life hard (is it a session bean, is it a message driven bean? No, it's a .... :-))

    Chz

    Tony
  3. Double Duty[ Go to top ]

    It is both...:-)
  4. Double Duty[ Go to top ]

    Instead, you can have "double duty" pure java classes..
    Either message bean or session bean just provides the
    client access point..
  5. Double Duty[ Go to top ]

    Absolutely, but you can't have a class that IS a session and message driven bean. The server manages them in different ways.

    Chz

    Tony