within the weblogic-application.xml file I can specify a "realm-name" within the "security" tag.
My first thought was that I can select one of a list of configured realms within a weblogic domain.
I have created a second realm with the name "SampleRealm". To verify, that this realm is valid I made it the default realm, restarted the server and connected to the
AdminServer. Afterwards I switched the default realm back to "myrealm" and restarted the server again.
When I start the application with "realm-name" in "weblogic-application.xml", which is not the "default realm" I am getting an error message:
weblogic.security.service.InvalidParameterException: [Security:090396]Security Realm SampleRealm does not exist
Whe I active "SampleRealm" (make it the default realm), I can start the application.
So I have two questions:
1) Why can I configure a "realm-name" inside weblogic-application.xml if the only valid value is the name of the realm which is configured as default-realm?
2) Is there any other intended use of multiple realms within one domain than being able to import/export from an existing realm into a new one?
For 1): The fact, that I can configure a "realm-name" in weblogic-application.xml misleaded me to the assumption, that I can specify one of the configured realms inside the domain. But this is not true. (If I configure a realm, which is not the default realm, I get an exception.)
The way it is working now seems to be a manual version of the useless box (http://www.youtube.com/watch?v=aqAUmgE3WyM) - I have to change the "realm-name" to the name of the default realm. So there is no sense, specifying that value at all - is it?