I'm running on glassfish v4 and I use a messagedriven bean. Currently I'm defining the principal under which the bean runs in the glassfish-ejb-jar.xml
like:
<enterprise-beans>
<ejb>
<ejb-name>MessageConsumerBean</ejb-name>
<principal>
<name>MDBPrincipal</name>
</principal>
Is it possible to do the same using just annotations e.g. @MessageDriven
?