This question was asked in cocoon-users a few days ago, but there was no
definitive answer. I'm bringing it here since I think it is relevant to
the cocoon-apps discussion. If it is possible to have a cocoon.xconf
file in a subdirectory be read at startup, it would be much easier to
develop apps. For example, I need to add a jdbc datasource to
cocoon.xconf for my blogging app and it would be great to be able not to
touch the main cocoon.xconf at all.
Ugo
--
Ugo Cei - http://www.beblogging.com/blog/
--- Begin Message ---
Following the statement :
>!Sub-Sitemaps and Components
>Since Cocoon 2.0.X it has been possible to include additional cocoon.xconf
>files in sub-directories. These will be automatically processed by Cocoon,
>allowing the declaration and use of additional components, JDBC connections,
>etc. Again this enables multiple users to more easily share a single
>Cocoon instance.
I was trying to put the appropriate datasource definition for my cocoon
application in th application folder (/cocoon/cdn)
The cocoon says that no datasource can be found so my cocoon.xconf is not
being processed. I also tried to put it into /cocoon/cdn/WEB-INF but that gave
no result also
my cocoon.xconf file is simple:
coon version="2.0">
<datasources>
<jdbc name="cdn" logger="core.datasources.cdn">
<pool-controoller min="1" max="10"/>
<auto-commit>false</auto-commit>
<dburl>jdbc:izmado:Provider=MSDASQL;Driver={Sql
Server};Server=OUZO\CDN_OPTIMA;Database=CDN_Demo;USER ID=SA;</dburl>
<user>sa</user>
<password></password>
</jdbc>
</datasources>
</cocoon>
Is this all really possible ?
ouzo
--
__
| / \ | Leszek Gawron // \\
\_\\ //_/ [EMAIL PROTECTED] _\\()//_
.'/()\'. Phone: +48(600)341118 / // \\ \
\\ // recursive: adj; see recursive | \__/ |
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]