All Downloads are FREE. Search and download functionalities are using the official Maven repository.

OSGI-INF.blueprint.blueprint.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
       xsi:schemaLocation="
       http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
       http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
       http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">

   <!-- OSGI blueprint property placeholder -->
   <cm:property-placeholder persistent-id="edu.amherst.acdc.idiomatic" update-strategy="reload">
     <cm:default-properties>
       <cm:property name="error.maxRedeliveries" value="10"/>
       <cm:property name="jms.brokerUrl" value="tcp://localhost:61616"/>
       <cm:property name="input.stream" value="activemq:topic:fedora"/>
       <cm:property name="rest.prefix" value="idiomatic"/>
       <cm:property name="rest.port" value="9080"/>
       <cm:property name="id.property" value="dc:identifier"/>
       <cm:property name="id.namespace" value="http://purl.org/dc/elements/1.1/"/>
       <cm:property name="id.prefix" value=""/>
       <cm:property name="fcrepo.baseUrl" value="localhost:8080/fcrepo/rest"/>
     </cm:default-properties>
   </cm:property-placeholder>

  <reference id="dataSource" interface="javax.sql.DataSource" availability="optional" filter="(osgi.jndi.service.name=idiomaticds)"/>

  <reference id="minterService" interface="org.fcrepo.kernel.api.services.functions.UniqueValueSupplier" filter="(osgi.jndi.service.name=minter)" />

  <!-- component-wide configuration of jdbc -->
  <bean id="sql" class="org.apache.camel.component.sql.SqlComponent">
    <property name="dataSource" ref="dataSource"/>
  </bean>

  <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
    <property name="brokerURL" value="${jms.brokerUrl}"/>
  </bean>

  <camelContext xmlns="http://camel.apache.org/schema/blueprint">

    <package>edu.amherst.acdc.idiomatic</package>

    <restConfiguration component="jetty" host="localhost" port="{{rest.port}}"/>

    <route id="MinterRoute">
      <description>Create a freshly minted ID</description>
      <from uri="direct:minter"/>
      <setBody>
        <method ref="minterService" method="get"/>
      </setBody>
    </route>
  </camelContext>

</blueprint>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy