Hello, I use some servlet in my application for ajax propose. In one of this servlet a need access to the datasource defined in cocoon.xconf. When I need the datasource in a input module or in a usecase handler I use this code:
ServiceSelector dbselector = (ServiceSelector) manager.lookup(DataSourceComponent.ROLE + "Selector"); DataSourceComponent datasource = (DataSourceComponent) dbselector.select(DB_RESOURCE_NAME); In this class I have a SeviceManager object, but how can get a ServiceManager in a Servlet or how can access to the DatasourceComponen ? Any idea, TIA. -- View this message in context: http://www.nabble.com/ServiceManager-into-servlet-tp23779538p23779538.html Sent from the Lenya - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org For additional commands, e-mail: user-h...@lenya.apache.org