the SMDS implementation uses SecurityAssociation for pushing/popping subject context. So it has direct usage of security internal api. This is the main cause of jms tests failure in AS5 (all those with the security exceptions).
I am going to provide an implementation which is a rip off the SMDS but using the security SPI, in the messaging module of AS5.
Conveyed to Tim in person today.
This new integration implementation of SMDS is what will be injected into the ServerPeer.