Hi Alan,
Thank you very much for the pointer. I went through and understood how
works.
1. Implement docker factory class to return an activity configuration.
2. Accept the configuration in the DockerActivity constructor.

Please correct me if I missed something.

Also I am working on the implementation and commiting my code to my forked
repo at [1]. I will send pull requests once following TODOs finishes.
 1. Test HTTPS invocation(right now I am having a SSL handshake issue and
working on it)

I am using SSLContext.getDefault() and gives me
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target

I have a unit test to test this. I also tried setting system properties
javax.net.ssl.keyStore, javax.net.ssl.trustStore,
javax.net.ssl.keyStorePassword. But no luck.

 2. Enhance the activity class to read configuration injected by Spring.


[1] -
https://github.com/NadeeshDilanga/incubator-taverna-common-activities/commits/docker


On Tue, Jun 14, 2016 at 5:06 AM, Alan Williams <[email protected]>
wrote:

> On 14-Jun-16 05:04, Nadeesh Dilanga wrote:
>
>> Hi Alan,
>> Do you have an example link where we have used such Spring Configuration ?
>>
>
> Firstly, just to check are you targeting Taverna 2 or Taverna 3?
>
> The Spring Configuration is for Taverna 3. You can see an example in
> /taverna-rest-activity/src/main/resources/META-INF/spring/rest-activity-context-osgi.xml
> where the credentialManager is "pulled in" by
>
> <reference id="credentialManager"
> interface="org.apache.taverna.security.credentialmanager.CredentialManager"
> />
>
> The credentialManager was "pushed" by the Taverna engine in
>
>
> taverna-credential-manager-impl/src/main/resources/META-INF/spring/credential-manager-impl-context.xml
>
> Alan
>

Reply via email to