Thanks for advice,

Anton


-----Original Message-----
From: Janak Mulani [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 14, 2006 11:50 AM
To: Anton Levcik
Cc: '[EMAIL PROTECTED] Com'
Subject: RE: [ULC-developer] Long-running asynchnous processes in servlet
container

Hi Anton,

-          Does the new thread have  the same context as the initial thread
ULC application?

For asynchronous tasks, new threads are spawned. But you should not be
accessing ULC widgets from the new thread. In general you cannot manipulate
ULC components from threads other than the main application thread because
ULC adheres to the strict request-response model defined by J2EE. All code
must be executed as part of processing a client request.

-          Is it correct issue, make new application thread in servlet
container?

Well the specifications  do not encourage. But people do it anyway. However,
one needs to be careful with the usual side effects of multi threading. You
can look at the following result from Google search:

http://jguru.com/faq/view.jsp?EID=455215

I hope this helps.

Thanks and regards,

Janak

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Anton Levcik
Sent: Thursday, November 09, 2006 4:30 PM
To: '[EMAIL PROTECTED] Com'
Subject: [ULC-developer] Long-running asynchnous processes in servlet
container


Hi.

I'd like to use model for long-running asynchronous tasks from ulc-community
Progress Pane extension.
This model make asynchronous task through making new thread.
In the connection I have two questions:
-          Does the new thread have  the same context as the initial thread
ULC application?
-          Is it correct issue, make new application thread in servlet
container?

Thanks and regards

      Anton Levcik
      CIS Bratislava,  Slovakia






_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to