Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2799

JDBC_PING: inject the DataSource with a separate class

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 5.4, 5.3.7, 5.2.26
    • None
    • None
    • False
    • None
    • False

      Currently, a DataSource can be injected via a setter or by fetching it from JNDI.

      Additionally, provide the fully qualified name of a class which implements Function<JDBC_PING,DataSource>, e.g.

          class MyDataSourceInjecter implements Function<JDBC_PING,DataSource> {
              @Override
              public DataSource apply(JDBC_PING p) {
                  return null; // change to return the DS
              }
          }
      

      Configuration:

      <JDBC_PING datasource_injecter_class="com.foo.MyDataSourceInjecter".../>
      

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: