This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I was hoping someone could help me with a problem I am having configuring security for my web application. I am a newbie still. So far I have created the form, a managed beans for behind the form and a entity bean that maps name and password to my database.
I am currently trying to configure a stateless session bean using Java Persistence A to access the database and implement the logic. In this stateless session bean I would like to use entity manager to query, login and logout the user.
I would like to use something like the following query;
I Have attached all code in an attachment, please have a look
I have setup a JDBC realm on Glassfish as well as the relevant connection pool, etc.
Any help or advise would be greatly appreciated.
Before you go about introducing wholly new frameworks just for implementing security, tell us what problems you have implementing what you described (which sounds fine so far).
As you found out, you can't attach code or archives; you'll need to describe where you're stuck making progress.