Skip to Content.
Sympa Menu

grouper-dev - When to use GrouperSession.staticGrouperSession() ?

Subject: Grouper Developers Forum

List archive

When to use GrouperSession.staticGrouperSession() ?

Chronological Thread 
  • From: Tom Zeller <>
  • To: Grouper Dev <>
  • Subject: When to use GrouperSession.staticGrouperSession() ?
  • Date: Wed, 14 Apr 2010 16:41:35 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=KDCi5NEm7EXAcoFHuSqL+LC+u2HQPZqecK7s9sBINhh9ktTm+t0JaVbVzRlAljqjMC hB75eB9p49L/Hj4BzfbHoTG17R/kN8/vjqVgkfazf+URf0btgDvGXt8UCSUAODmd8Szz QQgr4c7fopcPlIutbF6J5I1kfuOM0G0x4RodE=


Should the grouper DataConnectors for shibboleth use
GrouperSession.staticGrouperSession() ? (No)

Instead, they should call GrouperSession.start(Subject) and then store
the GrouperSession as a class variable ? (Yes)

It's OK for the stored GrouperSession class variable to be long-lived ? (Yes)

Or should I start a new session every time I query Grouper for data ? (No)

I started using GrouperSession.staticGrouperSession(), but then
realized that this would use any grouper session stored in the jvm,
which wasn't what I wanted, since the subjectId used to start the
session needs to be configurable.


Archive powered by MHonArc 2.6.16.

Top of Page