With Pax-Web 3.0 it's possible to use Pax-CDI which lets you inject std.
OSGi services into Servlets.

Regards, Achim


2013/9/23 Matthew Bishop <[email protected]>

> The short answer is yes, but via gemini blueprint. You can create a bean
> that refers to the service you are trying to configure and add in a
> managed-properties directive to fire a PID change to a method like this:
>
> <bean id="yourManagedService" class="com.company.YourManagedService.class">
>   <compendium:managed-properties persistent-id="yourPID"
> update-method="updateProperties"/>
>         </bean>
>
>
>
>
> Compendium's
> schemaLocation="
> http://www.eclipse.org/gemini/blueprint/schema/blueprint-co
> mpendium
>
> http://www.eclipse.org/gemini/blueprint/schema/blueprint-compendium/gemi
> ni-blueprint-compendium.xsd">
>
>
>
>
> On 2013-09-23 12:49 PM, "Jean-Baptiste Onofré" <[email protected]> wrote:
>
> >Hi Oli,
> >
> >not sure to follow you. You can always use Spring in your WAR, with a
> >property placeholder which relay to ConfigAdmin.
> >
> >Is it what you are looking for ? I can send you an example if you need.
> >
> >Regards
> >JB
> >
> >On 09/23/2013 09:29 PM, Oliver Wulff wrote:
> >> Hi there
> >>
> >> Is it possible to use the Config Admin service to configure properties a
> >> web application which uses spring and has been deployed using the WAR
> >> deployer?
> >>
> >> Thanks
> >>
> >> Oli
> >>
> >
> >--
> >Jean-Baptiste Onofré
> >[email protected]
> >http://blog.nanthrax.net
> >Talend - http://www.talend.com
> >
>
>
>
>
> Matthew Bishop, Senior Architect
> Mobile: +1-604-218-8102
> Email: [email protected]
>
> Elastic Path Software Inc.
> Web: www.elasticpath.com
> Blog: www.getelastic.com
> Community: grep.elasticpath.com
> Careers: www.elasticpath.com/jobs
>
> Confidentiality Notice: This message is intended only for the use of the
> designated addressee(s), and may contain information that is privileged,
> confidential and exempt from disclosure. Any unauthorized viewing,
> disclosure, copying, distribution or use of information contained in this
> e-mail is prohibited and may be unlawful. If you received this e-mail in
> error, please reply to the sender immediately to inform us you are not the
> intended recipient and delete the email from your computer system. Thank
> you.
>
>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to