I have a CMP entity bean where I want to have a create method that takes
the Xdoclet generated data object. However xdoclet does not create
any create() methods in the home interfaces? I think I must be doing
something wrong because this kind of thing is very common and I see no
complaints in the list. Here is the following code snippit. Any help
would be appreciated.
/*
* EJB Create Method
*
* @ejb:create-method view-type="remote"
*/
public EntityPK ejbCreate(EntityData value)
throws CreateException
{
if (value == null)
throw new CreateException("value cannot be null");
EntityPK pk = new EntityPK(0);
...
return pk;
}
The generated interface is as follows..
/**
* Home interface for Entity. Lookup using {1}
* @author XDOCLET 1.1.2
* @version XDOCLET 1.1.2
* @xdoclet-generated at Jul 11, 2002 12:56:10 PM
*/
public interface EntityHome
extends javax.ejb.EJBHome
{
public static final String COMP_NAME="java:comp/env/ejb/Entity";
public static final String JNDI_NAME="ejb/vtrack.Entity";
public com.vecna.vtrack.ejb.Entity
findByPrimaryKey(com.vecna.vtrack.ejb.EntityPK pk)
throws java.rmi.RemoteException,javax.ejb.FinderException;
}
Next Question: Assuming I can get this working, what would the proper
way to have the create method generate entries in both remote and local
interfaces? 2 separate entries? or something like
'view-type="local,remote"'?
Thanks,
- Dan
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user