Hi all,
I suspect I'm missing something really obvious here, but for some reason I can't generate a valid remove moethod in the local home interface of an entity bean.


My class header comment has the following tags:


* @ejb.bean * name="TemplateEntity" * local-jndi-name="TemplateEntity" * type="BMP" * view-type="local" * * @ejb.home * local-pattern="{0}Home" * * @ejb.interface * generate="local" * local-pattern="{0}" * * @ejb.value-object


and the method looks like:



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

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


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;



However in the jboss server.log it fails to deploy with the error message:



2003-10-14 00:03:52,285 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
Bean : TemplateEntity
Method : public abstract void remove() throws EJBException, RemoveException
Section: 12.2.11
Warning: Each local home method must match a method defined in the entity bean class.



The reason being of course that in the interface the remove method should take a primary key. However as ejbRemove in EntityBean takes no arguments I am on the horns of a dilemma.
I'm guessing that there should be a method level, 'ejb.remove-method' tag, to match the 'ejb.create-method' tags etc. but it's not documented as far as I can see.


What am I doing wrong?



-------------------------------------------------------
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