# Setting the Maximum Cookie Age for Application Module Pooling

By default, the cookie age is -1 (when you shut down the browser, the cookie goes away). To change this behavior, you can set a cookie age.

#### To set the cookie age:

When you start the business logic tier's Java VM, include the following directive on the command line:

    -Djbo.maxpoolcookieage=age

The age is in seconds from 0 to 2,147,483,647. -1 means the cookie is transient.

Alternatively, you can enter a line in the jboserver.properties file, which is stored in \lib\jbomt.zip. During deployment, you need to include the file.

    jbo.maxpoolcookieage=age

#### To set Java VM parameters through project properties:

1. In the Workspace view of the Navigator, right-click a business component project and choose Properties.

2. In the Run/Debug panel, type the parameters in the Java VM Parameters field.

3. Click OK.

   The values are added to the jboserver.properties file, which is stored in \lib\jbomt.zip.

Related topics
Pooling Application Modules
About Application Module Pooling
About Application Module Pooling Classes
About Configuration Properties for a JSP Project