cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Bug In Cocoon2.0.1 ?
Date Sun, 10 Feb 2002 18:05:09 GMT
> From: yuryx [mailto:yuryx@mobicomk.donpac.ru]
> 
> Hi all!
> I have use database within polled connections.
> In my JSP page I try:

<snip/>

>      ComponentSelector selector=(ComponentSelector)
> manager.lookup(Roles.DB_CONNECTION);

Roles are defined in the cocoon.roles file now. In code, use:

manager.lookup(org.apache.avalon.excalibur.datasource.DataSourceComponen
t.ROLE + "Selector");

Vadim


>      DataSourceComponent datasource=(DataSourceComponent)
> selector.select("my_connection");
>      conn= datasource.getConnection();
> %>
>  </content>
> </page>
> 
> And I have error .
> Yes, I don't found Roles.class in cocoon-2.0.1.jar
> And I don't found in cocoon's documentation implementation for this
> features.
> This bug or not?
> Any ideas?
> Thanx
> Yury


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message