Have any of you guys used Servlets along with JAAS?

If so, any problems encountered? Are there any issues regarding sessions?