Ok, we secured our JSF web application by using a JSF form. The user information is still stored in a flat text file. But as stated before, your application server provides more. This lesson, we move forward to GlassFish’s JDBCRealm, which allows you to store the user information within the database. Continue reading
I just updated the list of my reviews . And added a new review about “The Art of unit Testing” (Ger) .
Do you like an English translation?
Within a web application, you often need a state to create a session lifecycle. You may create a CDI named been with session scope, to keep track of some user data. Suppose, you have a JSF application. Assigned to your pages you might use named beans with request scope. If you need some session-wide info, you can use CDI:
@inject SessionBean mySessionBean
I moved an application which ran without known problems on GlassFish 3 to GlassFish 4. Everything worked fine, as long as I tested the app for myself. But using this app concurrent with other users, sometimes the app showed me a session timeout, could not restore a conversation or, in one case, showed me data of a concurrent user. It seemed, a SessionBean object of a different user had been injected to the request bean assigned to my request. Continue reading
Since beginning of 2012, I track visits of my web site to generate some anonymous statistics. This is done by using Piwik on my local server. To keep your privacy, only shortened IP addresses are recorded by this tracking system.
I’m going to present some key-figures, which might be interesting to know about. My blog is almost about computer science, especially web development. Developers may prefer other systems and devices than users with different interests. Thus, these key-figures cannot be generalized. They only represent data about visitors of my blog. Continue reading
Now, after we’ve addressed basic log-in with simple file realm, I want to move on by exchanging the authentication method. Remember, this tutorial is about web development with JavaServer Faces. All I showed for container based security so far, is technology entirely independent from JSF. Same applies to simple form log-in. But, it’s possible to embed this into some JSF techniques. And, further on, using programmatic log-in, this is done by the use of JSF. Continue reading