I need to instantiate a session bean from another request scoped bean & set values to that bean. How can I do that from another bean ?
Actually I need to instantiate the usersession bean after user has successfully logged in & I need to set the user managed property of that session bean.
You need to manually instantiate it the usual way and put it in
ExternalContext#getSessionMap():In name of proper design, I’d rather delegate the job to JSF by just injecting it as
@ManagedProperty: