For sanity sake I'll run it up the flagpole here to see if I'm doing anything weird. ( <=== denote areas of interest )
The declaration in the entity bean MessageBean:
/**
* Gets the Evidence
* @return collection of evidence
*
*
* @ejb.value-object
* compose="com.messagegate.mms.message.ejb.EvidenceValue"
* compose-name="Evidence"
* members="com.messagegate.mms.message.ejb.Evidence" <== note the use of the remote interface here.
* members-name="Evidence"
* relation="external"
* type="java.util.Collection"
*
* @ejb.relation
* name="message-evidence"
* role-name="message-has-evidence"
* target-ejb="Evidence" <=== perhaps here too, although this may end up as EvidenceCMP/EvidenceBean for all I know.
*
*/
public abstract Collection getEvidence( );
public abstract void setEvidence( Collection evidence );
The generated methods inside of MessageCMP all use the Local interface (addEvidence, removeEvidence, updateEvidence) like so:
public void addEvidence(com.messagegate.mms.message.ejb.EvidenceValue added)
throws javax.ejb.CreateException
{
try
{
com.messagegate.foundation.id.UUID pk = new com.messagegate.foundation.id.UUID(added.getId());
com.messagegate.mms.message.ejb.EvidenceLocalHome home = com.messagegate.mms.message.ejb.EvidenceUtil.getLocalHome(); <==== note LocalHome here
com.messagegate.mms.message.ejb.Evidence relation = home.create(added); <=== compile problem occurs here
matching Evidence and EvidenceLocal
getEvidence().add(relation);
}
catch (Exception e){
if (e instanceof javax.ejb.CreateException)
throw (javax.ejb.CreateException)e;
else
throw new javax.ejb.EJBException(e);
}
}
------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user