---
schema_version: "1"
id: 08c7370e14bd39ed1e04921980f30ae1e1b7e391351208b580022d691cef658b
title: Java Quick Start for Managed Event Subscriptions (Beta)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/event-bus/pub-sub-api/guides/qs-java-managed-quick-start.md
canonical_url: https://developer.salesforce.com/docs/platform/pub-sub-api/guide/qs-java-managed-quick-start.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e74ef001b785e76a894d4bc20fca13a4bd448d6eded9174260c67fc2489a46b8
products:
  - Pub/Sub API
  - Event Bus Docs
---
# Java Quick Start for Managed Event Subscriptions (Beta)

In this quick start, you configure a managed subscription, and then use it to subscribe to `Order_Event__e` events by passing in the managed subscription name. You verify that the managed subscription commits the Replay ID of the last processed event and resumes after the last event when the client disconnects and reconnects.

To learn more about the beta feature, see [Managed Event Subscriptions (Beta)](https://developer.salesforce.com/docs/platform/pub-sub-api/guide/managed-sub.md).

**note:** The `ManagedSubscribe` RPC method is part of a Beta Service. Customer may opt to try such Beta Service in its sole discretion. Any use of the Beta Service is subject to the applicable Beta Services Terms provided at [Agreements and Terms](https://www.salesforce.com/company/legal/agreements/).

**note:** The quick start provides enough instructions and code snippets to build your own client. The examples are for learning purposes only. They aren’t intended for production use and haven’t undergone thorough functional and performance testing. You can use them as a starting point.

**In this section:**

- [Step 1: Create ManagedEventSubscription with Tooling API](https://developer.salesforce.com/docs/platform/pub-sub-api/guide/qs-java-managed-sub-create.md)
- [Step 2: Start the Managed Subscription](https://developer.salesforce.com/docs/platform/pub-sub-api/guide/qs-java-managed-sub-start.md)
- [Step 3: Publish Events and Verify the Managed Subscription](https://developer.salesforce.com/docs/platform/pub-sub-api/guide/qs-java-managed-sub-publish-verify.md)
