There is no way to define anything but public method in any interface. This
is not limited to remote interfaces or EJB. Interfaces are an OO pattern specifically
about the publicly available views/facets of an object. If you want to hide
some method of an EJB implementation then don't put the method in the
public interface. EJB adds the ability to restrict who can access the public
methods as well, so if the method should be available to some you have
this path as well.

----- Original Message ----- 
From: "fractals" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 05, 2001 2:37 PM
Subject: [JBoss-user] access modifiers lost in EJB programming ?


> AFAIK, there's no way to make a method anything else than public in a remote
> interface. Sad, because I *would* like to hide some of the methods I define
> for some of my beans.
> 
> Really, is there no way to get this cornerstone of OO programming back into
> the EJB realm ?
> 
> Thanks,
> 
> candide
> 
> 


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

Reply via email to