Created
March 5, 2012 16:53
-
-
Save iocanel/1979244 to your computer and use it in GitHub Desktop.
Initializing camel-jclouds component with spring xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean class="org.apache.camel.component.jclouds.JcloudsComponent" id="jclouds"> | |
<property name="computeServices"> | |
<list> | |
<ref bean="computeService"/> | |
</list> | |
</property> | |
</bean> | |
<bean class="org.jclouds.compute.ComputeServiceContextFactory" id="computeCF"/> | |
<bean factory-bean="computeCF" factory-method="createContext" id="computeCtx"/> | |
<constructor-arg name="provider">${jclouds.provider}</constructor-arg> | |
<constructor-arg name="identity">${jclouds.identity}</constructor-arg> | |
<constructor-arg name="credential">${jclouds.credential}</constructor-arg> | |
</bean> | |
<bean factory-bean="computeCtx" factory-method="getComputeService" id="computeService"></bean> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment