Specify a principal associated with the call
When you use to assign a specific role to outgoing calls, a principal named anonymous is assigned to all outgoing calls. If you want another principal to be associated with the call, you must associate a with the bean in the jboss.xml file. The following fragment associates a principal named internal with RunAsBean from the prior example. RunAsBean internal