> From: yuryx [mailto:[EMAIL PROTECTED]]
>
> 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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>