Skip to content

Instantly share code, notes, and snippets.

@iocanel
Created March 5, 2012 16:53
Show Gist options
  • Save iocanel/1979244 to your computer and use it in GitHub Desktop.
Save iocanel/1979244 to your computer and use it in GitHub Desktop.
Initializing camel-jclouds component with spring xml
<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