Programming to the Caching Realm in Web Applications

You might need to access the caching realm in order to modify the security realm, for operations such as adding users to your Web application. You also might want to allow users to register themselves and automatically log into the system. So far, we have only described how to add users through the WebLogic Server console.

In this section, we expand the form-based authorization example to include programmatic access to the caching realm. We then configure and deploy the expanded example using the RDBMS and the caching realm together.

The Realm API

The WebLogic Server realm API can be accessed from your Web application code. First, your application acquires an instance of the current caching ...

Get J2EE™ Applications and BEA™ WebLogic Server™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.