users@glassfish.java.net

Re: Problem on configuring Java Mail Session

From: Sahoo <Sahoo_at_Sun.COM>
Date: Sun, 16 Mar 2008 18:21:05 +0530

Give me sometime, I shall get back to you after writing a sample to test
it myself.

Thanks,
Sahoo

glassfish_at_javadesktop.org wrote:
> Hi Sahoo,
> Below post from 'Frenchdrip' pointed out what my doubt was. Actually I tried followig different ways,
> 1. directly using resource injection on setter or instance variable
> 2. inject resource on class level and lookup it from sessionContext
> 3. inject resource on class level and lookup it from JNDI initial context.
>
> Only 1 gets mailSession object. Both 2 and 3 return mail configuration which requires casting to session. I had never experienced such as well known 'NameNotFoundException' so I don't believe that's a JNDI problem.
>
> Thanks,
> Ken
> [Message sent by forum member 'dabaner' (dabaner)]
>
> http://forums.java.net/jive/thread.jspa?messageID=264257
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>