Jump to content

Recommended Posts


Trying to create a Datasource resource on the jasper server thru ReST API.

It is creating the file/Resource with PUT. However, its getting created as Type "Content Resource" not as "JDBC Datasource.

In ResourceDescriptor object, used ResourceDescriptor.TYPE_DATASOURCE_JDBC at setWsType, setDataSourceType and setResourceType.

Resource is getting created on the Jasper server as Type of "Content Resource"  not as "JDBC Data source" Any help is appreciated.

Thank you,


Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 years later...


I have a similar problem creating a resource in this case a jdbc with the url rest_v2/resources/datasources/nameJdbc and sending the json {"jdbcDataSource":{"driverClass":"driverClass","password":"password","username":"username","connectionUrl":"connectionUrl","timezone":"timezone"}} just create me a file here its xml: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><file><creationDate>2017-08-12T17:36:43</creationDate><label>data</label><permissionMask>1</permissionMask><updateDate>2017-08-12T17:36:43</updateDate><uri>/datasources/data</uri><version>0</version><type>json</type></file>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...