Questions Tagged With threadhttps://answers.axonivy.com/tags/thread/?type=rssquestions tagged <span class="tag">thread</span>enWed, 06 Nov 2019 02:55:11 -0500Max thread limit exceeded when using office365 SMTP serverhttps://answers.axonivy.com/questions/4143/max-thread-limit-exceeded-when-using-office365-smtp-server<p>Hi,</p> <p>When using Office365 SMTP server to send email with IVY (daily summary), I got an error from the SMTP server :</p> <p>com.sun.mail.smtp.SMTPSendFailedException: 432 4.3.2 STOREDRV.ClientSubmit; sender thread limit exceeded [Hostname=VI1P190MB0189.EURP190.PROD.OUTLOOK.COM]</p> <p>This error occurs because IVY try to send more then 3 emails at the same time (using multiple threads). I didn't find any configuration I can change in the system properties to limit the number of thread used.</p> <p>Do you have any workaround for this ?</p> <p>Tx in advance.</p> <p>Fabien Duay</p>fabienWed, 06 Nov 2019 02:55:11 -0500https://answers.axonivy.com/questions/4143/max-thread-limit-exceeded-when-using-office365-smtp-serveremailthreadIs there a way to use some kind of semaphore in ivy?https://answers.axonivy.com/questions/2184/is-there-a-way-to-use-some-kind-of-semaphore-in-ivy<p>I have the situation that I have a database call which gives me a list of elements. Some activities later I write down the modified elements to the db. This is working fine als long as I don't have parallelism. The problem is that the second db operation potentially affects the first db operation. If now two tasks arrive at the first element and read from the database before one task has written the result to the db I get a wrong result. The solution would be to prevent the second task entering the first database read until the first task has written down the result.</p> <p>Do we have some kind of support for such cases?</p>ruffzyMon, 14 Nov 2016 20:58:27 -0500https://answers.axonivy.com/questions/2184/is-there-a-way-to-use-some-kind-of-semaphore-in-ivybest-practicepersistencethreadThreads and the Ivy Objecthttps://answers.axonivy.com/questions/1189/threads-and-the-ivy-object<p>I want to execute some tasks in the background. I used java threads but I get this exception.</p> <pre><code>ch.ivyteam.ivy.environment.EnvironmentNotAvailableException: Access to ivy environment outside a process request thread is not possible. </code></pre> <p>Is there an ivy thread i can use or is it simply not possible?</p>HaraldWeberMon, 02 Mar 2015 17:55:36 -0500https://answers.axonivy.com/questions/1189/threads-and-the-ivy-objectconcurrencythread