it would help if you specified the exception you got, and maybe the output
of getMessage()

> Hi All.
> 
> Please help me get mail/Session value from tomcat configuration file.
> 
> My servlet need to send an eMail and I need smtp server specific for
> each server where servlet is running.
> 
> I tryed:
>  Context initCtx = new InitialContext();
>  // here initCtx is empty there are no parameters.
>  Context envCtx = (Context) initCtx.lookup("java:comp/env");
>  // after this I am getting exception
>  Session session = (Session) envCtx.lookup("mail/Session");
> 
> Sincerely yours, Ivan Latysh.
> [EMAIL PROTECTED]
> http://ivan.yourmail.com
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to