Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 34 lines (30 sloc) 1.63 KB
<?xml version="1.0" encoding="UTF-8"?>
<sponge xmlns="https://sponge.openksavi.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://sponge.openksavi.org https://sponge.openksavi.org/schema/config.xsd">
<knowledgeBases>
<knowledgeBase name="kb">
<file>py4j_java_server_tls_sponge_hello_world.py</file>
</knowledgeBase>
</knowledgeBases>
<plugins>
<plugin name="py4j" class="org.openksavi.sponge.py4j.GatewayServerPy4JPlugin">
<configuration>
<!-- Python must have Py4J installed, e.g. pip3 install py4j. You may use system properties, e.g. ${user.home}/virtualenv1/bin/python -->
<pythonScript>
<executable>python3</executable>
<argument>${sponge.configDir}/py4j_java_server_tls_python_hello_world.py</argument>
<waitSeconds>60</waitSeconds>
<outputRedirect>STRING</outputRedirect>
<errorRedirect>EXCEPTION</errorRedirect>
</pythonScript>
<pythonScriptBeforeStartup>false</pythonScriptBeforeStartup>
<security>
<!-- Using JKS file from Py4J examples: https://github.com/bartdag/py4j/blob/master/py4j-java/src/test/resources/selfsigned.jks -->
<keyStore>selfsigned.jks</keyStore>
<keyStorePassword>password</keyStorePassword>
<keyPassword>password</keyPassword>
<algorithm>SunX509</algorithm>
</security>
</configuration>
</plugin>
</plugins>
</sponge>
You can’t perform that action at this time.