Database Access - Red Hat APPLICATION SERVER - JONAS Tutorial

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

Advertisement

20
# Groupname for Javagroups. No need to change if not known.
carol.cmi.multicast.groupname=G1
# Factor used for this server in wheighted round robin algorithms
carol.cmi.rr.factor=100
# If enabled, cluster stubs will print messages on some error cases
carol.cmi.stub.debug=false
# If true, local call with jrmp are optimized.
# If you get "ClassCastException with 2 beans in different jars,
# you should set it at "false".
carol.jvm.rmi.local.call=false
carol.jndi.java.naming.factory.url.pkgs=org.objectweb.jonas.naming

4.1.3. Database Access

Any database with a JDBC driver can be used with JOnAS. Sample properties files are provided for
Oracle, InstantDB, Interbase, and PostgreSQL. If you want to setup a new database, you can modify
one of those configuration files to suit your database driver requirements. Here is the PostgreSQL
example:
###################### PostgreSQL DataSource configuration example
#
#####
#
DataSource configuration
#
Replace db_jonas and jonas by appropriate values.
#
datasource.name
datasource.url
datasource.classname
datasource.username
datasource.password
datasource.mapper rdb.postgres
#####
#
ConnectionManager configuration
#
#
JDBC connection checking level.
#
0 = no special checking
#
1 = check physical connection is still open before reusing it
#
2 = try every connection before reusing it
jdbc.connchecklevel 1
#
Max age for jdbc connections
#
nb of minutes a connection can be kept in the pool
jdbc.connmaxage
#
Test statement
jdbc.connteststmt select 1
Note that
postgresql_ds
to reference this datasource. Also, if you called this file
jdbc_1
jdbc:postgresql://localhost:5433/db_jonas
org.postgresql.Driver
jonas
jonas
30
is the name that you will have to use in your beans deployment descriptors
Chapter 4. Getting Started With JOnAS
postgresql.properties
, you must define

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