grouper-users - [grouper-users] RE: Change Log Consumer
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: "Klug, Lawrence" <>, "" <>
- Subject: [grouper-users] RE: Change Log Consumer
- Date: Mon, 1 Oct 2012 14:52:18 +0000
- Accept-language: en-US
The consumers only run from gsh –loader. You run the UI, but you also need the loader running somewhere against the same DB. getAttributesMap() looks ok to find if an attribute is assigned. Get a reference to the group with GroupFinder.findByName or GroupFinder.findByUuid. Do proper error handling in case the group is deleted in
the meantime between the membership change and when the change log runs… thanks, Chris From: Klug, Lawrence [mailto:]
Chris, Thanks for the helpful response. I’ve seen my consumer run when I call “gsh –loader” from command line in WIN, but not yet from Admin UI events – I’m working from a simple example I found. Related question: I want to examine the attributes of the group associated with each changeLogObject. I’m looking for an attribute named “ploneTarget”. Is it possible to get a reference to the associated group (and how)? Would
I then call group.getAttributesMap() and iterate through the map? What is the recommended way to do this? Thanks, Lawrence From: Chris Hyzer []
As events occur, they are put into grouper_change_log_entry_temp table. At the top of the minute, they are moved from there to the grouper_change_log_entry table. If this is not occurring then the change log daemon in the loader is not running successfully. At some point after
that (e.g. a few seconds after the top of the minute), your change log consumer should run. You should see a row for your consumer in the grouper_change_log_consumer table. There will be a last index processed there which should be updated to the last grouper_change_log_entry
index. If that is not happening, then your consumer is not running. If it is running, and not doing anything, then maybe it is not matching the records correctly… if you want to make a simple example change log consumer (something that I could load in my
env), I could try to help troubleshoot, or let me know how you want to proceed. Thanks, Chris From: Klug, Lawrence
So far I’m not seeing Admin UI events picked up by my ChangeLogConsumer class – do I need to configure something for this to happen? Thanks, Lawrence |
- [grouper-users] RE: Change Log Consumer, Klug, Lawrence, 10/01/2012
- [grouper-users] RE: Change Log Consumer, Chris Hyzer, 10/01/2012
- <Possible follow-up(s)>
- [grouper-users] RE: Change Log Consumer, Klug, Lawrence, 10/01/2012
- Re: [grouper-users] RE: Change Log Consumer, Shilen Patel, 10/02/2012
- RE: [grouper-users] RE: Change Log Consumer, Klug, Lawrence, 10/02/2012
- [grouper-users] RE: Change Log Consumer, Chris Hyzer, 10/02/2012
- Re: [grouper-users] RE: Change Log Consumer, Shilen Patel, 10/02/2012
- [grouper-users] RE: Change Log Consumer, Klug, Lawrence, 10/01/2012
Archive powered by MHonArc 2.6.16.