On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
BIRT JBoss - Tomcat deployment
Mikey
Junior Member
I am planning to write code on the back end / application server (JBoss) to get the report definition from the database, and run the report using the BIRT API <br />
<br />
The front end (Tomcat) will make a call to the back end to run a particular report passing in the report parameters.<br />
<br />
Tomcat and JBoss live on separate machines (I am not using the Tomcat that is bundled with JBoss)<br />
<br />
I can imagine writing code such as<br />
<br />
<strong class='bbc'>JBOSS</strong><br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
public byte[] runReport(Report report, ReportParams[] params,....)
{
....
}
</pre>
<br />
and <strong class='bbc'>Tomcat</strong><br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
public class ReportServlet extends HTTPServlet {
public void doGet(.......){
...... ....
response.getWriter().write(reportDelegate.runReport(.......));
}
}
</pre>
<br />
<br />
Now my question is, how does this work if the report's output format is HTML (ie, contains links to images & css) - I can get the report's HTML output from JBoss to Tomcat as a byte[], but how about the embedded images and css?
<br />
The front end (Tomcat) will make a call to the back end to run a particular report passing in the report parameters.<br />
<br />
Tomcat and JBoss live on separate machines (I am not using the Tomcat that is bundled with JBoss)<br />
<br />
I can imagine writing code such as<br />
<br />
<strong class='bbc'>JBOSS</strong><br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
public byte[] runReport(Report report, ReportParams[] params,....)
{
....
}
</pre>
<br />
and <strong class='bbc'>Tomcat</strong><br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
public class ReportServlet extends HTTPServlet {
public void doGet(.......){
...... ....
response.getWriter().write(reportDelegate.runReport(.......));
}
}
</pre>
<br />
<br />
Now my question is, how does this work if the report's output format is HTML (ie, contains links to images & css) - I can get the report's HTML output from JBoss to Tomcat as a byte[], but how about the embedded images and css?
Comments
-
Mickey:<br />
Here are a couple ways you can achieve this:<br />
<ul class='bbcol decimal'><li>Set your base image URL to use your back end server. <a class='bbc_url' href='http://www.birt-exchange.com/documentation/BIRT_220/EngineJavadoc/engine/api/org/eclipse/birt/report/engine/api/HTMLRenderOption.html#setBaseImageURL(java.lang.String)'>HTMLRenderOption.setBaseImageURL(...)</a></li><li>While generating the report you could set the image directory to your front end server. <a class='bbc_url' href='http://www.birt-exchange.com/documentation/BIRT_220/EngineJavadoc/engine/api/org/eclipse/birt/report/engine/api/HTMLRenderOption.html#setImageDirectory(java.lang.String)'>HTMLRenderOption.setImageDirectory(...)</a></li></ul>Ashwini
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax