Solved

What is a database realm?

Posted on 2002-03-13
1
772 Views
Last Modified: 2013-12-10
Dear all,


What is a database realm? Do I need to have one to use a mysql database with connection pooling?


In the config.xml file, I have this setup:

  <JDBCConnectionPool
    CapacityIncrement="2"
    DriverName="org.gjt.mm.mysql.Driver"
    InitialCapacity="4"
    LoginDelaySeconds="1"
    MaxCapacity="10"
    Name="mysqlPool"
    Properties="user=hans;password=qgCQFkPV"
    RefreshMinutes="10"
    ShrinkPeriodMinutes="15"
    ShrinkingEnabled="true"
    Targets=""
    TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="false"
    TestTableName="dual"
    URL="jdbc:mysql://localhost:3306/db1"
  />
 
  <JDBCDataSource
    JNDIName="generic-dataSource-mysqlPool"
    Name="generic-dataSource-mysqlPool"
    PoolName="mysqlPool"
    Targets="genericServer"
  />


  <RDBMSRealm
    Name="defaultRDBMSRealmForMySql"
    RealmClassName="generic.security.rdbmsrealm.RDBMSRealm"
    DatabaseDriver="org.gjt.mm.mysql.Driver"
    DatabaseURL="jdbc:mysql://localhost:3306/db1"
    DatabaseUserName="hans"
    DatabasePassword="qgCQFkPV"
    SchemaProperties=""
    Notes="The data source for the mySql database db1"
  />


Do I need the rdbmsrealm?


Stephane

0
Comment
Question by:stephaneeybert
1 Comment
 
LVL 1

Accepted Solution

by:
pepenieto earned 50 total points
ID: 6885007
A Database realm is used for managing java security. That is, if you want to use java security (ACL´s, USER´s, GROUP´s) in your application, and you want the users & groups of your application to be the same that managed for weblogic, you must do a rdbmsrealm that tells weblogic what are the tables, views, sql statements,... to access your database information.

If you want to use your mysql database you don´t need rdbmsrealm.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now