We have a jms queue in a jee 7 application running on glassfish v4.
At the moment, an MDB is reading from the queue.
Is it possible to secure this queue with the application's security realm and be able to do things like fetch the user princiapl and do principal.isUserInRole while processing the message received on the jms queue?