Christopher Watson wrote: > Hello 'spinners' > > I would like to pass a connection from the pool to a java class > > The documentation at > http://xml.apache.org/cocoon/developing/datasources.html is out of date I > think. > ... > but there's no longer an org.apache.cocoon.Roles class in the classpath > > can anyone help? >
Christopher, yup, the docos are out of date. try this: change: ComponentSelector selector = (ComponentSelector)manager.lookup(Roles.DB_CONNECTION) to: ComponentSelector selector = (ComponentSelector)manager.lookup(DataSourceComponent.ROLE+"Selector") best regards, Sam Coward --------------------------------------------------------------------- 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]>