You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Pulat Yunusov <pu...@3genius.com> on 2004/10/04 22:40:38 UTC

Metadata listeners

We add and remove descriptor and connection repositories during our 
application lifecycle using MetadataManager. It seems useful and logical 
to have listener interfaces for DescriptorRepository and 
ConnectionRepository because some objects need to cleanup their state 
when the metadata is removed.

For example, a sequence manager might want to discard a transient part 
of sequences for a jcd that's just been unloaded - just like it happens 
when the sequence manager is garbage collected.

Do you think it's a good idea to add metadata listeners to the OJB API?

Pulat

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


Re: Metadata listeners

Posted by Armin Waibel <ar...@apache.org>.
Hi Pulat,

Pulat Yunusov wrote:
> We add and remove descriptor and connection repositories during our 
> application lifecycle using MetadataManager. It seems useful and logical 
> to have listener interfaces for DescriptorRepository and 
> ConnectionRepository because some objects need to cleanup their state 
> when the metadata is removed.
> 

We currently working on the first alpha version of OJB1.1, so any 
suggestions are welcome. In OJB1.1 some things will change in metadata 
handling and AFAIK Thomas D. wants to refactoring this stuff.

Overall I agree with you that metadata listener would make OJB more 
flexible. Currently I'm busy with other stuff, so please make a feature 
request on scarab and ask for this feature again on dev-list in case of
non-observance by the developers ;-)

regards,
Armin


> For example, a sequence manager might want to discard a transient part 
> of sequences for a jcd that's just been unloaded - just like it happens 
> when the sequence manager is garbage collected.
> 
> Do you think it's a good idea to add metadata listeners to the OJB API?
> 
> Pulat
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 
> 

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