Commit b589d504 authored by Arnaud Saval's avatar Arnaud Saval
Browse files

WEBLAB-1071 update configuration files to match camel-weblab

git-svn-id: svn://svn.forge.objectweb.org/svnroot/weblab/trunk/WebLabApplications/bundle@3651 a803c184-d8de-4a0e-a52b-d3eef88212b6
parent 8f56537c
......@@ -2,30 +2,29 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:soap="http://cxf.apache.org/bindings/soap" xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:cxf="http://camel.apache.org/schema/cxf"
xmlns:cxf="http://camel.apache.org/schema/cxf" xmlns:osgi="http://www.springframework.org/schema/osgi"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd" >
<import resource="classpath:routes/Processing.xml" />
<import resource="classpath:routes/WarcConsumingRoutes.xml" />
<import resource="classpath:routes/FileConsumingRoutes.xml" />
<!-- XML parsers -->
<bean id="xalanFactory" class="org.apache.xalan.processor.TransformerFactoryImpl" />
<bean id="saxonFactory" class="net.sf.saxon.TransformerFactoryImpl" />
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<!-- JMS configuration -->
<bean id="jmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616"/>
<property name="userName" value="karaf"/>
<property name="password" value="karaf"/>
<property name="userName" value="weblab"/>
<property name="password" value="weblab"/>
</bean>
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
......@@ -47,7 +46,7 @@
<!--========== WEB SERVICES =========== -->
<!--======================================================= -->
<cxf:cxfEndpoint id="tika"
<cxf:cxfEndpoint id="tika"
address="http://localhost:8181/tika-normaliser/analyser" serviceClass="org.ow2.weblab.core.services.Analyser">
<cxf:properties>
<entry key="dataFormat" value="PAYLOAD" />
......@@ -81,7 +80,7 @@
</cxf:properties>
</cxf:cxfEndpoint>
<cxf:cxfEndpoint id="repository"
<cxf:cxfEndpoint id="repository"
address="http://localhost:8181/simple-file-repository/resourceContainer"
serviceClass="org.ow2.weblab.core.services.ResourceContainer">
<cxf:properties>
......@@ -90,17 +89,50 @@
</cxf:properties>
</cxf:cxfEndpoint>
<!--======================================================= -->
<!--========== OSGi SERVICES =========== -->
<!--======================================================= -->
<osgi:service id="osgi-service-tika" ref="tika" interface="org.apache.camel.Endpoint">
<osgi:service-properties>
<entry key="name" value="service-tika"/>
</osgi:service-properties>
</osgi:service>
<osgi:service id="osgi-service-ngramj" ref="ngramj" interface="org.apache.camel.Endpoint" >
<osgi:service-properties>
<entry key="name" value="service-ngramj"/>
</osgi:service-properties>
</osgi:service>
<osgi:service id="osgi-service-gate" ref="gate" interface="org.apache.camel.Endpoint" >
<osgi:service-properties>
<entry key="name" value="service-gate"/>
</osgi:service-properties>
</osgi:service>
<osgi:service id="osgi-service-solr" ref="solr" interface="org.apache.camel.Endpoint" >
<osgi:service-properties>
<entry key="name" value="service-solr"/>
</osgi:service-properties>
</osgi:service>
<osgi:service id="osgi-service-repository" ref="repository" interface="org.apache.camel.Endpoint" >
<osgi:service-properties>
<entry key="name" value="service-repository"/>
</osgi:service-properties>
</osgi:service>
<!--======================================================= -->
<!--========== CAMEL CONTEXT =========== -->
<!--======================================================= -->
<camelContext id="weblabCamelContext" xmlns="http://camel.apache.org/schema/spring">
<routeContextRef ref="processingRoutes" />
<routeContextRef ref="warcProcess" />
<routeContextRef ref="fileProcess" />
<endpoint id="files-endpoint" uri="file:${weblab.files}"/>
<endpoint id="warcs-endpoint" uri="file:${weblab.warcs}"/>
<!--======================================================= -->
<!--========== DATA FORMATS =========== -->
......
......@@ -13,7 +13,7 @@
http://camel.apache.org/schema/cxf/camel-cxf.xsd">
<!--======================================================= -->
<!--========== SPECIFIC BEANS =========== -->
<!--======================================================= -->
......@@ -28,7 +28,8 @@
<!-- This route consume WARCS -->
<route id="consumeFile" streamCache="true" autoStartup="true">
<from uri="file:../data/toIndex/" />
<!-- <from uri="file:../data/toIndex/" /> -->
<from uri="ref:files-endpoint" />
<log message="new file to process ..." />
......@@ -51,7 +52,7 @@
<convertBodyTo type="java.lang.String" />
<to uri="jms:queue:weblabdocsin" />
<inOnly uri="jms:queue:weblabdocsin" />
</route>
</routeContext>
</beans>
\ No newline at end of file
......@@ -13,7 +13,6 @@
http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd">
<!--======================================================= -->
<!--========== ROUTE CONTEXT =========== -->
<!--======================================================= -->
......@@ -21,8 +20,7 @@
<routeContext id="processingRoutes" xmlns="http://camel.apache.org/schema/spring">
<!-- This route process WL resource -->
<route id="processWeblabDocsQueue" streamCache="true"
autoStartup="true">
<route id="processWeblabDocsFromQueue" streamCache="true" autoStartup="true">
<!-- Consuming messages -->
<from uri="jms:queue:weblabdocsin?concurrentConsumers=1" />
......@@ -60,136 +58,29 @@
<constant>true</constant>
</handled>
<log message="Parse exception... moving to error queue" />
<!-- and since this is a unit test we use mock for assertions -->
<to uri="jms:queue:parse-error" />
</onException>
<!-- =================================================================== -->
<!-- SERVICES CALLS -->
<!-- =================================================================== -->
<!-- Prepare a processArg -->
<to uri="xslt:xsl/addProcessArg.xsl?transformerFactory=xalanFactory" />
<log loggingLevel="INFO" message="arguments prepared" />
<!-- Prepare SOAP request -->
<removeHeader headerName="text" />
<setHeader headerName="operationName">
<constant>process</constant>
</setHeader>
<setHeader headerName="operationNamespace">
<constant>http://weblab.ow2.org/core/1.2/services/analyser</constant>
</setHeader>
<setHeader headerName="SOAPAction">
<constant>process</constant>
</setHeader>
<!-- Calling TIKA -->
<log loggingLevel="INFO" message="calling tika" />
<to uri="cxf:bean:tika" />
<log loggingLevel="INFO" message="calling tika OK" />
<!-- Remove processReturn -->
<to
uri="xslt:xsl/removeProcessReturn.xsl?transformerFactory=saxonFactory" />
<log loggingLevel="INFO" message="Resource extracted from response" />
<!--========================== NEXT SERVICE ========================== -->
<!-- Prepare a processArg -->
<to uri="xslt:xsl/addProcessArg.xsl?transformerFactory=xalanFactory" />
<log loggingLevel="INFO" message="arguments prepared" />
<!-- Calling NGramJ -->
<log loggingLevel="INFO" message="calling ngramj" />
<to uri="cxf:bean:ngramj" />
<log loggingLevel="INFO" message="calling ngramj OK" />
<!-- Remove processReturn -->
<to
uri="xslt:xsl/removeProcessReturn.xsl?transformerFactory=saxonFactory" />
<log loggingLevel="INFO" message="Resource extracted from response" />
<!--========================== NEXT SERVICE ========================== -->
<!-- Prepare a processArg -->
<to uri="xslt:xsl/addProcessArg.xsl?transformerFactory=xalanFactory" />
<log loggingLevel="INFO" message="arguments prepared" />
<!-- Calling GATE -->
<log loggingLevel="INFO" message="calling gate" />
<to uri="cxf:bean:gate" />
<log loggingLevel="INFO" message="calling gate OK" />
<!-- Remove processReturn -->
<to
uri="xslt:xsl/removeProcessReturn.xsl?transformerFactory=saxonFactory" />
<log loggingLevel="INFO" message="Resource extracted from response" />
<!--========================== NEXT SERVICE ========================== -->
<!-- call Tika service -->
<to uri="weblab:analyser:service-tika" />
<!-- call NGramJ service -->
<to uri="weblab:analyser:service-ngramj" />
<!-- call Gate service -->
<to uri="weblab:analyser:service-gate" />
<!-- call Solr & the repository services in // -->
<multicast parallelProcessing="true">
<to uri="direct:saveResourceRoute" />
<to uri="direct:indexResourceRoute" />
<to uri="weblab:indexer:service-solr" />
<to uri="weblab:resourceSaver:service-repository" />
</multicast>
</route>
<route id="indexWeblabResource">
<from uri="direct:indexResourceRoute" />
<!--========================== NEXT SERVICE ========================== -->
<!-- Prepare indexArg -->
<to uri="xslt:xsl/addIndexArg.xsl?transformerFactory=saxonFactory" />
<log loggingLevel="DEBUG" message="arguments prepared" />
<!-- Prepare SOAP request -->
<setHeader headerName="operationName">
<constant>index</constant>
</setHeader>
<setHeader headerName="operationNamespace">
<constant>http://weblab.ow2.org/core/1.2/services/indexer</constant>
</setHeader>
<setHeader headerName="SOAPAction">
<constant>index</constant>
</setHeader>
<!--========================== MULTI-INDEXING ========================== -->
<!-- Calling SORL -->
<log loggingLevel="INFO" message="calling solr" />
<to uri="cxf:bean:solr" />
<log loggingLevel="INFO" message="calling solr OK" />
</route>
<route id="saveWeblabResource">
<from uri="direct:saveResourceRoute" />
<!-- Prepare SOAP request -->
<setHeader headerName="operationName">
<constant>saveResource</constant>
</setHeader>
<setHeader headerName="operationNamespace">
<constant>http://weblab.ow2.org/core/1.2/services/resourcecontainer</constant>
</setHeader>
<setHeader headerName="SOAPAction">
<constant>saveResource</constant>
</setHeader>
<!-- Prepare a saveResourceArg -->
<to uri="xslt:xsl/addSaveResourceArg.xsl?transformerFactory=xalanFactory" />
<log loggingLevel="INFO" message="arguments prepared" />
<!-- Calling REPO -->
<log loggingLevel="INFO" message="calling repo" />
<to uri="cxf:bean:repository" />
<log loggingLevel="INFO" message="calling repo OK" />
</route>
</routeContext>
</beans>
\ No newline at end of file
......@@ -28,7 +28,8 @@
<!-- This route consume WARCS -->
<route id="consumeWarcFile" streamCache="true" autoStartup="false">
<from uri="file:../data/warcs/" />
<!-- <from uri="file:../data/warcs/" /> -->
<from uri="ref:warcs-endpoint" />
<choice>
<when>
......@@ -84,7 +85,7 @@
<convertBodyTo type="java.lang.String" />
<to uri="jms:queue:weblabdocsin" />
<inOnly uri="jms:queue:weblabdocsin" />
</filter>
</split>
</when>
......
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:xalan="http://xml.apache.org/xalan" xmlns:xslt="http://xml.apache.org/xslt" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:modelns="http://weblab.ow2.org/core/1.2/model#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:twirl="http://twirl.org/ontology#"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:uuid="xalan://java.util.UUID"
xmlns:x="http://www.w3.org/1999/xhtml"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:indexer="http://weblab.ow2.org/core/1.2/services/indexer"
xmlns:datetime="http://exslt.org/dates-and-times"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="xml" version="1.0" indent="yes" xslt:indent-amount="4" encoding="utf-8"/>
<xsl:template match="/">
<xsl:element name="indexer:indexArgs">
<xsl:copy-of select="resource"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:xalan="http://xml.apache.org/xalan" xmlns:xslt="http://xml.apache.org/xslt" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:modelns="http://weblab.ow2.org/core/1.2/model#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:twirl="http://twirl.org/ontology#"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:uuid="xalan://java.util.UUID"
xmlns:x="http://www.w3.org/1999/xhtml"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:analyser="http://weblab.ow2.org/core/1.2/services/analyser"
xmlns:datetime="http://exslt.org/dates-and-times"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="xml" version="1.0" indent="yes" xslt:indent-amount="4" encoding="utf-8"/>
<xsl:template match="/">
<xsl:element name="analyser:processArgs">
<xsl:copy-of select="resource"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:xalan="http://xml.apache.org/xalan" xmlns:xslt="http://xml.apache.org/xslt" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:modelns="http://weblab.ow2.org/core/1.2/model#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:twirl="http://twirl.org/ontology#"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:uuid="xalan://java.util.UUID"
xmlns:x="http://www.w3.org/1999/xhtml"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:resourceContainer="http://weblab.ow2.org/core/1.2/services/resourcecontainer"
xmlns:datetime="http://exslt.org/dates-and-times"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="xml" version="1.0" indent="yes" xslt:indent-amount="4" encoding="utf-8"/>
<xsl:template match="/">
<xsl:element name="resourceContainer:saveResourceArgs">
<xsl:copy-of select="resource"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:analyser="http://weblab.ow2.org/core/1.2/services/analyser" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:output method="xml" version="1.0" indent="yes"/>
<xsl:template match="/analyser:processReturn">
<xsl:variable name="WLprefix" select="substring-before(resource/@xsi:type, ':')"/>
<xsl:element name="resource">
<xsl:namespace name="{$WLprefix}">http://weblab.ow2.org/core/1.2/model#</xsl:namespace>
<xsl:for-each select="resource/@*">
<xsl:copy/>
</xsl:for-each>
<xsl:copy-of select="resource/*"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:resourceContainer="http://weblab.ow2.org/core/1.2/services/resourcecontainer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:output method="xml" version="1.0" indent="yes"/>
<xsl:template match="/resourceContainer:saveResourceArgs">
<xsl:variable name="WLprefix" select="substring-before(resource/@xsi:type, ':')"/>
<xsl:element name="resource">
<xsl:namespace name="{$WLprefix}">http://weblab.ow2.org/core/1.2/model#</xsl:namespace>
<xsl:for-each select="resource/@*">
<xsl:copy/>
</xsl:for-each>
<xsl:copy-of select="resource/*"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
......@@ -16,6 +16,9 @@
<prop key="liferay.path">liferay-portal-6.1.2-ce-ga3/tomcat-7.0.40</prop>
<prop key="karaf.path">karaf-weblab-2.0.0-SNAPSHOT</prop>
<prop key="fuseki.path">jena-fuseki-1.0.0</prop>
<prop key="files.to.index">${weblab.data}toIndex</prop>
<prop key="warcs.to.index">${weblab.data}warcs</prop>
</props>
</property>
</bean>
......@@ -23,7 +26,7 @@
<bean id="WebLab" class="org.ow2.weblab.bundle.conf.WebLabBean">
<property name="debug" value = "info" />
<!-- <property name="home">/path/to/WebLab-Bundle-1.2.6/</property> -->
<!-- <property name="home">/path/to/WebLab-Bundle-2.0.0/</property> -->
<property name="jmxEnabled" value="true" />
<property name="monitoring"><ref bean="Monitoring"/></property>
......@@ -40,8 +43,8 @@
<property name="chainManagerService" value="http://localhost:${tomcat.http.port}/camel-router/chainManager" />
<property name="timeout" value="300000" />
<property name="toindex" value="${weblab.data}toIndex" />
<property name="warcs" value="${weblab.data}warcs" />
<property name="toindex" value="${files.to.index}" />
<property name="warcs" value="${warcs.to.index}" />
<property name="webdavPassword" value="demo" />
<property name="webdavUrl" value="http://localhost:8080/api/secure/webdav/guest/document_library/WebLab/" />
<property name="webdavUser" value="demo@weblab-project.org" />
......@@ -60,7 +63,7 @@
<property name="servers">
<list>
<ref bean="Fuseki"/>
<!-- <ref bean="Fuseki"/> -->
<!-- <ref bean="Heritrix"/> -->
<!-- <ref bean="ActiveMQ"/> -->
</list>
......@@ -79,7 +82,7 @@
<constructor-arg>
<map>
<entry key="CATALINA_HOME" value="${weblab.home}${tomcat.path}" />
<entry key="JAVA_OPTS" value=" -Xmx1500m -XX:MaxPermSize=256m -Dtomcat.http.port=${tomcat.http.port} -Dweblab.home=${weblab.home} -Dweblab.content.manager=${weblab.conf}contentManager.properties -Dweblab.files=${weblab.data}toIndex -Dweblab.warcs=${weblab.data}warcs -Dsolr.solr.home=${weblab.conf}solr -Dweblab.repository=${weblab.data}repository -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18181 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false " />
<entry key="JAVA_OPTS" value=" -Xmx1500m -XX:MaxPermSize=256m -Dtomcat.http.port=${tomcat.http.port} -Dweblab.home=${weblab.home} -Dweblab.content.manager=${weblab.conf}contentManager.properties -Dweblab.files=${files.to.index} -Dweblab.warcs=${warcs.to.index} -Dsolr.solr.home=${weblab.conf}solr -Dweblab.repository=${weblab.data}repository -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18181 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false " />
</map>
</constructor-arg>
</bean>
......@@ -140,8 +143,7 @@
<bean class="org.ow2.weblab.bundle.utils.ProcessUtils.Env">
<constructor-arg>
<map>
<entry key="JAVA_MAX_MEM" value="1024m" />
<entry key="JAVA_MAX_PERM_MEM" value="512m" />
<entry key="JAVA_OPTS" value=" -server -Xms128M -Xmx1024m -XX:MaxPermSize=512m -Dcom.sun.management.jmxremote -Dweblab.files=${files.to.index} -Dweblab.warcs=${warcs.to.index} " />
</map>
</constructor-arg>
</bean>
......
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"><beans> <bean id="servicesConfig" class="org.ow2.weblab.components.client.config.ServiceConfigMap"> <description> This is the main bean that will handle the weblab-client configuration. The principle is simple: for each service port (ie implementation of one generic interface) the configuration will have the implementation URI (in general linked to the application service taxonomy) and will link it to the actual URL to be used. </description> <constructor-arg> <map> <!-- For processing --> <entry key="http://weblab.ow2.org/core/1.2/services/resourceContainer#Load_Resource"> <value>http://localhost:8181/simple-file-repository/resourceContainer</value> </entry> <entry key="http://weblab.ow2.org/core/1.2/services/chainManager#Manage"> <value>http://localhost:8181/camel-router/chainManager</value> </entry> <!-- For retrieval --> <entry key="http://weblab.ow2.org/core/1.2/services/searcher#Full_Text_Search"> <value>http://localhost:8181/solr-engine/searcher</value> </entry> <entry key="http://weblab.ow2.org/core/1.2/services/analyser#FacetSuggestion"> <value>http://localhost:8181/solr-engine/rdfFacetSuggestion</value> </entry> <entry key="http://weblab.ow2.org/core/1.2/services/analyser#SpellSuggestion"> <value>http://localhost:8181/solr-engine/spellSuggestion</value> </entry> </map> </constructor-arg> </bean></beans>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"><beans> <bean id="servicesConfig" class="org.ow2.weblab.components.client.config.ServiceConfigMap"> <description> This is the main bean that will handle the weblab-client configuration. The principle is simple: for each service port (ie implementation of one generic interface) the configuration will have the implementation URI (in general linked to the application service taxonomy) and will link it to the actual URL to be used. </description> <constructor-arg> <map> <!-- For processing --> <entry key="http://weblab.ow2.org/core/1.2/services/resourceContainer#Load_Resource"> <value>http://localhost:8181/simple-file-repository/resourceContainer</value> </entry> <!-- For retrieval --> <entry key="http://weblab.ow2.org/core/1.2/services/searcher#Full_Text_Search"> <value>http://localhost:8181/solr-engine/searcher</value> </entry> <entry key="http://weblab.ow2.org/core/1.2/services/analyser#FacetSuggestion"> <value>http://localhost:8181/solr-engine/rdfFacetSuggestion</value> </entry> <entry key="http://weblab.ow2.org/core/1.2/services/analyser#SpellSuggestion"> <value>http://localhost:8181/solr-engine/spellSuggestion</value> </entry> </map> </constructor-arg> </bean></beans>
\ No newline at end of file
......
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi">
<service-assembly>
<identification>
<name>$SANAME$</name>
<description></description>
</identification>
<service-unit>
<identification>
<name>$SUNAME$</name>
<description></description>
</identification>
<target>
<artifacts-zip>$SUZIPNAME$</artifacts-zip>
<component-name>petals-bc-soap</component-name>
</target>
</service-unit>
</service-assembly>
</jbi>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<jbi:jbi version="1.0"
xmlns:interfaceNs="$INTERFACENS$"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
xmlns:serviceNs="$SERVICENS$"
xmlns:operationNs="$OPERATIONNS$"
xmlns:soap="http://petals.ow2.org/components/soap/version-4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- Import a Service into Petals or Expose a Petals Service => use a BC. -->
<jbi:services binding-component="true">
<!-- Expose a Petals Service => consumes a Service. -->
<jbi:consumes
interface-name="interfaceNs:$INTERFACENAME$"
service-name="serviceNs:$SERVICENAME$"
endpoint-name="$ENDPOINTNAME$">
<!-- CDK specific elements -->
<petalsCDK:timeout>0</petalsCDK:timeout>
<petalsCDK:operation>operationNs:$OPERATIONNAME$</petalsCDK:operation>
<petalsCDK:mep>InOut</petalsCDK:mep>
<!-- Component specific elements -->
<soap:service-name>$SOAPSERVICENAME$</soap:service-name>
<soap:mode>SOAP</soap:mode>
<soap:enable-http-transport>true</soap:enable-http-transport>
<soap:enable-jms-transport>false</soap:enable-jms-transport>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi"><services binding-component="true"><provides endpoint-name="$ENDPOINTNAME$" service-name="serviceNs:$SERVICENAME$" interface-name="interfaceNs:$INTERFACENAME$" xmlns:interfaceNs="$INTERFACENS$" xmlns:serviceNs="$SERVICENS$"><petalsCDK:timeout xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">0</petalsCDK:timeout><petalsCDK:validate-wsdl xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true</petalsCDK:validate-wsdl><petalsCDK:forward-security-subject xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">false</petalsCDK:forward-security-subject><petalsCDK:forward-message-properties xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">false</petalsCDK:forward-message-properties><petalsCDK:forward-attachments xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">false</petalsCDK:forward-attachments><petalsCDK:wsdl xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">$WSDLURL$</petalsCDK:wsdl><soap:address xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">$SOAPADDRESS$</soap:address><soap:soap-version xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1.1</soap:soap-version><soap:chunked-mode xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">false</soap:chunked-mode><soap:cleanup-transport xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">true</soap:cleanup-transport><soap:mode xmlns:soap="http://petals.ow2.org/components/soap/version-4" xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5" xmlns:jbi="http://java.sun.com/xml/ns/jbi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">SOAP</soap:mode><soap:synchronous-timeout xmlns:soap="http://petals.ow2.org/components/soap/version-4">108000000</soap:synchronous-timeout></provides></services></jbi>
\ No newline at end of file
......@@ -19,7 +19,7 @@
<dependencies>
<!-- Common libraries -->
<dependency>
<dependency>
<groupId>org.ow2.weblab.core</groupId>
<artifactId>model</artifactId>
<version>${weblab.model.version}</version>
......@@ -31,12 +31,12 @@
<version>${weblab.extended.version}</version>
<type>jar</type>
</dependency>
<dependency>
<!-- <dependency>
<groupId>org.ow2.weblab.core</groupId>
<artifactId>annotator</artifactId>
<version>${weblab.annotator.version}</version>
<type>jar</type>
</dependency>
</dependency> -->
<!-- <dependency>
<groupId>org.ow2.weblab.portlets</groupId>
<artifactId>weblab-portlet</artifactId>
......
......@@ -126,7 +126,7 @@ public class Karaf extends Bus{
FileUtils.writeStringToFile(new File(configweb), "org.osgi.service.http.port="+this.getPort());
}else{
// TODO: compare the configured port from local spring config to servicemix configured port and alter if they do not match
this.logger.info("Web console listening port configuration file "+configFile.getAbsolutePath()+" already exists for "+getName());
this.logger.finest("Web console listening port configuration file "+configFile.getAbsolutePath()+" already exists for "+getName());
}
} catch (IOException ioe) {
......
/**
* WEBLAB: Service oriented integration platform for media mining and intelligence applications
*
* Copyright (C) 2004 - 2013 CASSIDIAN an EADS Company
* Copyright (C) 2004 - 2014 Airbus Defence & Space
*