Configure an enterprise bean container

 


  1. Identify the appserver and assign it to the server variable.

    set server [$AdminConfig getid /Cell:cellname/Node:nodename/Server:servername/]
    

  2. Identify the EJB container belonging to the server and assign it to the ejbContainer variable.

    set ejbContainer [$AdminConfig list EJBContainer $server]
    

  3. View all the attributes of the EJB container, not including nested attributes:

    $AdminConfig show $ejbContainer
    

    View all the attributes of the EJB container, including nested attributes:

    $showall $ejbContainer
    

  4. Modify the EJB cache settings

    $AdminConfig modify $ejbContainer {{cacheSet {{cacheSize 2500} {cleanupInterval 3500}}}}

    Modify the cleanup interval attribute:

    $AdminConfig modify $ejbContainer {{inactivePoolCleanupInterval 15000}}
    

  5. Save changes:

    $AdminConfig save
    

Here is a sample script: set_ejb_container.jacl