spring cloud stream - Custom jdbc driver for jdbc-source-XXX application -
i'm trying use ms sql driver jdbc app local data flow server jdbc --url='jdbc:sqlserver://server' --driver-class-name=com.microsoft.sqlserver.jdbc.sqlserverdriver
as expected, driver not in classpath , cannot load driver class: com.microsoft.sqlserver.jdbc.sqlserverdriver
when deploying stream.
i tried invoke data flow server -cp argument:
java -cp "c:\path\to\msjdbc.jar " -jar spring-cloud-dataflow-server-local-1.0.1.release.jar
- same result.
can resolve ?
thanks
the local
dataflow server spawns app in separate process , doesn't use classpath resources app. hence, think need add driver jdbc
app path. or, can try setting classpath
local deployer deployment property app
when deploying stream. when specifying spring.cloud.deployer.local.classpath
property, property spring.cloud.deployer.local.main
needs specified.
stream create a1 --definition "time | jdbc"
stream deploy a1 --properties "app.jdbc.spring.cloud.deployer.local.classpath=/temp/myclasspath,app.jdbc.spring.cloud.deployer.local.main="
Comments
Post a Comment