[jboss-jira] [JBoss JIRA] Updated: (JBAS-5004) Mbeans declared in a DataSource descriptor should be started before the DataSource

Adrian Brock (JIRA) jira-events at lists.jboss.org
Mon Nov 26 14:25:18 EST 2007


     [ http://jira.jboss.com/jira/browse/JBAS-5004?page=all ]

Adrian Brock updated JBAS-5004:
-------------------------------

       Issue Type: Feature Request  (was: Bug)
    Fix Version/s:     (was: JBossAS-5.0.0.GA)
                       (was: JBossAS-4.2.3.GA)
         Priority: Minor  (was: Major)

Changed to a feature request. 
Don't raise bug reports from guesses.

In no way is this GUESS by the security team accurate.
Nor has there been any change in behaviour occurred.

It is clearly documentated that for a datasource to depend on an MBean you must do

<local-tx-datasource>
...
<depends>com.acme:service=whatever</depends>
</local-tx-datasource>

In fact, this is exactly what happens in hsqldb-ds.xml (the default datasource
that comes with jboss)

<datasources>
   <local-tx-datasource>

      <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
      <!-- Datasources are not available outside the virtual machine -->
      <jndi-name>DefaultDS</jndi-name>

...

      <!-- When using in-process (standalone) mode -->
      <depends>jboss:service=Hypersonic,database=localDB</depends>
      <!-- Uncomment when using hsqldb in server mode
      <depends>jboss:service=Hypersonic</depends>
      -->
   </local-tx-datasource>

...

   <!-- For hsqldb accessed from jboss only, in-process (standalone) mode --> 
   <mbean code="org.jboss.jdbc.HypersonicDatabase" 
     name="jboss:service=Hypersonic,database=localDB">
     <attribute name="Database">localDB</attribute>
     <attribute name="InProcessMode">true</attribute>

I don't have any plans to implement this heuristic.
This configuration mechanism is broken for different reasons.

> Mbeans declared in a DataSource descriptor should be started before the DataSource
> ----------------------------------------------------------------------------------
>
>                 Key: JBAS-5004
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5004
>             Project: JBoss Application Server
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: JCA service
>    Affects Versions: JBossAS-4.2.2.GA
>            Reporter: Marcus Moyses
>            Priority: Minor
>
> A mbean declared inside a datasource descriptor should be started before the datasource and the datasource recorded as dependent on the mbean.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list