Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] RE: How do I get the ESB to fire events

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] RE: How do I get the ESB to fire events

Chronological Thread 
  • From: Jeff McCullough <>
  • To: Chris Hyzer <>
  • Cc: "Bryan E. Wooten" <>, "" <>
  • Subject: Re: [grouper-users] RE: How do I get the ESB to fire events
  • Date: Mon, 1 Jul 2013 11:45:31 -0700
  • Authentication-results:; dkim=neutral (message not signed) header.i=none

When a group is deleted, the grouper change log will show membership deletes then the group delete. Is there a way to know which group types the group had before it was deleted? Probably it would be group type unassigns, but maybe there is something there already.


On Jun 30, 2013, at 7:46 PM, Chris Hyzer <> wrote:

I got this to work with the api binary:
Configure in
changeLog.consumer.esb.class = edu.internet2.middleware.grouper.changeLog.esb.consumer.EsbConsumer
#run every minute
changeLog.consumer.esb.quartzCron = 0 * * * * ?
changeLog.consumer.esb.elfilter = event.eventType eq 'GROUP_DELETE' || event.eventType eq 'GROUP_ADD' || event.eventType eq 'MEMBERSHIP_DELETE' || event.eventType eq 'MEMBERSHIP_ADD'
changeLog.consumer.esb.publisher.class = edu.internet2.middleware.grouper.changeLog.esb.consumer.EsbHttpPublisher
changeLog.consumer.esb.publisher.url =" http://localhost:8100/whatever/something
Copy the grouper/lib/jetty/jetty.jar and jetty-lib.jar to grouper/lib/grouper
Run the loader: gsh -loader
See this event at the HTTP endpoint
POST /whatever/something HTTP/1.1
Content-Type: application/json; charset=utf-8
User-Agent: Jakarta Commons-HttpClient/3.0
Host: localhost:8100
Content-Length: 218
From: Bryan E. Wooten [] 
Sent: Tuesday, June 25, 2013 2:39 PM
To: Bryan E. Wooten; Chris Hyzer; 
Subject: RE: How do I get the ESB to fire events
Ok, I discovered that when I build grouper by hand I get a lib/jetty directory in the api.
So created this dir with the 3 jars in my quick start installation. I then edited and added:
#UofU - Add jars to support ESB
But I am still getting the same class not found error.
From:  [] On Behalf Of Bryan E. Wooten
Sent: Tuesday, June 25, 2013 10:05 AM
To: Chris Hyzer; 
Subject: [grouper-users] RE: How do I get the ESB to fire events
Thanks for the tip. That is the right name, but now I am getting this error:
loader ran successfully: Error: Error processing record 134909, sequenceNumber: 134909, java.lang.RuntimeException: Problem loading class: edu.internet2.middleware.grouper.changeLog.esb.consumer.EsbHttpPublisher
       at edu.internet2.middleware.grouper.util.GrouperUtil.forName(
        at edu.internet2.middleware.grouper.changeLog.esb.consumer.EsbConsumer.processChangeLogEntries(
        at edu.internet2.middleware.grouper.changeLog.ChangeLogHelper.processRecords(
Caused by: java.lang.NoClassDefFoundError: org/mortbay/jetty/HttpException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at edu.internet2.middleware.grouper.util.GrouperUtil.forName(
        ... 26 more
Caused by: java.lang.ClassNotFoundException: org.mortbay.jetty.HttpException
I assume I am missing some jar file in the api/lib/grouper directory? I didn’t see anything about this in the wiki.
From: Chris Hyzer [] 
Sent: Monday, June 24, 2013 11:25 PM
To: Bryan E. Wooten; 
Subject: RE: How do I get the ESB to fire events
Look in the database in the loader log table, and see the job name for it, and use that.
In this case it should be:
From:  [] On Behalf Of Bryan E. Wooten
Sent: Monday, June 24, 2013 11:27 AM
Subject: [grouper-users] How do I get the ESB to fire events
I have simple server listening on port 80 and added the following to my
changeLog.consumer.httpTestGroup.class = edu.internet2.middleware.grouper.changeLog.esb.consumer.EsbConsumer
changeLog.consumer.httpTestGroup.elfilter = event.eventType eq 'MEMBERSHIP_DELETE' || event.eventType eq 'MEMBERSHIP_ADD || event.eventType eq 'GROUP_DELETE' || event.eventType eq 'GROUP_ADD'
changeLog.consumer.httpTestGroup.publisher.class = edu.internet2.middleware.grouper.changeLog.esb.consumer.EsbHttpPublisher
changeLog.consumer.httpTestGroup.publisher.url =" http://localhost:80
I think I need to run loaderRunOneJob("CHANGE_LOG_changeLogTempToChangeLog")
And then run:
I just don’t know what “something” should be.
Any help appreciated.

Archive powered by MHonArc 2.6.16.

Top of Page