No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Step 4: Add the Source Code
- Add the following code to a Java source file named StreamingClientExample.java. This code subscribes to the
PushTopic channel and handles the streaming information.
- Edit StreamingClientExample.java and
modify the following values:
File Name Static Resource Name USER_NAME Username of the logged-in user PASSWORD Password for the USER_NAME (or logged-in user) CHANNEL /topic/InvoiceStatementUpdates LOGIN_ENDPOINT https://test.salesforce.com (Only if you are using a sandbox. If you are in a production organization, no change is required for LOGIN_ENDPOINT.) - Add the following code to a Java source file named SoapLoginUtil.java. This code sends a username and password
to the server and receives the session ID.
- In a different browser window, create or modify an InvoiceStatement.
After you create or change data that corresponds to the query in your
PushTopic, the output looks something like this: