Dear Robert,
thank you for your suggestions. I will figure them out. I will do some investigations and report my efforts in one of the next days.
Hartmut

Am 07.09.2005 um 19:18 schrieb Robert Van Overmeiren:

Am 07.09.2005 um 19:18 schrieb Robert Van Overmeiren:

Maybe you need the new condensed 'Resource' element that's used by newer
JVM's.

Are you setting up a connection for a query or authentication via Realm?
I find with newer Tomcats, I have to configure it in two different
places for the two different purposes.

I attempted to document my notes on setting realms & connections on the
latest Tomcats.

...probably can't attach it, but maybe you can extract the HTML...


<html>
<head>
<title>Tomcat Realms</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {  font-family: Arial, Helvetica, sans-serif}
-->
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2 align="center">Tomcat Realms </h2>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr>
    <th valign="top">Realm Type</th>
    <th>4.x</th>
    <th>5.0.x</th>
    <th>5.5.x</th>
  </tr>
  <tr valign="top">
    <td>MemoryRealm</td>
    <td colspan="3">
      <ul>
        Demo Realm loads in memory and is static
      </ul>
    </td>
  </tr>
  <tr valign="top">
    <td>UserDatabaseRealm</td>
    <td colspan="3">
      <ul>
        Default Realm can be edited by Tomcat Admin Tool. <br>
        Any Realms defined in context descriptors override the default,
so not
        neccessary to remove.
      </ul>
    </td>
  </tr>
  <tr valign="top">
    <td>JDBCRealm</td>
    <td>
      <ol>
        Replace default Realm in server config (server.xml)
      </ol>
    </td>
    <td colspan="2">
      <ol>
        Replace default Realm in server config, or add JDBCRealm to
context config
        ([webappname].xml)
      </ol>
    </td>
  </tr>
  <tr valign="top">
    <td>DataSourceRealm</td>
    <td>
      <ol>
        Replace default Realm in server config
      </ol>
    </td>
    <td colspan="2">
      <ol>
        Replace default Realm in server config, or add DataSourceRealm
to context
        config
      </ol>
    </td>
  </tr>
  <tr valign="top">
    <td>JNDI Named JDBC DataSource for Realms</td>
    <td>
      <ul>
        No Notes
      </ul>
    </td>
    <td>
      <ol>
        Add Resource and ResourceParams elements to Global Resources in
server
        config
      </ol>
    </td>
    <td>
      <ul>
Add condensed Resource element (with parameters - no factory) to
Global
        Resources
      </ul>
    </td>
  </tr>
  <tr valign="top">
    <td>JNDI Named JDBC DataSource for Lookups</td>
    <td>
      <ul>
        No Notes
      </ul>
    </td>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr valign="top">
          <th>context in server config (Mag2.0)</th>
          <th>context in context config (Mag2.1)</th>
        </tr>
        <tr valign="top">
          <td>
            <ol>
              <li> Add Resource and ResourceParams elements to Global
Resources</li>
              <li>Add ResourceLink element to context element</li>
            </ol>
          </td>
          <td>
            <ol>
              <li> Add Resource and ResourceParams elements to context
config</li>
              <li>A resource-ref element should go in the webapps
web.xml, but
                tests work without</li>
            </ol>
          </td>
        </tr>
      </table>
    </td>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr>
          <th>(context in context config)</th>
        </tr>
        <tr>
          <td>
            <ol>
              <li> Add condensed Resource element (with parameters - no
factory)
                to context config</li>
            </ol>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr valign="top">
    <td>JNDIRealm</td>
    <td colspan="3">
      <ul>
        Configure Realm to reference LDAP server
      </ul>
    </td>
  </tr>
  <tr valign="top">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<p>&nbsp; </p>
</body>
</html>


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 07, 2005 3:37 AM
To: [email protected]
Subject: Re: [magnolia-user] place a DBCP Resource element so it can be
used globally?

Hey Robert,

I tried the same, but with JBoss. Do you have any idea, how to get your
configuration working in jboss?

Would be grateful for any suggestions.

Hartmut



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to