I have a JSF function which returns different views depending on certain information stored on the user currently viewing/manipulating the page. I.e. depending if the customer has a gold/silver/bronze subscription, the view will display different amounts of information. Is there a JBoss way to do this simply? I read something about SessionBean but I am not sure as to how to implement it, or even if the Bean will contain the data that I need.
BTW I am on JBoss 7.1 with JPA 2 and Java EE 6
gets the name of the person currently logged in!