This demo shows how JReport Engine Bean can be deployed as an EJB to WebLogic Server 8.1 on Linux and Windows. The steps below are based on Linux. For Windows, the procedure is similar to Linux, where you only need to change the path information.
In this demo, an EJB client application is created, which calls an EJB module deployed in WebLogic Server 8.1. In the EJB module, the session bean calls JReport Engine Bean to run and export a report to the PDF format. The image below illustrates the working structure of this demo.

JReport Engine Bean is the module running report templates against a data source and exporting report results to the specified format such as html, pdf, rtf and so on (see Exporting report results to different file formats for methods about exporting report result to other formats).
The steps for this demo are as below:
To prepare for this demo you will need to install the Weblogic Server 8.1 and JReport Designer. Follow the steps below:
/home/bea/weblogic81./home/jreport/designer. You will get JReport Engine and related libraries in /home/jreport/designer/lib.
Note: JReport Engine Bean in JReport Designer is of single thread. That is, you can only have it run one report at a time. To build your production EJB which calls JReport Engine Bean for concurrent multiple reports, contact Jinfonet Support about the JReport Server Engine product.
When deploying JReport Engine Bean as an EJB to WebLogic 8.1, JReport Engine Bean should be wrapped into a session bean. For more information, refer to the demo program provided by JReport in ejbweblogic81.zip in /home/jreport/designer/help/designer/samples.
You can use ant to make an EAR file in WebLogic 8.1. Take the following steps:
/home/bea/weblogic81/samples/server/examples/src/examples/ejb20/basic.Change the path and key information in JREngineClient.java according to your own environment, and change the reporthome in the file build.xml to /home/jreport/designer.
/home/bea/weblogic81/samples/domains/examples/startExamplesServer.sh
ant
ant run