##### Specifying reporthome directly in web.xml or ejb-jar.xml

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.

###### Specifying the reporthome for WAR

You can use one of the two methods listed below to specify the reporthome for WAR:

- In the makewar.xml file, use the `<env-entry></env-entry>` tags to specify the reporthome in the target "web.xml.norpthome", and then uncommented the setting. For example:

      <env-entry-name>jreport.rpthome</env-entry-name>
      <env-entry-value>/home/jreport</env-entry-value>
      <env-entry-type>java.lang.String</env-entry-type>

  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).

- In the makewar.xml file, use the `<context-param></context-param>` tags to specify the reporthome in the target "web.xml.filter", for example:

      <context-param>
          <param-name>reporthome</param-name>
          <param-value>/home/jreport</param-value>
      </context-param>

###### Specifying the reporthome for EAR

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,

    <env-entry>
        <env-entry-name>jreport.rpthome</env-entry-name>
        <env-entry-value>/home/jreport</env-entry-value>
        <env-entry-type>java.lang.String</env-entry-type>
    <env-entry>