JAWS Options

Here are the options you can set in JAWS. Default values are provided in the standardjaws.xml file:

Each of these options can be set either generally (it will affect JAWS for your whole application) or on a per bean basis, or both of these. JAWS will always read the defaults in standardjaws.xml first, then override them with the defaults in jaws.xml if provided, and finally override them with bean-specific configuration if provided.

General settings: to set an option generally, you have to declare it in a <default-entity> tag in jaws.xml. Here is the section as in standardjaws.xml, you may want to override all or part of it:

 
 <jaws>
    <default-entity>
       <create-table>true</create-table>
       <remove-table>false</remove-table>
       <tuned-updates>false</tuned-updates>
       <read-only>false</read-only>
       <time-out>300</time-out>
       <select-for-update>false</select-for-update>
    </default-entity>
   ...
 <jaws>
 

Settings for a bean: to set an option for a particular bean, do it in the corresponding <entity> section. For example, if you want JAWS to drop the table for your ClassBean only, your xml file will contain:

 <jaws>
   ...
   <enterprise-beans>
     <entity>
       <ejb-name>ClassBean</ejb-name>
       <remove-table>true</remove-table>
     </entity>
   </enterprise-beans>
   ...
 <jaws>
 
 

Note that the <ejb-name> tag must match the one declared in ejb-jar.xml.