I have an entity bean with an ejbCreate & ejbPostCreate with xdoclets as following:
/**
* @throws CreateException Thrown if method fails due to system-level error.
* @throws CreateException
* @throws RemoteException
* @ejb.create-method
*/
public Integer ejbCreate(
Author author,
String title,
String text) throws CreateException, RemoteException {
this.setStoryId(new Integer((new Object()).hashCode()));
this.setTitle(title);
this.setText(text);
this.setPubDate(new Date());
this.setUsername(author.getUsername());
return null;
}
and
/**
* @throws CreateException Thrown if method fails due to system-level error.
*/
public void ejbPostCreate(
Author author,
String title,
String text) throws CreateException {
}
but when I run xdoclet and deploy it in JBoss 4.0, the JBoss prompts:
20:19:40,328 WARN [verifier] EJB spec violation:
Bean : Story
Method : public abstract StoryLocal create(Author, String, String) throws CreateException, RemoteException
Section: 12.2.11
Warning: The methods in the local home interface must not include java.rmi.RemoteException in their throws clause.
what in XDoclet should change? to be added or deleted.
I preferably want to change the xdoclet and let the rest to be generated.