Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Assume you have My_Jasper.jrxml file in the jasper folder. And you are using the My_Datasource.xml configuration file which consists of the connection parameters, etc to the datasource as given belowshown in the folllowing example.

...

Code Block
languagehtml/xml
<configuration>
   <url>jdbc:h2:repository/database/samples/ot/WSO2CARBON_DB;AUTO_SERVER=

...

TRUE</url>

...


   <username>wso2carbon</username>

...


   <password>wso2carbon</password>

...


   <driverClassName>org.h2.Driver</driverClassName>

...


   <maxActive>50</maxActive>

...


   <maxWait>60000</maxWait>

...


   <testOnBorrow>true</testOnBorrow>

...


   <validationQuery>SELECT 1</validationQuery>

...


   <validationInterval>30000</validationInterval>

...


</configuration>

for For the above scenario, the jasper.properties should be as follows.

Code Block
jasper.tabs=tab1

...


jasper.tabs.tab1.name=My Jasper Tab Title

...


jasper.tabs.tab1.jrxml=My_Jasper.jrxml

...


datasource=MyDataSource

...


datasource.configuration=My_Datasource.xml

According to the above configuration, there will be one tab and the title of that tab will be 'My Jasper Tab Title' and associated . Associated jasper file is 'My_Jasper.jrxml'. The datasource configuration is provided by 'datasource.configuration' property.

...

After including all required artifacts as described above in a directory, finally you need to make it as .zip file archive it and change the file extension to .tbox. The name of the .tbox is taken as the name of the toolbox. Further more You are now you are ready to install your toolbox, and you can install the toolbox by following the steps in Installing custom toolbox. For information, refer to section Installing custom toolbox.

Excerpt
hiddentrue

Instructions to create a custom toolbox in WSO2 BAM.