using camel-dap in karaf / blueprint

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

using camel-dap in karaf / blueprint

MatteoRedaelli
 was able to use camel-ldap in a project created with the archetype
"camel-archetype-spring". Now I would like to run my route in karaf /
blueprint but I get the error

 Invalid content was found starting with element 'constructor-arg'. One of
'{"http://www.osgi.org/xmlns/blueprint/v1.0.0":description, "
http://www.osgi.org/xmlns/blueprint/v1.0.0":argument, "
http://www.osgi.org/xmlns/blueprint/v1.0.0":property, WC[##other:"
http://www.osgi.org/xmlns/blueprint/v1.0.0"]}' is expected.

I found in an other post that I should change the syntax as suggested by
http://aries.apache.org/modules/blueprint.html#bean-construction

but I cannot find te right syntax: can anyone hel me, please?

My staring syntax is

    <bean id="sc" class="javax.naming.ldap.PagedResultsControl">
      <constructor-arg index="0">
        <value>250</value>
      </constructor-arg>
      <constructor-arg index="1">
        <value>true</value>
      </constructor-arg>
    </bean>

    <bean id="ldap_domain_group"
class="javax.naming.ldap.InitialLdapContext" scope="prototype">
      <constructor-arg index="0">
        <props>
          <prop
key="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</prop>
          <prop key="java.naming.provider.url">ldap://
myldap.redaelli.org:3268</prop>
          <prop key="java.naming.security.authentication">simple</prop>
          <prop key="java.naming.security.principal">[hidden email]
</prop>
          <prop key="java.naming.security.credentials">mypwd</prop>
        </props>
      </constructor-arg>
      <constructor-arg index="1">
        <ref bean="sc"/>
      </constructor-arg>
    </bean>


Regards
Matteo