1 Reply Latest reply on Jan 18, 2005 8:29 PM by hartct

    CMP entity bean

    Nag Chava Newbie

      Hi,
      How Jboss determines what type of container configuratuions to use?
      For example I am using standardJboss.xml configurations no overrides in jboss.xml but in my Jboss.xml I specified my bean as Entity so Ejb deployment treats my bean as CMP or BMP or CMP1.1 or 2.0 ?

      This is joboss.xml file

      <?xml version="1.0"?>
      <!DOCTYPE jboss PUBLIC
      '-//JBoss//DTD JBOSS 3.0//EN'
      'http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd'>

      <enterprise-beans>

      <ejb-name>TestEB</ejb-name>
      <jndi-name>test\TestEBHome </ndi-name>

      </enterprise-beans>



      Thanks
      Xjava

        • 1. Re: CMP entity bean
          hartct Newbie

          The bean/persistence type isn't defined in jboss.xml. Instead, it's in the ejb-jar.xml file:

          <ejb-jar>
          <enterprise-beans>

          <ejb-name>...</ejb-name>
          <local-home>...</local-home>
          ...
          <ejb-class>...</ejb-class>
          <persistence-type>Container</persistence-type>
          <prim-key-class>...</prim-key-class>
          <primkey-field>...</primkey-field>
          false
          <cmp-version>2.x</cmp-version>
          ...

          ...
          </enterprise-beans>
          </ejb-jar>

          Would give you a CMP 2.x bean.

          -Chris