ejb@glassfish.java.net

Re: default remote and local business interface from indirectly-implemented interfaces

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Wed, 01 Mar 2006 09:11:48 -0500

Cheng Fang wrote:

>Hi,
>
>I have a ejb3 session bean indirectly implements a @Remote interface and a
>@Local interface, and the two interfaces are the only interfaces for this
>bean class.
>
Hi Cheng,
 Can you post an example of the way the bean class is defined?

 --ken

>I'm expecting these two interfaces will be applied as the
>bean's remote and local business interfaces, respectively. But somehow it
>failed to deploy with errors like this:
>
>Caused by: java.lang.RuntimeException: Target ejb xxx for remote ejb 3.0
>reference xxx does not expose a remote business interface of type <the
>remote interface>
>
>Once I duplicate the implements clause in the bean directly, it deploys
>fine, which leads me to think glassfish only gets the direct interfaces.
>I looked at Class.getInterfaces() (whic I guess is used by glassfish), and
>it seems only look at direct interfaces.
>
>Could someone confirm from the implementation side this is the case?
>
>I can give more details if necessary.
>
>Thanks.
>-- Cheng
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>
>
>