Hi,
I have a stateful session bean whose ejbCreate has an argument. I have the
following three lines as class level tags (among others).
* @ejb:bean type="Stateful" name="HVAttributeManager"
* jndi-name="ejb/HVAttributeManager" view-type="remote"
* transaction-type="Container"
When I run Ant I get the following build error:
compile-ejbs:
[javac] Compiling 1 source file to C:\myapp\build\ejb\classes
[javac]
C:\myapp\gen-src\com\logica\insurance\joap\util\validation\HVAttribu
teManagerSession.java:58: ejbCreate(java.util.Map) in
com.logica.insurance.joap.
util.validation.HVAttributeManager cannot be applied to ()
[javac] super.ejbCreate();
[javac] ^
[javac] 1 error
BUILD FAILED
Thing is, the create method in my source class looks like this:
/**
* Creates the manager bean and initializes it with a map of value
objects.
*
* @param valueObjects the map of value objects
* @throws CreateException the wrong arguments are supplied
* @ejb:create-method
*/
public void ejbCreate( Map valueObjects ) throws CreateException
{
init( valueObjects );
}
However the generated implementation class (public class
HVAttributeManagerSession
extends com.logica.insurance.joap.util.validation.HVAttributeManager
implements javax.ejb.SessionBean) has a create method which doesn't
include the parameter:
public void ejbCreate() throws javax.ejb.CreateException
{
super.ejbCreate();
}
I do also override setSessionContext like this:
public void setSessionContext( SessionContext ctx ) throws EJBException
{
ejbContext = ctx;
hvDataStore = HVDataStore.getInstance();
}
Here the parameters gets inserted correctly into the generated class:
public void setSessionContext(javax.ejb.SessionContext ctx) throws
javax.ejb.EJBException
{
super.setSessionContext(ctx);
}
What's wrong here? Anything with XDoclet? Or am I doing something wrong. I
never used a stateful session bean with a parameterized create method
before, that's why I never encountered this before.
I'd appreciate any input :)
Thanks,
Bernie
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user