hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Lalloni <>
Subject Re: referencing "self" in a service
Date Mon, 09 May 2005 20:46:01 GMT
El Lun 09 May 2005 17:01, Viktor Szathmary escribió:
> hi,
> how can a hivemind-managed object refer to it's "real self"? for
> example, if I need to know the service ID, or want to be able to pass
> the proxied instance from the service itself to another object...

For knowing the service-id just use a constructor parameter or make your 
service implementation class implement a setServiceId(String id), then 
hivemind can inject it.

For passing around the proxy... your really shouln't be needing to do such a 
thing... how come? :-)

> btw, i have briefly tried beta-1 (instead of alpha-3), and it seems
> service serialization broke - it keeps complaining about "instance not
> created in this VM".. since i didnt have time to focus on this, i just
> rolled back to alpha-3...

Maybe you aren't calling registry.setupThread() before using deserialization 
on a given thread?

Pablo I. Lalloni <>
Teléfono +54 (11) 4347-3177 
Proyecto Pampa
Dirección Informática Tributaria

Nudists are people who wear one-button suits.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message