Red Hat APPLICATION SERVER - JONAS Manual page 40

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

32
driver installed. (Oracle JDBC drivers can be downloaded from Oracle's web site:
http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html)
For example:
sqlplus user/passwd
SQL
@Account.sql
SQL
quit
The JDBC driver classes must be accessible from the classpath. To do this, update the
file
$JONAS_ROOT/bin/unix/config_env
3.5.7.2. Configuring Other Databases
The same type of process can be used for other databases. A template of datasource for PostgreSQL
and for InterBase is supplied with JOnAS. Although many other databases are currently used by the
JOnAS users (for example, Informix, Sybase, SQL Server), not all JDBC drivers have been tested
against JOnAS.
3.5.8. Configuring the Security Service
The Security service is used by the Container service to provide security for EJB components. The
Container service
rity. The Security service uses security roles and method permissions located in the EJB deployment
descriptor.
Note that:
JOnAS relies on Tomcat (http://jakarta.apache.org/tomcat) for the identification of the web clients.
The Java clients use the JAAS login modules for the identification. JOnAS performs the user au-
thentication.
In the
$JONAS_ROOT/conf/jonas-realm.xml
JOnAS:
Memory realm: users, groups, and roles are written in the file in the section
jonas-memoryrealm
Datasource realm: users, groups, and roles information is stored in a database; the configura-
tion for accessing a specific datasource is described in the section
$JONAS_ROOT/conf/jonas-realm.xml
The configuration requires the name of the datasource, the tables used, and the names of the
columns.
LDAP realm: users, groups, and roles information is stored in an LDAP directory. This is de-
scribed in the section
file.
There are some optional parameters. If they are not specified, some of the parameters are
set to a default value. That is, if the
ldap://localhost:389.
Edit the
jonas-realm_1_0.dtd
For Tomcat, use the realm:
These realms require as an argument the
This is the name that is in the
provides security in two forms: declarative security and programmatic secu-
of the
$JONAS_ROOT/conf/jonas-realm.xml
jonas-ldaprealm
DTD file to see the default values.
org.objectweb.jonas.security.realm.web.catalina50.JACC
jonas-realm.xml
.
file you can define three types of Realm for
file.
of the
$JONAS_ROOT/conf/jonas-realm.xml
element is not set, the default value is
providerUrl
of the resource to be used for the authentication.
name
file.
Chapter 3. JOnAS Configuration
file.
jonas-dsrealm
config_env
of the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Application server

Table of Contents