ScriptDataConnector (idP3): Acquire a bean reference

Cantor, Scott cantor.2 at osu.edu
Tue Sep 8 10:07:31 EDT 2015


On 9/7/15, 1:33 AM, "users on behalf of Camel Guy" <users-bounces at shibboleth.net on behalf of camel at devguy.com> wrote:

>Is it possible to locate the Spring context from a scripted Data Connector? I would like to acquire a reference to a bean that has data source connection details.

Rod might know a better way, but among others you can get at the Spring Web Flow RequestContext via a subcontext of the PRC root called SpringContext. It contains the SWF RequestContext object.

From there you can get at the Spring app context a few different ways, but the shortest is requestContext.getActiveFlow().getApplicationContext()

That isn't the same context as the resolver configuration's own beans though. If the goal is to get at that context, I don't know whether that's possible.

-- Scott




More information about the users mailing list