Take the following steps to deploy JReport Engine Bean as an EJB to JBoss 3.0.7:
Assume that:
C:\j2sdk1.4.1_01;C:\JReport\Designer;D:\jboss-3.0.7_jakarta-tomcat-4.1.24.In order to simplify your work, you are provided with a zip called ant_jreport_ejb.zip, which can be found in <designer_install_root>\help\designer\samples. You can extract it to D:\jboss-3.0.7_jakarta-tomcat-4.1.24 directory. This zip file contains a build utility Ant and the JReport EJB demo source code.
A file called build.xml is also included in the zip file. This is required by the Ant utility for working out what to compile and how to build your JARs. It gives the Ant utility information about how to compile and deploy your Java programs and EJBs. You can find the build.xml file in the D:\jboss-3.0.7_jakarta-tomcat-4.1.24\workbook\jreport_ejb folder created by the extraction process.
If you need to know more about the Ant utility, visit the Ant project at the Jakarta website at http://jakarta.apache.org/ant/index.html.
workbook/src/main/jreport) and two xml files used in JBoss deployment (workbook/src/resources/META-INF).Follow the steps below to build and deploy the demo program:
C:\JReport\Designer\lib to D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client.D:\jboss-3.0.7_jakarta-tomcat-4.1.24\workbook\jreport_ejb folder that was created by the extraction process.
|
D:\jboss-3.0.7_jakarta-tomcat-4.1.24\workbook\jreport_ejb> set PATH=..\ant\bin;%PATH%
D:\jboss-3.0.7_jakarta-tomcat-4.1.24\workbook\jreport_ejb>ant
A screen message will then be shown as below:
|
The ejb_jrengine.jar has now been successfully built and deployed to D:\jboss-3.0.7_jakarta-tomcat-4.1.24\server\default\deploy.
Perform the following tasks:
D:\jboss-3.0.7_jakarta-tomcat-4.1.24\bin folder.<JBossServer_install_root>\bin folder.
Note: Before you run the batch file, be sure to add the bold part of the following to the class path:
set JBOSS_CLASSPATH= C:\JReport\Designer\lib\JREngine.jar;C:\JReport\Designer\lib\sac.jar;C:\JReport\Designer\lib\log4j-1.2.8.jar;C:\JReport\Designer\lib\Itext.zip; %JBOSS_CLASSPATH%;%JAVAC_JAR%;%RUNJAR%
D:\jboss-3.0.7_jakarta-tomcat-4.1.24\workbook\jreport_ejb>ant run.client_jreport
The output of JREngineClient will look something like this:
|
Three files: CustomerList.pdf, CustomerList.rst and JReport.log, specified in JREngineClient.java, will be generated in C:\JReport\Designer\temp.
Note: You will need a User ID and a JReport Runtime Key to run the JReport client application. If you do not have this, contact Jinfonet Software sales at sales@jinfonet.com or visit Jinfonet website http://www.jinfonet.com for more information.
Every EJB in JBoss is deployed and managed as a JMX MBean. You can view and manage EJBs deployed within JBoss through your web browser by accessing the JMX management console. The console is available at http://localhost:8080/jmx-console/index.jsp.