Skip to Content
author's profile photo Former Member
Former Member

Create background thread from within iView code?

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 24, 2005 at 09:57 PM


    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


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.