How to configure osgi config xml under config folder programatically?

Avatar

Avatar

tahir1601

Avatar

tahir1601

tahir1601

30-06-2019

Hi,

I have a requirement to set osgi config properties @programatically. For instance i have created a xml file under config file(email service) with below values

<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"

    jcr:primaryType="sling:OsgiConfig"

    debug.email="{Boolean}true"

    from.address=""

    smtp.host="smtp.gmail.com"

    smtp.password="password"

    smtp.port="465"

    smtp.ssl="{Boolean}true"

    smtp.user="mymail@gmail.com"/>

Arun PatidarJoerg Hohsmacdonald2008

I wasnt to set all these values programatically

View Entire Topic

Avatar

Avatar

tahir1601

Avatar

tahir1601

tahir1601

30-06-2019

i want the from.email or smtp.user to be coming from dialog.