Philippe,If you can understand Chinese, you will have no problem understanding threads ;-)The guys on Software Engineering Radio have just started a series of podcasts on concurrency.http://se-radio.net/Seriously though, sooner or later, you need to have separate threads doing work independently of
On 25 avr. 06, at 12:55, Kieran Kelleher wrote:Also, when I said the "DA can run the code", I really mean the "DA should spawn off your CheckRemoteTask into a separate thread" in case your checking code is longer than the allowable 30 seconds for R-R loop. This is really easy if your just use use a
Create a class, say "CheckRemoteTask" that extends java.util.TimerTask and put your webservice checking code in the run() method. If you are interaction with EOF, then create an editing context in your CheckRemoteTask and use a try/finally to make sure you unlock when finished with it like this
Also, when I said the "DA can run the code", I really mean the "DA should spawn off your CheckRemoteTask into a separate thread" in case your checking code is longer than the allowable 30 seconds for R-R loop. This is really easy if your just use use an ExecutorService to run your CheckRemoteTask (
On 24 avr. 06, at 19:27, Kieran Kelleher wrote:Er, here it is again... hoping I am less than 30K moderator limit this time!---Create a class, say "CheckRemoteTask" that extends java.util.TimerTask and put your webservice checking code in the run() method. If you are interaction
Learn something new every day ... You just saved me 30 seconds of
total annoyance every time I paste a code sample :)
On Apr 24, 2006, at 3:18 PM, Mark Morris wrote:
Hi Mike,
If that's the case, would a straight copy and "Paste and Match
Style" (Command-Option-Shift-V) accomplish the same
By the way, it's colorized eclipse copy/paste that does this ... I
paste into vi or anything else that doesn't preserve the rich-text,
and then re-copy/paste into the email. Apparently the representation
of eclipse content in the pasteboard is crazy inefficient.
ms
On Apr 24, 2006, at 1:2
Er, here it is again... hoping I am less than 30K moderator limit this time!---Create a class, say "CheckRemoteTask" that extends java.util.TimerTask and put your webservice checking code in the run() method. If you are interaction with EOF, then create an editing context in you
Philippe,
On Apr 24, 2006, at 4:56 PM, Philippe Lafoucrière wrote:
First of all, "hi list, I'm a complete noob in wo".
Welcome!
Is there a way to create a continous loop in wo ?
Scores :)
I have to check a distant webservice every 30 seconds and fetch new
data if available.
In this v
On 24 avr. 06, at 17:36, Ken Anderson wrote:
Sure. You could start the timer in the constructor, then have the
timer call a method in Application that does the work.
Thank you very much
--
Philippe
___
Do not post admin requests to the list. The
Sure. You could start the timer in the constructor, then have the
timer call a method in Application that does the work.
On Apr 24, 2006, at 11:33 AM, Philippe Lafoucrière wrote:
On 24 avr. 06, at 17:30, Ken Anderson wrote:
You could always use a timer and then create a connection to the
On 24 avr. 06, at 17:30, Ken Anderson wrote:
You could always use a timer and then create a connection to the
web service whenever the timer fires. A standard java timer would
work, but you could also use WOTimer.
Thx.
would it be appropriate to call this fetch method from
application.j
WO is java these days so you can certainly do it with that. Unless
you want to be all trendy and risky and go the AJAX route?
Ho no no,
getting data from the webservice is done in background. My
application is just some business logic running in background, and a
few dynamic pages for repo
You could always use a timer and then create a connection to the web service whenever the timer fires. A standard java timer would work, but you could also use WOTimer.On Apr 24, 2006, at 10:56 AM, Philippe Lafoucrière wrote:Hello,First of all, "hi list, I'm a complete noob in wo".Is there a way t
Philippe Lafoucrière wrote:
Hello,
First of all, "hi list, I'm a complete noob in wo".
Is there a way to create a continous loop in wo ?
I have to check a distant webservice every 30 seconds and fetch new
data if available.
Do I have to create a webpage to ensure this, and fetch it using wge
Hello,First of all, "hi list, I'm a complete noob in wo".Is there a way to create a continous loop in wo ?I have to check a distant webservice every 30 seconds and fetch new data if available.Do I have to create a webpage to ensure this, and fetch it using wget and crontab ? It sounds like a quite
16 matches
Mail list logo