You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Frank Hamilton <ii...@hotmail.com> on 2009/05/29 14:59:27 UTC
ServiceManager into servlet
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-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org