It is recommended that you use the <env-entry></env-entry> tags to specify the reporthome directly in the target "web.xml.norpthome" in the makewar.xml file or in ejb-jar.xml. Also, in the target "web.xml.filter", you can specify the reporthome using the <context-param></context-param> tags.
You can use one of the two methods listed below to specify the reporthome for WAR:
<env-entry></env-entry>
tags to specify the reporthome in the target "web.xml.norpthome", and then uncommented the setting. For example:
|
This is the recommended way to set reporthome since the <env-entry></env-entry>
tags are also supported in ejb-jar.xml (if you call the Server API in your EJB).
<context-param></context-param>
tags to specify the reporthome in the target "web.xml.filter", for example:
|
The same methods can be used to specify the reporthome of building the EAR file as of building the WAR file. However, because you can wrap WAR and EJB in the EAR file, you should ensure that you put the reporthome information either in the target "web.xml.norpthome" in the makewar.xml file (for the web module) or in ejb-jar.xml (for the EJB module).
In ejb-jar.xml, use the <env-entry></env-entry>
tags to specify the reporthome. For example,
|