Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] RabbitMq Routing

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] RabbitMq Routing

Chronological Thread 
  • From: "Gettes, Michael" <>
  • To: Chris Hyzer <>
  • Cc: Julio Polo <>, "Ruch,Jeff" <>, Vivek Sachdeva <>, "" <>
  • Subject: Re: [grouper-users] RabbitMq Routing
  • Date: Sun, 30 Dec 2018 04:03:22 +0000
  • Accept-language: en-US
  • Ironport-phdr: 9a23:HdG1exY+ttNas1aLj4q8LGb/LSx+4OfEezUN459isYplN5qZrsW7bnLW6fgltlLVR4KTs6sC17KG9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa+bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjm58axlVAHnhzsGNz4h8WHYlMpwjL5AoBm8oxBz2pPYbJ2JOPZ7eK7WYNEUSndbXstJVyJPHJ6yb5cBAeQCM+ZXrY7zp1oSohSxHgSjHv/jyjpSi3/2waE30eIsGhzG0gw6GNIOtWzZoNv0OqgMTeC10LfHzS7bY/hL3jn96ZTHchA7rv6SWbJ8f9faxE4gFwzbklWQtZLqPyiO2+QQvWib6/BsWvyyhG46sgx8pCWkyMkrionMnI0Vy1bE+D15wIkvK9y3Uk97Yd++HJROqi6aKpN6QsYlQ251uSY6xL0HtYShcygX1JQnwAbTa/ybc4iU+hLvTeicLi1gi319eLKwnRiz/lKhyu39TMW7zktFrjddntnUrHAN0BvT6safSvt6/0eh3yqP2xrP5eFDJEA4jbDbJIAuwr4xjZoTrV7DETXqmEX3i6+WcF8o+u2y5OThZLjtu5ySN5dshw3jLKgjmdazDfomPgUMRWSW++ux2Kf98UD5T7hGluA6nrXDvJ3UJMkXvLO1DgtW34o59hqzEi+q0NoGknQEMF5IfReKgJb0NF3QIv31COywjEqvnTt3wv3KI7LsDYjTInXGjrjtYbh95FRaxQEu195Q/YhUBasEIP/rWk/+qtjYDhghPgyvxubnFM192pkDWWKBBq+VKr3dvkKV5u43IumMYpEauCrlJvQ4+fLjjmU1lUEDcaSrx5caan+1Eu54L0iZbnfgmtIBHn0Lvgo6QuzqklqCUTtLana9Qa08+i07B5y9DYrYW4CtjriB0D2lEZJLe2BKEkqMHmvwd4WYR/cMbzqfIsB7kjwDSLihU5Eu1Qu3uA/n0LpoMPDU+jYDuJLn1dh1/PHTlQos+TBuDsSd1X2NQH9unmMOWTA2wL5zrVZjxViezKgry8BfQPdT/fJSGicrJ5PGh7h/ANDjSA/bVtaSQxC7WtigB3c8Qs9nkPEUZEMoUfqvkgzOxG7iJr4el7WGANZ8pq3Rw2T8PO5gxXKA2aU82Qp1CvBTPHGr0/YsvzPYAJTExgDAz/6n

Wonderful news!  Vivek - THANK YOU!

A Happy and Healthy New Year to the entire Grouper Dev team and everyone else!

Thank you for all you do.


On Dec 29, 2018, at 10:13 PM, Hyzer, Chris <> wrote:

Vivek has done most of this and as we reviewed it, we noticed that the Unicon part had spring _expression_ substitution, but Grouper generally uses EL which can do similar things.  I assume that’s not controversial to not add another way to configure expressions…  anyways, almost done with this…
From: Julio Polo <> 
Sent: Wednesday, December 19, 2018 2:19 PM
To: Gettes, Michael <>
Cc: Ruch,Jeff <>; Vivek Sachdeva <>; Hyzer, Chris <>;
Subject: Re: [grouper-users] RabbitMq Routing
Hi Chris,

In case it helps (ie I implore you to implement this :-), here are the specs we gave to Unicon when we commissioned the work to publish Grouper messages to a topic exchange:

The JSON messages will be published to a RabbitMQ topic exchange. The message routing key will be based on the group ID path (a colon-­delimited path) and should be configurable in a properties files. This property will consist of one or more regular expressions, which when matched will lead to a substitution command that is applied to the matched group ID path. Colons should always be converted into a period, even if that is not specified in the substitution command. Here is an example using vi syntax:


 so if group in message is:

 the message routing key for the message would be:

If no regular expressions are defined, simply substitute colons with periods.

If a JSON message has no group ID path associated with it, the properties file should allow us to use regular _expression_ as done above to map strings from the JSON message into a message routing key. For example:


On Wed, Dec 19, 2018 at 7:27 AM Gettes, Michael <> wrote:
Please provide support (or continue the support) for sending directly to a topic exchange.  The grouper code does it now and so does the Hawaii code.  As you note, setting group name into the routing key will go a long way.
Chris, do you want me to dig up the email from a few months ago where this was all outlined or do you still have it?

On Dec 19, 2018, at 12:16 PM, Ruch,Jeff <> wrote:
I believe if you can set the path of the group as the routing key, that is all that is needed.
You should then be able to use rabbitmq shovel to move the messages from the grouper configured queue to a topic exchange.  The topic exchange will allow the routing of messages based on the routing key.  It supports wildcard filtering as well.

From: Vivek Sachdeva <>
Sent: Tuesday, December 18, 2018 9:35:53 PM
To: Hyzer, Chris
Cc: Gettes, Michael; Ruch,Jeff; 
Subject: Re: [grouper-users] RabbitMq Routing
Yes, routing key is already supported but adding group name is not there yet.
On Tue, Dec 18, 2018 at 7:30 PM Hyzer, Chris <> wrote:
Vivek, isn’t this already in Grouper?  Or is the gap having the group name dynamically put in the message?  Let us know what is missing and we might be able to fix asap.


-----Original Message-----
From:  <> On Behalf Of Gettes, Michael
Sent: Monday, December 17, 2018 12:51 PM
To: Jeff <>
Subject: Re: [grouper-users] RabbitMq Routing

The built-in to Grouper code doesn’t have this ability but the Hawaii code (they commissioned Unicon) does have the ability to pass the group name in the routing code.  I have requested the Unicon code be combined with the built-in code.  Not sure where all this stands as this was part of the request prior to TechEx regarding “what do people want”.

The Hawaii code I am referring to is at


> On Dec 17, 2018, at 12:38 PM, Jeff <> wrote:
> Hi,
> I would like Grouper to publish to RabbitMQ queues based on Grouper folder
> path.  I believe this is supported in RabbitMQ using a topic exchange and
> routing keys.  Currently, Grouper publishes directly to a RabbitMQ queue. 
> Is there a way to do this either through configuration, or through another
> approach?
> Thanks,
> Jeff Ruch
> Colorado State University

Archive powered by MHonArc 2.6.19.

Top of Page