I am attempting to create a POC where we utilize Amazon S3 for file storage controlled by flow services within webMethods IS.
I can create the S3Sample java code in designer and run it successfully as a local java service, but I cannot get these java services to run successfully in IS, I believe there is a conflict with an IS jar file and one of the jar files needed to run the S3 services. If I place all of the jar files within package/code/jars the IS java service will not compile. If I remove the aws-java-sdk-1.11.8-sources.jar file the service will compile but it will not run. Using the same jar files within a pure java service works fine, but I assume a pure java service (running within my local version of eclipse) does not have the same IS jar files as used run running this as a IS java service.
I have also tried placing the AWS jars in package/code/jars/static but that doesn’t work either.
I am trying to utilize the S3 API and not the Rest based API because I believe it is simpler.
Has anyone had experience with the S3 java API and would you share how you got this to work?
Yes I have updated the classpath to include the necessary jar files in designer for compile, as well as copying them to the code/jars and code/static folders within the package for runtime use.
The AWS java SDK has 4 jar files within the lib folder of my download:
aws-java-sdk-1.11.7.jar,aws-java-sdk-1.11.7-javadoc.jar,aws-java-sdk-1.11.7-sources.jar, and aws-swf-build-tools-1.0.jar.
Also included are 17 jar files in third-party/lib folder.
I have included all 21 of these jar files within the referenced libraries for all of my java services. The java programs written only in java (not a wm java service), which compile and run fine, include all 21 of these jars but do NOT include any other IS jars.
I include the same 21 jar files for the wm java service, which also includes all IS and Eclipse standard jars will not compile if I include the aws-java-sdk-1.11.7-sources.jar. If I omit this jar from reference libs it will compile but doesn’t run properly.
I feel there has to be a conflict with one of the 21 files here and something already pre installed in IS, just don’t know how to circumvent the conflict.
I have put the aws-java-sdk-1.11.20.jar in the code/jars folder of my package and configured the build-path of my project. My sample java service compiles but throws an error at runtime “java.lang.reflect.InvocationTargetException: INSTANCE” on line 5 below
Hi Frank,
Can able to send to the flow service which you had built to achieve aws s3 operations integration… I’m struggling lot on the usage of API… I just want one sample in webMethods which uses put and get operations
CloudStreams offer/provides connectors for invoking/integrating APIs provided by SaaS providers. For example for salesforce we have salesforce connector, for AWS S3 we have S3 connector. If you have access to CloudStreams I would recommend you to try accessing AWS S3 APIs using CloudStreams S3 connector.
Hi,
Can any one able to send the poc example to use s3 API using wm java services… I’m not looking for cloud connectors of s3… Its purely wm java poc using s3 API