Are you calling client.getDomains() remotely?

If so, the problem may be that CMP is for local
interfaces only.  Also, you have view-type="both" for
the CMP methods...they should be view-type="local"

Then you'll need to make sure that the
getClient/setClient methods are setting/getting local
interfaces only.

Give that a shot...

 -mahaffey


--- "Gary S. Cuozzo" <[EMAIL PROTECTED]>
wrote:
> Hey all,
> I'm trying to convert an existing application that I
> had written the 
> "hard way" over to use XDoclet.
> 
> I have two beans, Client and Domain, that I'm trying
> to relate.  A 
> Client can have many Domains.  Seems like it should
> be straight forward 
> but is throwing an exception 
> (java.lang.reflect.UndeclaredThrowableException)
> when I try to use the 
> relationship.
> 
> In Client I have:
>         /**
>          * @return all domains associated with this
> client
>          *
>          * @ejb:interface-method       
> view-type="both"
>          *
>          * @ejb:relation               
> name="client-domain"
>          *                             
> role-name="client-has-domains"
>         **/
>         public abstract Collection getDomains();
>         public abstract void setDomains(Collection
> domains);
> 
> 
> In Domain I have:
>         /**
>          * @ejb:relation               
> name="client-domain"
>          *                             
> role-name="domain-belongsto-client"
>          *
>          * @jboss:relation             
> related-pk-field="id"
>          *                             
> fk-column="client_id"
>         **/
>         public abstract Client getClient();
>         public abstract void setClient(Client
> client);
> 
> 
> Am I missing something or just plain doing it wrong?
>  The application 
> deploys without error, and each bean works by
> itself.  I get the 
> exception when I call client.getDomains().
> 
> Thanks,
> gary.
> 
> 
> 
>
_______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> August 25-28 in Las Vegas -
>
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to