Josip Juric

Greenhorn
+ Follow
since Nov 23, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Josip Juric

Hi,

You could abuse the @min and @max annotations.

See below link for examples

http://docs.jboss.org/hibernate/validator/4.0.1/reference/en/html_single/

Example:

Example 2.13. Driver


Regards,

Josip
Hi,

I'm getting an exception trying to run my code with @runAs. I"ve got a remote client which calls RunAsSecurityBeanImpl bean. In RunAsSecurityBeanImpl bean i've injected PrintRoleBean with @EJB just to see which princple is used. My glassfish contains the roles needed which is manager.I've googled the exception but I haven't found an answer to why an exception is raised. Running my remote client I get the following exception:


This is the code for the remote client:


The remote interface for RunAsSecurityBeanImpl:




The injected bean in RunAsSecurityBeanImpl:


I've added the roles in glassfish-web.xml: