Avatar of colr__
colr__

asked on 

Custom security realm and spring context

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
JavaJava App Servers

Avatar of undefined
Last Comment
gordon_vt02
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of gordon_vt02
gordon_vt02

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Java
Java

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo