tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndegraev <>
Subject Re: JUnit: Sessioncontext.isCallerInRole allways returns false
Date Fri, 04 Feb 2011 15:37:56 GMT

That was really helpful! Thanks. But wait, I'm not there yet...

I decided to use PropertiesLoginModule and now I can login. 

I defined the roles I want to use in my unit tests in ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8"?>
		xsi:schemaLocation=" ">


Where do I put this? In src/main/resources/META-INF,
src/test/resources/META-INF or both?

And where do I map my JAAS groups to J2EE roles? Probably in the

Not a lot of documentation on how to do it, though, so any help is welcome.

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message