Multiple choice technology platforms and products

How many deployment descriptor files does a CMP entity bean deployed on the WebLogic Server have?

  1. One J2EE specific deployment descriptor and one WebLogic specific deployment descriptors

  2. One J2EE specific deployment descriptor and two WebLogic specific deployment descriptors

  3. One J2EE specific deployment descriptor only

  4. One WebLogic specific deployment descriptor only

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A CMP (Container-Managed Persistence) entity bean on WebLogic requires one J2EE standard deployment descriptor (ejb-jar.xml) and TWO WebLogic-specific descriptors (weblogic-ejb-jar.xml and weblogic-cmp-jar.xml). The weblogic-cmp-jar.xml specifically defines CMP mapping and is required in addition to the standard descriptors.