Question:
Is it possible to have a CMP Entity
bean in one ejb.jar extend a CMP Entity bean in another ejb.jar?
Setup:
We have two EJB-jars with CMP entity
beans, let's call them core-ejb.jar and foo-ejb.jar.
core-ejb.jar contains an CMP entity bean called
ParentBean and foo-ejb.jar contains an CMP entity bean called ChildBean. As you
smart guys might have guessed ChildBean extends ParentBean. :-)
We use @weblogic.table-map to map the subclass to
multiple tables.
We have (of course) seperate ejbdoclet task for
core-ejb.jar and foo-ejb.jar.
Problem:
Everything works great for core-ejb.jar but the
problems begins when creating foo-ejb.jar.The
ejbdoclet tasks runs ok but when we try to run Weblogics ejbc it complains that
all methods in ChildBean that is inherited from ParentBean is "In bean Child,
the abstract method, setFoo(), does not correspond to any container-managed
field and is not implemented in the bean class or any of its
superclasses.".
I guess this happens because ejbc is looking for
ParentBeans descriptors in foo-ejb.jar when they, in fact, are located in
core-ejb.jar.
So, any ideas how to solve this or is it impossible
to accomplish?
Regards Peter