> Yes I think it is not running in a request/response mode.  Just a dumb
> question as i implement your solution.  I tried this earlier but since
> Runnable is an interface it does not let me create one so I must be missing
> a parenthesis or something?

Correct, BootStrap is executed during servlet context startup, so
there is not request or response.

> I will try out your suggestions and offer feedback.  I think it would be
> nice to have access to both security managers from the plugin so you could
> use the same code during both processes.

The BootStrap instances are auto-wired by Spring, so you have access
to the Spring application context. I would consider grabbing the
"shiroSecurityManager" bean and copying the realms from there into
your own temporary (non-web) security manager. I say copy the realms,
but I mean the references to them.

That's if you even need the realms.

Cheers,

Peter

Reply via email to