One of our MDBs invokes a SB. That SB is using
getCallerPrincipal().getName(). That always returns "ANONYMOUS". How can we
replace that with another user name? We provided @RunAs("System") to the MDB
and mapped a single principal in glassfish-application.xml:
Unfortunately this has no effect, we still get "ANONYMOUS". Also, we provided
a Default Principal and Default Principal Password in the adming GUI, with
What is the correct and working way to tell GFv3.1.1_b11 that each time
@RunAs("System") is used, getCallerPrincipal().getName() shall return "Foo"
but not "ANONYOUS"?