Maybe share some code and your conf...
Le 15 déc. 2012 19:09, "Howard W. Smith, Jr." <smithh032...@gmail.com> a
écrit :

> I have 'defaultInstance' which uses 'transport' for SMTP (sendmail).
>
> I use 'getInstance' with/for imap, and imap uses 'store' instead of
> transport, per my understanding/code.
>
> I was closing the store after connecting to store...every time @Schedule is
> executed, but I changed the implementation last night...to avoid this too
> many simultaneous connections. i only initialize/reconnect to the imap
> 'store', when/if error occurs with one of the javamail operations that I'm
> using in the app.
>
> 'on demand' approach. :)
>
> I just wanted to report this...maybe I just don't know how to use
> @Stateless, but I'm recognizing a lot of exceptions while attempting to use
> @Stateless for new/various operations in the app. I see why David Blevins
> recommended to use singleton and @Schedule together...to avoid overlapping
> executions.
>
> Even with @Schedule and Singleton, I'm seeing some exceptions in the log...
> only when endusers wake up and starting to use the web app. I had @Schedule
> executing every 2 minutes. I think when enduser(s) in the web app, their
> http/jsf requests are postponing singleton @Schedule, and ejbtimer raises
> exceptions...while endusers doing their thing. :)
>
>
> On Sat, Dec 15, 2012 at 1:00 PM, Romain Manni-Bucau
> <rmannibu...@gmail.com>wrote:
>
> > do you close the transport?
>

Reply via email to