Properties set that start with the following will be added to the configuration:
cargo.resource.resource
cargo.datasource.datasource
you must nest properties, delimited by pipe in order to populate the corresponding objects.
alternatively, if you are using the API, use addResource() or addDataSource()
when Configuration.configure(container) is called, it will call verify()
verify() will throw a CargoException if one of the Resources or DataSources setup is not compatible with the Configuration type.
Note that typed configuration for Maven or Ant are not supported across both DataSources and Resources at the moment. If you are not using the API, use properties to configure your DataSource or Resources.
I added the ability to add more resources to a local container. Only tomcat actually does anything with the added resources though.
I also updated the maven2 extensions, so you can now add a resources statement in your pom:
<configuration>
<resources>
<resource>
<name>someDataSource</name>
<type>javax.sql.DataSource</type>
<parameters>
<url>jdbc...</url>
<maxWait>500</maxWait>
...
</parameters>
</resource>
</resources>
</configuration>
Its all unit tested for your pleasure