Thanks for the pointer but unfortunately it doesn't seem to be the whole of the problem. I'm still not getting a remove(TemplateEntityPK pk) style method in the home inteface.

Harkness, David wrote:
Bruce Ashton <mailto:[EMAIL PROTECTED]> once said:

[...] I can't generate a valid remove moethod in the local home
interface of an entity bean.


[...] and the method looks like:


/** * Describe <code>ejbRemove</code> method here. * * @ejb.home-method */ public void ejbRemove() throws EJBException, RemoveException {

        logger.debug("ejbRemove()");
    }


ejbRemove() is not normally declared to throw EJBException. As it's an
unchecked exception (RuntimeException), you don't need to declare it. I
suspect this is the whole of the problem.


This fails generates the following message in the Home interface:

/**
* Describe <code>ejbRemove</code> method here. */
public void remove() throws javax.ejb.EJBException,
javax.ejb.RemoveException;


Why is it generating a method called "remove()" rather than
"ejbRemove()"? Odd.

In any case, here's the method from my base entity bean class:

/**
* A container invokes this method before it removes the EJB object
that is currently
* associated with the instance. It is invoked when a client invokes a
remove operation
* on the enterprise Bean's home or remote interface. It transitions
the instance from
* the ready state to the pool of available instances. It is called in
the transaction
* context of the remove operation.
*
* @throws javax.ejb.RemoveException
*/
public void ejbRemove ( )
throws RemoveException
{
if ( debugging() ) debug("Removing bean: [" + getClass().getName() +
"] " + context.getPrimaryKey());
}


David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756


------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user





------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to