Can a bean use the best of BMP and CMP?

Discussions

EJB programming & troubleshooting: Can a bean use the best of BMP and CMP?

  1. Can a bean use the best of BMP and CMP? (1 messages)

    Hello,

    I was wondering if anyone knows how to use BMP and CMP at the same time. I have a bean that uses BMP to store its fields to a database. However, I would lik to use the EJB 2 CMR features to link this bean to some other bean. Is there a way to get the best of both worlds.

    In an ideal world I would imagine that it uses my BMP DAO methods to store its state and the CMR methods to store related beans.

    One idea is to use the Pre methods.

    Any other ideas would be greatly appreciated.

    Gavin

  2. Gavin could you please tell me something about the pre method. I am aware of the dual entity bean pattern.