If anyone ever needs to programmatically login a user using Seam 3, this is how I got it to work:
/in my class:/
@Inject private Identity id;
@Inject private Credentials credentials;
/in my method:/
id.login(); //this will call my custom authenticate() method
There are many posts on how to achieve this in Seam 2 just setting the user and pass, but couldn't find none about the same topic using JEE6, though it turned out to be pretty obvious.
These classes are those of a default Seam 3 installation on JBoss AS 6.0.0
shouldnt this be in the SEAM 3 forum section?