1 Reply Latest reply on May 26, 2002 5:06 PM by Marko Asplund

    2.0 CMP persistence field naming

    Marko Asplund Newbie

      what kind of restrictions does EJB 2.0 CMP pose to entity bean, persistence field and relationship field naming? how is the entity bean mapped to a database table, persistence and relationship fields mapped to database columns?

      how does the container determine the JNDI name under which to bind a bean on deployment?

        • 1. Re: 2.0 CMP persistence field naming
          Marko Asplund Newbie

          to answer my own question the mapping between the fields in the abstract persistence schema and database schema is not specified by the EJB 2.0 specification. the mapping is done in a vendor specific manor. in JBoss v3.0 you use the jbosscmp-jdbc.xml descriptor file to describe this mapping.

          apparently the JNDI name under which an EJB is bound in deployment is also outside of the EJB specification. the JNDI name can be specified in jboss.xml descriptor in JBoss v3.0. if this descriptor is not present ejb-name is used as the beans JNDI name.