associate Connection at runtime in CMP

Discussions

EJB design: associate Connection at runtime in CMP

  1. associate Connection at runtime in CMP (1 messages)

    In CMP beans is it possible to specify connection at runtime. I have a requirement where it is not certain which connection to use until a request is made.
  2. Hi,

    Follow the design patterns and implement according to that.
    whether it is CMP or BMP doesn't matter.
    USe the Factory patterns N U can implemenet the desired one you have asked,(i.e which connection to use at run time).

    Thanks
    Jane