Yes this is right just include the class in the same package.
----- Original Message -----
From: "Jeff Ramin" <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 11:06 AM
Subject: Re: Protecting methods
> Actually, that's not correct. If you want the method to
> be available only to other classes in the same package,
> that level of access is generally called "package private".
> You achive that by not using any modifier at all.
>
> If you use the protected modifier, subclasses would also
> have access.
>
>
>
> [EMAIL PROTECTED] wrote:
> >
> > put protected before the function name...
> >
> > Not sure if this is what you are looking for, but it sounds like it.
Pretty basic Java.
> >
> > protected void setWhatever(){
> >
> > Travis
> >
> > ---- Original Message ----
> > From: Alan Honczar <[EMAIL PROTECTED]>
> > Sent: 2001-12-21 07:06:10.0
> > To: JRun-Talk <[EMAIL PROTECTED]>
> > Subject: Protecting methods
> >
> > Hi,
> > I am writing an EJB that has many methods
> > to access the DB, and I am trying to protect them
> > to only be called from EJBs from the same package.
> > I clustering and using Remote Interface to call that
> > methods. Do you know a way to make them protected?
> > Any clues or other ways to do the same?
> >
> > Sorry about the inconvenience of this sort of
> > question here...
> >
> > TIA,
> >
> >
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists