[prev in list] [next in list] [prev in thread] [next in thread]
List: lenya-user
Subject: ServiceManager into servlet
From: Frank Hamilton <iicc96 () hotmail ! com>
Date: 2009-05-29 12:59:27
Message-ID: 23779538.post () talk ! nabble ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic