Newer Version Available

This content describes an older version of this product. View Latest

Step 3: Create the Static Resources

  1. Download the CometD compressed archive (.tgz) file from http://download.cometd.org/cometd-2.2.0-distribution.tar.gz.
  2. Extract the following JavaScript files from cometd-2.2.0-distribution.tar.gz:
    • cometd-2.2.0/cometd-javascript/common/target/cometd-javascript-common-2.2.0.war
    • cometd-2.2.0/cometd-javascript/jquery/src/main/webapp/jquery/jquery-1.5.1.js
    • cometd-2.2.0/cometd-javascript/jquery/src/main/webapp/jquery/json2.js
    • cometd-2.2.0/cometd-javascript/jquery/src/main/webapp/jquery/jquery.cometd.js
    To extract the .tgz file in the Windows environment, you’ll need a utility such as PowerArchiver, 7–zip, or Winzip.
  3. Extract cometd.js from cometd-javascript-common-2.2.0.war by using the following shell commands:
    1cd cometd-2.2.0/cometd-javascript/common/target
    2jar xvf cometd-javascript-common-2.2.0.war org/cometd.js
  4. From Setup, click Develop | Static Resources to add the extracted files with the following names:
    File Name Static Resource Name
    cometd.js cometd
    jquery-1.5.1.js jquery
    json2.js json2
    jquery.cometd.js jquery_cometd