Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: AccessControlEntry and ControlDescriptor default in a Deployment Descriptor

Re: AccessControlEntry and ControlDescriptor default in a Deployment Descriptor

From: me zawadzki <markz-nospam-_at_starnet.lenfest.com>
Date: Fri, 02 Jul 1999 13:46:45 -0400
Message-ID: <377CFB05.53BB208D@starnet.lenfest.com>


You might want to post in comp.lang.java.databases .

Alberto Lagna wrote:
>
> Hi all,
>
> env Oracle 8i v8.1.5, NT, JDK 1.1.7
>
> Let's suppose I have an EJB with three methods exposed on its home
> interface, A() B() and C(), and let's suppose I'd like
> 1) to allow all user to call A() and B() and only SCOTT to call C()
> 2) B() and C() RunAsMode SYSTEM_IDENTITY
>
> is the following DD right or must I specify a ControlDescriptor (RunAsMode +
> RunAsIdentity) for the A() method who uses standard settings?
>
> SessionBean helloServer.HelloBean
> {
> BeanHomeName = "test/myHello";
> RemoteInterfaceClassName = hello.Hello;
> HomeInterfaceClassName = hello.HelloHome;
>
> AllowedIdentities = { PUBLIC };
> RunAsMode = CLIENT_IDENTITY;
>
> public void B() {
> RunAsMode = SYSTEM_IDENTITY;
> }
>
> public void C() {
> RunAsMode = SYSTEM_IDENTITY;
> AllowedIdentities = { SCOTT};
> }
> }
>
> TIA
> Alberto

--
ÐÏࡱá Received on Fri Jul 02 1999 - 12:46:45 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US