Grazy Mos Posted November 7, 2006 Share Posted November 7, 2006 I have created a custom datasource bean I want to execute some query's in the datasource wich use the username of the one calling the datasource. I dont want this to happen in the jrxml file! but in the datasource. Is there a "user" bean wich i can add to the factory when the datasource is called, or could I solve this in a other way? thanks in advance, Niels Link to comment Share on other sites More sharing options...
swood Posted November 8, 2006 Share Posted November 8, 2006 Try: SecurityContextHolder.getContext().getAuthentication(); ShermanJasperSoft Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now