Berlin,
I was wondering if you have any ideas on this. My application defines a
component which encapsulates an HSQLDB server. Then another
ResourceLimitingJdbcDataSource components is configured to connect to
the interval HSQL component:
<rl-jdbc id="backend" name="backend" activation="inline">
<pool-controller max="5"/>
<auto-commit>true</auto-commit>
<driver>org.hsqldb.jdbcDriver</driver>
<dburl>jdbc:hsqldb:hsql://localhost:9001</dburl>
<user>sa</user>
<password></password>
</rl-jdbc>
<hsqldb id="hsqldb" name="hsqldb" activation="inline">
<port>9001</port>
<database debug="true" silent="true">../data/queue</database>
<so-timeout>0</so-timeout>
<use-log-enabled-sockets>false</use-log-enabled-sockets>
</hsqldb>
The problem is that I would like to declare the rl-jdbc component as being
dependent on the hsqldb component so that shutdown and startup will always
take place in the correct order.
I am thinking of creating a subclass of ResourceLimitingJdbcDataSource
which will have such a dependency. Does that sound like the best way to do
this? Most likely it is the only real option as there is no place else
to declare
the dependency.
Would it make sense to define a way to declare dependencies in a
component's configuration block? This may not be a common enough
problem to warrant the added clutter.
Thoughts?
Cheers,
Leif
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]