cancel
Showing results for 
Search instead for 
Did you mean: 

Create background thread from within iView code?

Former Member
0 Kudos

I want to create a thread that will do some work in the background as a result of an iView event. I want the iView doProcessBeforeOut to return immediately, but have a thread running in the background to update some data. Is it Ok to create standard Java threads in this case, or is there a portal service I should use? I found documentation on the J2EE Engine's TimeoutManager, but I cannot figure out how to use that from within an iView.

Accepted Solutions (1)

Accepted Solutions (1)

darrell_merryweather
Active Contributor
0 Kudos

Hi

I don't think that it is recommended to create iViews that contain threads running in the background. However, with that said, there are times when this is a necessity, and it is also possible, as I have had to do something similar my self. As long as you make sure that your thread code conforms to the usual Java coding standards and that there are not likely to be any blocking then so be it.

I hope this helps

Darrell

Answers (0)