directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: [naming] Another memory jndi impl
Date Fri, 28 Nov 2003 07:04:27 GMT


On Thu, 27 Nov 2003, Phil Steitz wrote:

> I even got this to work to configure a mail session:
>
> <resource name="mail/Session" type="javax.mail.Session">
>    <parameter>
>      <name>mail.smtp.host</name>
>      <value>localhost</value>
>    </parameter>
> </resource>
> ...
> initCtx = new InitialContext();
> envCtx = (Context) initCtx.lookup("java:comp/env");
> session = (Session) envCtx.lookup("mail/Session");

I'd appreciate a simple how-to for starting with Naming in this way. Or
rather, it'd save me a little thinking time and more importantly give us
an initial set of documentation :)

Hen


Mime
View raw message