What is the best way to get the UserModule and RoleModule from within a JSF managed bean? I know of three ways: 1) a JNDI lookup 2) service injection 3) from the portlet context attributes "UserModule" and "RoleModule".
Is there a best practice for this?
Thanks
If there are many ways there should be best of all. I think service injection is the best because actions will take place under single transaction unit .
Thanks,
Naresh Kumar Tekulapalli