I was trying this as a servlet but any attempts to reference Identity from inside the doGet results in
java.lang.IllegalStateException: No active session context
I think my url-pattern is incorrect in my components.xml can anyone tell me what it should be.
<web:context-filter url-pattern="/logout/*" />
I think I have tried most combinations now...
The easiest way to do this would be with a Seam Remoting call. Something like this should work: