2 Replies Latest reply on Jun 25, 2002 12:39 PM by ggreaves

    Dependent Value Classes

    ggreaves

      I'm using CMP and DVC's and mapping complex object attributes to columns in our legacy database. Looking at the EJB spec w.r.t. DVC's, it seems that the storage mechanism is not specified as part of the spec. So any container that serializes a DVC would be compliant. Since our requirement is to be able to query using these attributes with tools other than Java, serialization doesn't cut it. The column mapping to DVC's in jbosscmp-jdbc.xml is really powerful. Since we'd like to be as portable as possible to other app servers, does anyone know if other commercial app servers offer similar capabilities to JBoss? Specifically, BEA, Websphere and Sybase EAServer.

      Thanks,
      -Greg

        • 1. Re: Dependent Value Classes
          dsundstrom

          If you want it to be truly compliant you will need to deconstruct the object to many cmp fields when ejbStore is called and rebuild in when ejbLoad is called.

          As for BEA or Webshere I don't know, but I do know that no one uses Sybase EAServer. I expect the Sybase server to be gone within a year.

          • 2. Re: Dependent Value Classes
            ggreaves

            Thanks for your response. The ejbLoad / ejbStore technique seems to be a good way of handling it. As for EAServer, have you heard rumblings I haven't?

            -Greg