Hello,
This is my first
post to this list and I am frustrated. Everything is working fine for me
in my refactoring from ejbgen/websphere to xdoclet/jboss except when I try
to use inheritance.
The problem occurs
during the compile and has to do with the fact that xdoclet is generating (in
the case of the stateless session bean) a default create method in each class
which return different types.
I tried to put a
create method that had the same signature as the base class hoping to cause
xdoclet not to generate the create method but that didn't
work.
I see that the
examples use inheritance and that is what kills me. What am I doing
wrong? What do I need to do to implement entity
inheritance?
Code
below:
Thanks for your
help
Pete--
BASE
CLASS
---------------------
/**
* @ejb:bean
* name="TestBaseBO"
* type="Stateless"
* cmp-version="2.x"
* jndi-name="TestBaseBO"
* display-name="EJB Stateless - TestBaseBO"
* view-type="both"
* reentrant="false"
*/
* @ejb:bean
* name="TestBaseBO"
* type="Stateless"
* cmp-version="2.x"
* jndi-name="TestBaseBO"
* display-name="EJB Stateless - TestBaseBO"
* view-type="both"
* reentrant="false"
*/
public class
TestBaseBO implements SessionBean {
}
TEST
CLASS
---------------------
/**
* @ejb:bean
* name="TestBO"
* type="Stateless"
* cmp-version="2.x"
* jndi-name="TestBO"
* display-name="EJB Stateless - TestBO"
* view-type="both"
* reentrant="false"
*/
* @ejb:bean
* name="TestBO"
* type="Stateless"
* cmp-version="2.x"
* jndi-name="TestBO"
* display-name="EJB Stateless - TestBO"
* view-type="both"
* reentrant="false"
*/
public class TestBO
extends TestBaseBO implements SessionBean {
}
