No more explanations are needed.

Thanks for the reply, you just put us back on the glorious track.
And no more KilometerLongException are poping.

Thanks



Niclas Hedhman wrote:

On Saturday 15 November 2003 05:44, Dominique Paquin wrote:


One of my avalon services, once it reaches the initialize method,
instantiate a thread that needs a reference on the parent caller,
namelly the Service in question, to execute code immediatelly. But the
service manager states that the service is not available through a
Kilometer long exception thrown at me.

Is there methods somewhere, in the current implementation, that would
permit my thread to be notified once my required service as completed
initializing and is properlly started?



You ARE breaking the so called LifeCycle contract, and it will not be tolerated ;o) (hence the LongKilometerException )


I think you should do something like;

public void initialize()
{
}

public void service( ServiceManager man )
{
   SomeParent parent = (SomeParent) man.lookup( SomeRole );
   Runnable worker = new SomeWorker( parent );
   m_Thread = new Thread( worker );
}

public void start()
{
   m_Thread.start();
}


I think you need to elaborate a little bit of why you need what you are requesting.



Cheers Niclas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--


Dominique Paquin

Concepteur Logiciel / Software Designer

_____________________________________________________________________

OKIOK Solutions de s�curit� d'entreprise et d'affaires �lectroniques

Enterprise and e-business security solutions



Tel. : (450) 681.1681

http://www.okiok.com <http://64.4.10.250:80/cgi-bin/linkrd?_lang=FR&lah=94831192475d8d31ce40df9cbeef348e&lat=1052147960&hm___action=http%3a%2f%2fwww%2eokiok%2ecom> Enterprise and e-business security solutions



This e-mail message (including attachments, if any) is intended for the use

of the individual or entity to which it is addressed and may contain

information that is privileged, proprietary, confidential and exempt from

disclosure. If you are not the intended recipient, you are notified that

any dissemination, distribution or copying of this communication is strictly

prohibited. If you have received this communication in error, please notify

the sender and erase this e-mail message immediately.



Le pr�sent message �lectronique (y compris les pi�ces qui y sont annex�es,

le cas �ch�ant) s'adresse au destinataire indiqu� et peut contenir des

renseignements de caract�re priv� ou confidentiel. Si vous n'�tes pas le

destinataire de ce document, nous vous signalons qu'il est strictement

interdit de le diffuser, de le distribuer ou de le reproduire. Si ce message

vous a �t� transmis par erreur, veuillez en informer l'exp�diteur et le

supprimer imm�diatement.





Reply via email to