171.5. 컴퓨팅 사용량 샘플

다음은 java dsl 및 spring/blueprint xml에서 jclouds 컴퓨팅 생산자의 사용을 보여주는 몇 가지 예입니다.

171.5.1. 예 1: 사용 가능한 이미지를 나열합니다.

    from("jclouds:compute:aws-ec2" +
        "&operation=CamelJCloudsListImages")
        .to("direct:next");

그러면 해당 본문에 이미지 목록이 포함된 메시지가 생성됩니다. xml를 사용하여 동일한 작업을 수행할 수도 있습니다.You can also do the same using xml.

<route>
    <from uri="jclouds:compute:aws-ec2?operation=CamelJCloudsListImages"/>
    <to uri="direct:next"/>
</route>