its not portable. ur look is vendor specific . correct me if am wrong.
regards,
udaya
> -----Original Message-----
> From: Jorge Luis Sabogal [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, February 20, 2001 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Connection in a Entity Bean
>
> Hi,
> I found a tip about this security issue, using the InitialContext class :
>
> ...
> env.put(Context.SECURITY_PRINCIPAL, "scott");
> env.put(Context.SECURITY_CREDENTIALS, "tiger");
> ...
> Context ic = new InitialContext(env);
> ...
>
> Is this tip portable? Is a good solution?
>
> Thanks
>
> -----Mensaje original-----
> De: Robert Nicholson [mailto:[EMAIL PROTECTED]]
> Enviado el: Martes, 20 de Febrero de 2001 07:08 p.m.
> Para: [EMAIL PROTECTED]
> Asunto: Re: Connection in a Entity Bean
>
>
> He's asking more along the lines of how he gets this information to his
> entity bean. Can't he get it their via the Principal?
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Christopherson
> > Sent: Tuesday, February 20, 2001 3:46 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Connection in a Entity Bean
> >
> >
> > In theory, you could specify that the resource used Application resource
> > auth., then call DataSource.getConnection(String user, String
> > password) rather than the no-args getConnection.
> >
> > I say theoretically only because I have not personnally tested this on
> any
> > app. server.
> >
> > Does anyone have a feel for how this might scale (subject, of course, to
> > the implementation choices of the container and DB vendors)
> >
> > On Tue, 20 Feb 2001, Jorge Luis Sabogal wrote:
> >
> > > Hi,
> > >
> > > I want to use username/paswword data to get a connection inside the
> > > EntityBean Methods (via
> > DataSourceObject.getConnection(username, password).
> > > Each user in the company has a different username/password pair
> > to connect
> > > to the DataBase.
> > >
> > > How can I pass this information from the client to the EntityBean?
> > > Is that possible?
> > >
> > > Thanks in advance.
> > > Jorge Sabogal
> > >
> > >
> > ==================================================================
> > =========
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > > of the message "signoff EJB-INTEREST". For general help, send email
> to
> > > [EMAIL PROTECTED] and include in the body of the message "help".
> > >
> >
> > --
> > Dan Christopherson (danch)
> > nVisia Technical Architect (www.nvisia.com)
> >
> > Opinions expressed are mine and do not neccessarily reflect any
> > position or opinion of nVISIA.
> >
> > ------------------------------------------------------------------
> > ---------
> > If you're a capitalist and you have the best goods and they're
> > free, you don't have to proselytize, you just have to wait.
> > -Eben Moglen
> >
> > ==================================================================
> > =========
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> > in the body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".