On Feb 23, 2009, at 12:44 PM, Amedeo Mantica wrote:

I need to start a thread and be able to navigate to other wo webpages while it's still running.

That is not a problem.


Actually I'm able to do it only if i create a subclass that extends Thread in the component that will start it.

I don't understand why that is necessary. What happens if you don't do this?


I have multiple components that should start the same thread, can I put my Threadable class out of components?

I always do. Just don't touch the session or the default editing context or any other editing context that is used by your components.


Chuck

On 23/feb/09, at 20:30, Chuck Hill wrote:


On Feb 23, 2009, at 10:18 AM, Amedeo Mantica wrote:

Hello,

I was using AjaxLongResponse and it works very very well.

I noticed that during the task I can navigate throug pages and the tast will continue to run, this is great !

Now, I wold like to use this tast session wide...

I created a class that extends Thread , but my app gets hang on the task until the it finish.

Probably I do not know much about threading, so I surely made some mistakes

can you help me?
Thanks
Amedeo

I don't understand what you did, but you can't touch the session in a background thread.

Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects










--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to