Hello,
I do not get the DataSourceComponentSelector to work with fortress. In
cocoon and the Excalibur Examples, the .roles and .xconf files look like
this
<roles>
<role
name="org.apache.avalon.excalibur.datasource.DataSourceComponentSelector"
shorthand="datasources"
default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelec
tor">
<hint shorthand="jdbc"
class="org.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource
"/>
<!-- hint shorthand="jdbc"
class="org.apache.avalon.excalibur.datasource.JdbcDataSource"/ -->
<hint shorthand="j2ee"
class="org.apache.avalon.excalibur.datasource.J2eeDataSource"/>
<hint shorthand="informix"
class="org.apache.avalon.excalibur.datasource.InformixDataSource"/>
</role>
</roles>
and
<datasources
class="org.apache.avalon.excalibur.datasource.DataSourceComponentSelector"
logger="datasources">
<jdbc name="tst">
<pool-controller max="10" min="5"/>
<driver>com.sap.dbtech.jdbc.DriverSapDB</driver>
<dburl>jdbc:sapdb://localhost/TST</dburl>
<user>TEST</user>
<password>test</password>
</jdbc>
</datasources>
I started to put up just a single DataSourceComponent and this works with
fortress. I want to use the same backend classes of my application in cocoon
and other frameworks (e.g. swing). This means, use a DataSourceComponent
"exclusiv or" DataSourceComponentSelector for the backend Application (e.g.
the "Model" Part of MVC).
Is it possible to use DataSourceComponentSelector in fortress or do I have
to use ExcaliburComponentManager or another Container (or do I have to write
my own or use that one of cocoon)?
Jens
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]