04-02-2010 12:10 PM
04-02-2010 12:14 PM
<?xml version='1.0' encoding='UTF-8'?>
<!– Deployment engine configuration –>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
<!– command queue for deployment service –>
<bean id="deploymentReceiverCommandQueue" class="org.alfresco.deployment.impl.server.DeploymentCommandQueueImpl" >
</bean>
<!– Reader management –>
<bean id="deploymentReaderManagement" class="org.alfresco.deployment.impl.server.ReaderManagementPool" >
</bean>
<!– Housekeeper for the deployment queue –>
<bean id="commandQueueHousekeeper" class="org.alfresco.deployment.impl.server.DeploymentCommandQueueHousekeeper"
init-method="init">
<property name="commandQueue"><ref bean="deploymentReceiverCommandQueue" /></property>
</bean>
<!– Authentication. Pick one bean and comment the other out. –>
<!–
<bean id="targetAuthenticator"
class="org.alfresco.deployment.impl.server.DeploymentReceiverAuthenticatorSimple">
<property name="user"><value>${deployment.user}</value></property>
<property name="password"><value>${deployment.password}</value></property>
</bean>
–>
<bean id="targetAuthenticator"
class="org.alfresco.repo.deploy.DeploymentReceiverAuthenticatorAuthenticationService"
init-method="init">
<property name="authenticationService">
<ref bean="AuthenticationService"/>
</property>
</bean>
<!– This is the deployment engine –>
<bean id="deploymentReceiverEngine"
class="org.alfresco.deployment.impl.server.DeploymentReceiverEngineImpl"
init-method="init">
<!– These things are "effectively constant" –>
<property name="commandQueue">
<ref bean="deploymentReceiverCommandQueue"/>
</property>
<property name="readerManagement">
<ref bean="deploymentReaderManagement" />
</property>
<property name="housekeepers">
<set>
<ref bean="commandQueueHousekeeper"/>
</set>
</property>
<!– This is configured via the property file –>
<property name="pollDelay"><value>${deployment.pollDelay}</value></property>
<!– The authenticator is configured via the above XML –>
<property name="authenticator">
<ref bean="targetAuthenticator"/>
</property>
<!–
Both "included" transformers are configured by default.
Delete what you don't want. Rearrange if needed.
–>
<property name="transformers">
<list>
<bean class="org.alfresco.deployment.transformers.CompressionTransformer"/>
<bean class="org.alfresco.deployment.transformers.SampleEncryptionTransformer">
<property name="cipherName">
<value>${deployment.ciphername}</value>
</property>
<property name="password">
<value>${deployment.cipherpass}</value>
</property>
</bean>
</list>
</property>
</bean>
<!– Publish the service –>
<bean id="deploymentReceiverTransportHTTP"
class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"
p:service-ref="deploymentReceiverEngine">
<property name="serviceInterface">
<value>org.alfresco.deployment.DeploymentReceiverTransport</value>
</property>
</bean>
<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/deployment">deploymentReceiverTransportHTTP</prop>
</props>
</property>
</bean>
<!– Now import the deployment targets –>
<import resource="classpath*:alfresco/deployment/*-target.xml" />
<import resource="classpath*:alfresco/extension/deployment/*-target.xml" />
<import resource="classpath*:alfresco/deployment/http/*-target.xml" />
<import resource="classpath*:alfresco/extension/deployment/http/*-target.xml" />
</beans>
04-06-2010 01:28 PM
04-06-2010 01:54 PM
04-06-2010 02:14 PM
<!– Publish the service –>
<bean id="deploymentReceiverTransportRMI"
class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
<property name="service">
<ref bean="deploymentReceiverEngine"/>
</property>
<property name="serviceInterface">
<value>org.alfresco.deployment.DeploymentReceiverTransport</value>
</property>
</bean>
<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/deployment">deploymentReceiverTransportRMI</prop>
</props>
</property>
</bean>
04-06-2010 08:02 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.