Results 1 to 2 of 2

Thread: Monitoring an XML file to trigger regeneration of ITD Metadata

  1. #1
    Join Date
    Jul 2010
    Posts
    2

    Default Monitoring an XML file to trigger regeneration of ITD Metadata

    Hi all,

    I am developing an add-on that will be monitoring some XML files and I'd like the add-on to trigger the regeneration of an ITD metadata. I tried to use file monitoring but it was unsuccessful. My questions are:

    1. Is there a proper (right) way in Roo to monitor file change?
    2. After the file change event occurred, how could I trigger the regeneration of an ITD metadata programmatically?

    Thank you

    Chanwit
    ZK for Grails - RIA with boosters

  2. #2
    Join Date
    Jul 2010
    Posts
    2

    Default

    Finally I've found steps to achieve these.

    1. I have my metadataProvider to implements FileEventListener.
    2. To trigger regeneration of my ITD metadataProvider, I call metadataService.evictAndGet(mid).
    and call notifyDownstream(mid), where "mid" is a metadata identification string starting with "MID:".
    ZK for Grails - RIA with boosters

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •