grouper-dev - RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer
Subject: Grouper Developers Forum
List archive
- From: Chris Hyzer <>
- To: Misagh Moayyed <>, "" <>
- Subject: RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer
- Date: Thu, 11 Sep 2014 18:07:26 +0000
- Accept-language: en-US
I wouldn’t share a grouper session among threads. Its lightweight, just create one when doing work. It already is a threadlocal after you create it, don’t
have to pass it around: GrouperSession grouperSession =
GrouperSession.staticGrouperSession(); Thanks, Chris From: [mailto:]
On Behalf Of Misagh Moayyed Is the session threadsafe? You might want to use a ThreadLocal, if you choose the session to be a member field.
From:
[]
On Behalf Of Chris Hyzer Just start one, and close in a finally block GrouperSession grouperSession =
null;
try {
grouperSession = GrouperSession.startRootSession();
//do work
}
finally { GrouperSession.stopQuietly(grouperSession); } Thanks, Chris From:
[]
On Behalf Of John Gasper Hi all,
|
- [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, John Gasper, 09/11/2014
- RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, Chris Hyzer, 09/11/2014
- RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, Misagh Moayyed, 09/11/2014
- RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, Chris Hyzer, 09/11/2014
- Re: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, John Gasper, 09/11/2014
- RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, Chris Hyzer, 09/11/2014
- Re: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, John Gasper, 09/11/2014
- RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, Chris Hyzer, 09/11/2014
- Re: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, John Gasper, 09/11/2014
- RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, Chris Hyzer, 09/11/2014
- RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, Misagh Moayyed, 09/11/2014
- RE: [grouper-dev] Proper way to get a Grouper Session in a Change Log Consumer, Chris Hyzer, 09/11/2014
Archive powered by MHonArc 2.6.16.