<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Darn....unfortunately we have to perform both read/write... basically will allow users option to bypass password reset up to X times on expiry (by setting a counter in DB). And will also display pages where user can interact with counter -- be redirected app where can reset password.<br></div><div><br></div><div>I have it working -- but with a DB connection in XML file local to the JAR. Trying for last few days -- I can't figure out how to get the global context and piggyback the Db connection/pooling in 'global.xml' --- could anyone point me perhaps to an example?<br></div><div><br></div><div>public ResetPasswordCounter() {<br> super();<br> ResetPasswordCounterLog.info("ResetPasswordCounter.constructor()", "loading db-connection.xml ", null);<br> this.context = new ClassPathXmlApplicationContext("db-connection.xml");<br> this.ResetPasswordCounterModel = (ResetPasswordCounterJDBCTemplate) context.getBean("resetPasswordCounterJDBCTemplate");<br> }</div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 7, 2018 at 11:38 AM Cantor, Scott <<a href="mailto:cantor.2@osu.edu">cantor.2@osu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 9/7/18, 2:06 PM, "users on behalf of Lionel Samuel" <<a href="mailto:users-bounces@shibboleth.net" target="_blank">users-bounces@shibboleth.net</a> on behalf of <a href="mailto:lionel.samuel01@gmail.com" target="_blank">lionel.samuel01@gmail.com</a>> wrote:<br>
<br>
> We are building a shibboleth.InterceptFlow --- is it possible for the plugin (which will be checking for password expiry<br>
> against a DB) -- to share DB connection pooling from 'global.xml'? I wasn't sure how to call out to share the pooling..<br>
<br>
Well, I wouldn't do it that way (I would use the attribute resolver to just get the data for you and then use the existing interceptor to check it) but that aside, you don't "call out" to anything, you inject the desired bean into your object to use it (a settable property of type DataSource in this case). And yes, anything named in the global context is visible for injection.<br>
<br>
But you don't need to do all that, it's much easier to let the resolver handle it, you're just duplicating effort.<br>
<br>
-- Scott<br>
<br>
<br>
<br>
-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br>
</blockquote></div>