Newer Version Available
Deploy a Sample Project to Your Org
Use Workbench to copy all project components to your org.
-
Download the Salesforce Durable Streaming Demo
.zip file from the developerforce github
repository.
If you want, you can browse the contents of the project at https://github.com/developerforce/SalesforceDurableStreamingDemo. The sample app contains two Visualforce pages with related components and some common components. The following common components are installed in your org when you deploy the .zip file.
Component Description cometdReplayExtension Static resource representing a CometD extension in JavaScript. This extension implements the replay mechanism for Streaming API. cometd, jquery, jquery_cometd, json2 Static resources for CometD, jquery, and JSON. The following app components are for the Durable PushTopic Streaming page.Component Description DurablePushTopicEventDisplay A Visualforce component that uses the CometD extension cometdReplayExtension to replay events. The extension handles the handshake and subscribe calls and sets replay options. Having the replay functionality in a Visualforce component allows you to add it to your Visualforce page for reuse in your app.
DurablePushTopicStreamingController Apex controller that holds the logic behind the Visualforce page. DurablePushTopicStreamingDemo Visualforce Page Visualforce page. This page is the main page you use to generate, view, and replay durable PushTopic events. The following app components are for the Durable Generic Streaming page.
Component Description DurableGenericEventDisplay A Visualforce component that uses the CometD extension cometdReplayExtension to replay events. The extension handles the handshake and subscribe calls and sets replay options. Having the replay functionality in a Visualforce component allows you to add it to your Visualforce page for reuse in your app.
DurableGenericStreamingController Apex controller that holds the logic behind the Visualforce page. StreamingChannel Custom object used for creating streaming channels. DurableGenericStreamingDemo Visualforce Page Visualforce page. This page is the main page you use to generate, view, and replay durable generic events. DurableStreamingDemo Permission Set Permission set used to grant read and create access to the StreamingChannel sObject. You use Workbench to migrate the zip file to your org.
-
Log in to Workbench at https://workbench.developerforce.com/login.php.
- For Environment, keep the production default value.
- Ensure that the value for API Version is at least 37.0.
- Accept the service terms, and then click Login with Salesforce.
- Enter your Developer Edition org username and password, and then click Log In.
- Select .
- Click Choose File and locate the .zip file that you downloaded.
- Click Next, and then click Deploy.
- Wait until the deployment finishes and the status of the deployment changes to Succeeded.
- Log in to your org in another browser tab.