Home
Analytics
Calling Java method from rpt design
Ashish4
<p>Hi All,</p><p> </p><p>we have a requirement to call our java method from rpt design. The scenario is we have integrated BIRT with our tool which is deployed in Jboss as an ear. In jboss we have added all the jars of Birt and we have written our own servlet to generate the report.</p><p>The report design file we kept in some location of App Server(C:/Report) , and we have shown the list of design files to the UI . So if anyone clicks on the report list then we passed the path for that report and parameter value to our servlet to generate the corresponding report.</p><p> </p><p>Now our report is generated by using our database server but the new requirement is we have to call our java method which is taking two parameters and it will return me the list of string which i need to show on the UI.</p><p> </p><p>Our java method is packed in a jar and that jar is also present at the same location where Birt jars is available.</p><p> </p><p>So Please suggest me some idea ,how we can acheive this .</p>
Find more posts tagged with
Comments
Saggy123
<p>Hi Ashish4,</p><p> </p><p>Please try out something as below.</p><p> </p><p>Try to add that jar into resource of the report as follows</p><p> </p><p>Property Editor-->Resources-->Jar Files-->Add File</p><p> </p><p>After that import the packages into script and you can call that java method.</p>