I want to execute some tasks in the background. I used java threads but I get this exception.

ch.ivyteam.ivy.environment.EnvironmentNotAvailableException: Access to ivy environment outside a process request thread is not possible.

Is there an ivy thread i can use or is it simply not possible?

asked 02.03.2015 at 17:55

HaraldWeber's gravatar image

HaraldWeber
101101015
accept rate: 33%


You could work around the problem by using the AutoProcessStartEventBean. It starts a request with correct context and you can configure how often this system-task should run.

alt textalt text

link

answered 05.03.2015 at 12:24

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
8.2k21650
accept rate: 68%

That's a timer. But I need threading for parallel execution.

(05.03.2015 at 18:20) HaraldWeber HaraldWeber's gravatar image

but the start will run with a request context therefore you should be able to start a background thread in the script step...

(06.03.2015 at 14:41) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×2

Asked: 02.03.2015 at 17:55

Seen: 1,083 times

Last updated: 06.03.2015 at 14:41