troubleshooting Question

Custom security realm and spring context

Avatar of colr__
colr__ asked on
JavaJava App Servers
2 Comments2 Solutions1122 ViewsLast Modified:
I have a Tomcat based web application that uses a custom security realm. Within the security realm I need access to a spring-managed bean, but the security realm interface doesnt provide any access to the servlet context or any other way for me to get access to the spring context.

Anybody got any ideas how I could get access to the spring context? I can't initialise the security realm in spring either as it is managed by the web container.

The security realm superclass is here: SimpleSecurityRealmBase
Mick Barry
Java Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2010

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 2 Answers and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros