Hi Max,
I haven't used that API, but in jclouds all APIs and providers are
instantiated the same way. You need to use the ContextBuilder [1] to
configure the provider, the credentials, and configuration properties
that may be required for some particular providers. In general, it
looks like:
TheApi api = ContextBuilder.newBuilder("api or provider id")
.credentials("identity", "credential")
.overrides(optional extra configuration properties)
.buildApi(TheApi.class); // or buildView(Abstraction.class)
In the your case, you want to build the SQS api, and since that API is
not yet supported in a "portable abstraction" such as the
ComputeService or the BlobStore, you can create it with the "buildApi"
method. Something like:
SQSApi sqs = ContextBuilder.newBuilder("aws-sqs")
.credentials("access key", "secret key")
.buildApi(SQSApi.class);
You can read a quick intro to the basic jclouds concepts here [2].
HTH!
I.
[1]
http://jclouds.apache.org/reference/javadoc/1.9.x/org/jclouds/ContextBuilder.html
[2] http://jclouds.apache.org/start/concepts/
On 9 November 2015 at 20:53, Mirabito, Massimo (Max) (CDC/OID/NCHHSTP)
(CTR) <[email protected]> wrote:
> All,
>
>
>
> I just started using JCloud for the past several days. I am having
> difficulty in finding a working example that connects JCloud to AWS-SQS.
> Could anyone point me in the right direction or share snippet of code?.
>
>
>
> Thanks in advance for any help
>
>
>
> max