ejb@glassfish.java.net

Re: Local and Remote

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Thu, 03 Aug 2006 13:12:37 -0400

Daniel Cavalcanti wrote:

>
> On 8/3/06, * Kenneth Saks* <Kenneth.Saks_at_sun.com
> <mailto:Kenneth.Saks_at_sun.com>> wrote:
>
> Daniel Cavalcanti wrote:
>
>
> > In other words, I tried to use RemoteCommon and LocalCommon just as
> > marker interfaces, but when I try to use the bean in the web app or
> > client app, the RemoteCommon and LocalCommon interfaces appear
> as they
> > have no methods defined.
>
What actual error are you seeing? Is it happening at compile time or
run-time?
If run-time, is it happening in the client or within the server?

 --ken

>
>
> > What I'm trying to avoid is this:
> >
> > @Remote()
> > public interface RemoteCommon {
> > public int someMethod(String param1, int param2);
> > }
> >
> > @Local()
> > public interface LocalCommon {
> > public int someMethod(String param1, int param2);
> > }
> >
> > @Stateless()
> > public class CommonBean implements RemoteCommon, LocalCommon {
> > public int someMethod(String param1, int param2) { /* do
> something
> > here */ }
> > }
> >
> >
> > thanks,
> > Daniel.
> >
> >
>
>
>
>