1 Reply Latest reply on Jun 10, 2005 4:37 PM by adrian.brock

    Datasource on JRunit Web Report application

    clebert.suconic

      I will need to use a datasource for accessing the database with benchmark executions.

      I'm considering to use a pre-determined name (like JRunitDS) and document it.

      Is this okay, or someone thinks I should configure it in a XML/property file?


      Clebert

        • 1. Re: Datasource on JRunit Web Report application

          Ideally, it should be in a resource-ref.

          In anycase, you can always define the real binding with a naming alias.

           <mbean code="org.jboss.naming.NamingAlias"
           name="jboss.jrunit:type=DataSource,alias=JRunitDS">
           <attribute name="FromName">java:/JRunitDS</attribute>
           <attribute name="ToName">java:/MySQLDS</attribute>
           <depends>jboss:service=Naming</depends>
           </mbean>