Skip to content

Instantly share code, notes, and snippets.

@ehsanullahjan
Last active July 27, 2016 20:57
Show Gist options
  • Save ehsanullahjan/bb056ab0b1d3cb0ef071f479ff457be3 to your computer and use it in GitHub Desktop.
Save ehsanullahjan/bb056ab0b1d3cb0ef071f479ff457be3 to your computer and use it in GitHub Desktop.
/subsystem=resource-adapters/resource-adapter=file/connection-definitions={{data-source-name}}:add(enabled=false,jndi-name="{{jndi-name}}",class-name="org.teiid.resource.adapter.file.FileManagedConnectionFactory",min-pool-size=1,max-pool-size=10,flush-strategy=FailingConnectionOnly)
/subsystem=resource-adapters/resource-adapter=file/connection-definitions={{data-source-name}}/config-properties=ParentDirectory:add(value={{directory-pathname}})
/subsystem=resource-adapters/resource-adapter=file/connection-definitions={{data-source-name}}:write-attribute(name=enabled,value=true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment