This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have bean B extends A. In A I have a cmp field, x. getX() and setX are inherited by B, no probs. However, in ejb-jar.xml I have to repeat the cmp field x for A and B. Similarly for relationships, A has a 1 to many rel with C, the cmr code is inherited yet I have to specify the same rel xml block for A to C and B to C. I have a lot of inheritance, cmp fields and relationships which results in a huge ejb-jar.xml file (and an even bigger weblogic-cmp-rdbms-jar.xml file as I'm using wls 8.1 and this file requires all the repitition too). Is there a way to tell the server that the xml blocks are inherited too?
Nope, sorry. Or at least, not in a vendor neutral way. Bean-isms, endowed by the container, aren't inheritable, and don't have any connection to what your bean implementation class has going on with Java inheritance.