You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by KERNEUZET FREDERIC <Fr...@pr-gicm.com> on 2005/03/17 10:36:32 UTC

A bit strange question on RunData ...

Hi everybody,
 
I got a little « strange » question to submit ...
 
I'm using turbine/torque/velocity.
 
Well, all objects in my application are "tracked" with a dedicated manager, in order to always have a trace of any operation done.
In reality, all "save" method of all objects have been rewrited to get RunData in parameter in order to be able to get some extra-information like the current user.
And the track manager is called from thoses "save" methods.
 
My problem is that we would like to delay one treatment, which is really heavy, using the scheduler service.
 
And of course, when my treatment is called by the scheduler service, every "save" method fails because no RunData is found ...
 
So, my question is :
Is there any way to "serialize" the Rundata in order to put it in parameter of my scheduler task (which needs bytes array), and to re-create it from this parameter in my called class ?
 
 
My first look at the RunData javadocs was unsuccessful : none RunData method doing this seems to exist ...
 
 
Have you got any idea to avoid this problem ?
Thanks all.
==================================
Frédéric Kerneuzet
==================================
 

Re: A bit strange question on RunData ...

Posted by Michael Kunze <mi...@chaos-inc.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

KERNEUZET FREDERIC wrote:
> My first look at the RunData javadocs was unsuccessful : none RunData method doing this seems to exist ...

Have you tried to clone() it?

Michael

PS: Read Recepient is probably a bad idea esp. to a mailinglist.

- --
Michael Kunze
http://www.smrealms.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCOVGkikpRWGebGdQRAvlVAJ9gbKBHOfkAGpCl4JJN9LH0MrlEFwCgrul9
90PUJBPOiNj5Pw3DAeQhT8w=
=XtEd
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org