This topic answers common questions about developing Java server object extensions (SOEs) and server object interceptors (SOIs) with the ArcGIS Enterprise SDK. It also explains how SOIs differ from service interceptors.

What is the ArcGIS Enterprise SDK?

The ArcGIS Enterprise Software Development Kit (SDK) enables developers to extend and customize ArcGIS Enterprise. It provides development tools, libraries, project templates, samples, and documentation for three extensibility patterns:

  • Service interceptors: Use Java to intercept and customize requests and responses for REST-based ArcGIS Server services.
  • Custom extensions: Use Java or .NET to create server object extensions (SOEs) and server object interceptors (SOIs) for supported map and image services.
  • Custom data feeds: Use JavaScript and Node.js to connect external data sources and expose them through ArcGIS feature services.

For an overview of these patterns, see the ArcGIS Enterprise SDK overview.

What types of custom extensions can I develop using Java?

The ArcGIS Enterprise SDK supports two types of Java custom extensions:

  • Server object extensions (SOEs): Add new REST or SOAP operations to supported map or image services. Client applications typically need custom code to call these operations.
  • Server object interceptors (SOIs): Customize existing service operations by processing requests and responses. Because SOIs retain existing service endpoints, client applications typically do not need modifications.

For more information, see Overview of extensions.

What is the difference between a service interceptor and an SOI?

Both can inspect or modify requests and responses, but they operate at different layers of ArcGIS Server.

CapabilityService interceptorServer object interceptor (SOI)
ScopeREST-based services that match a configured URL pattern, subject to support in the target releaseSupported map and image services
Interception layerREST request handlerServer object and service operation
Access to service internalsDoes not provide direct access to underlying service objects or dataCan access supported internal service objects, configuration, and underlying data through the SDK APIs
Request typesRESTREST, SOAP, and supported OGC requests
ActivationRegistered centrally and applied to matching service URLsRegistered with ArcGIS Server and enabled for individual services
Development languageJavaJava or .NET

Use a service interceptor for REST-level logic that may need to apply across multiple services, such as request validation, auditing, or response processing. Use an SOI when the customization requires access to the internal objects or data of a particular map or image service.

Service interceptors do not replace SOIs. They can complement each other and may be used together where supported. Availability and supported operations can vary by ArcGIS Enterprise version and deployment environment.

For more information, see Relationship between service interceptors and SOIs.

Can service interceptors and SOIs be used together?

Yes, when supported by the target deployment. A service interceptor can apply REST-level checks or logging, while an SOI can perform service-specific processing that requires access to map or image service internals. Validate both components and their interaction against the target service and ArcGIS Enterprise version.

What platforms support Java extensions?

Java SOEs and SOIs can be developed for supported ArcGIS Server deployments on Windows and Linux. Supported ArcGIS Enterprise on Kubernetes deployments also support Java extensions for eligible service types. Exact support depends on the ArcGIS Enterprise version, extension type, and service configuration.

.NET SOEs and SOIs are supported on Windows. Do not assume that service interceptors have the same deployment support as Java SOEs and SOIs, especially on Kubernetes.

For supported operating systems and deployment configurations, see Windows system requirements and Linux system requirements.

Which JDK and Maven versions do I need?

Java extensions use a supported Java Development Kit (JDK) and Apache Maven. ArcGIS Enterprise SDK 12.1 documents JDK 21 and Maven 3.8.8 or later. Verify the exact supported JDK update and Maven versions in the system requirements for your target SDK release before configuring a 12.2 environment.

For setup instructions, see Install Java and Maven, Windows system requirements, and Linux system requirements.

Which Java IDEs are supported?

You can use a Java IDE that supports the required JDK and Maven version, such as IntelliJ IDEA or Eclipse IDE. Maven is used to create, build, and package Java SOE and SOI projects. The legacy Eclipse plug-in workflow is not required for current Maven-based projects.

For more information, see Overview of Maven integration.

How do I set up a Java extension development environment?

Install the ArcGIS Enterprise SDK, configure a supported JDK and Maven, and install the SDK's Maven artifacts into your local Maven repository. The SDK provides the install-maven-artifacts tool for this purpose. You can then use a supported Java IDE and the SDK's Maven archetypes to create SOE or SOI projects.

For step-by-step instructions, see Installation.

Do I need ArcGIS Pro or ArcGIS Server to develop Java extensions?

You can create and build Java extensions without installing ArcGIS Pro or ArcGIS Server on your development machine. However, you need a compatible, licensed ArcGIS Server environment to deploy, run, and test an extension. ArcGIS Pro is used to publish supported map and image services that the extensions target; the development tools do not need to be installed on the ArcGIS Server machine.

Where can I find Java samples and development resources?

The SDK installation includes Java development tools and samples. You can also use the documentation, Maven archetypes, and examples available in the Java guide. Installation locations depend on the operating system and the SDK installation path.

For installation details, see Install ArcGIS Enterprise SDK.

Are the ArcGIS Enterprise SDK Maven artifacts available on Maven Central?

No. The Java SDK's Maven artifacts, including the SDK dependency, build plug-in, and SOE/SOI archetypes, are distributed with the SDK. Install them in your local Maven repository using the SDK-provided install-maven-artifacts tool.

For more information, see Overview of Maven integration.

Should I include arcgis-enterprise-sdk.jar in my deployed extension?

No. ArcGIS Server provides the ArcGIS Enterprise SDK runtime libraries. Use the SDK JAR as a development dependency in your Maven project, but do not bundle another copy of arcgis-enterprise-sdk.jar with your deployed extension. Packaging duplicate runtime libraries can cause conflicts.

Does the Java SDK support Protocol Buffer Format (PBF)?

Yes. Beginning with ArcGIS Enterprise SDK 12.0, Java SOEs and SOIs can use arcgis-pbf.jar to encode and decode Protocol Buffer Format (PBF) content associated with feature services. The JAR is installed into the local Maven repository as part of the SDK's artifact installation workflow.

For more information, see What's new in 12.0.

Can a Java extension built on Windows run on Linux?

Java extensions can generally be developed on one supported operating system and deployed to another supported ArcGIS Server operating system, provided that their dependencies and native integrations are compatible. Test the packaged extension on the target platform and ArcGIS Server version before deployment.

Can Java SOIs intercept REST, SOAP, and OGC requests?

Yes, for supported operations and service configurations. An SOI can implement the appropriate request-handler interfaces for REST, SOAP, and OGC traffic. A service interceptor, by contrast, operates only on REST requests and responses.

For implementation details, see Overview of developing SOIs.

How does Java memory management work with SDK objects?

Java garbage collection manages Java objects, but some SDK objects also hold references to native resources. Those resources may remain in use until their native references are released.

When appropriate, use com.esri.arcgis.system.Cleaner.release(object) to explicitly release a supported SDK object reference. This method releases the native reference; it does not force Java garbage collection. Release resources only when they are no longer needed, and avoid using global cleanup methods during normal service execution.

What is the difference between the ArcGIS Enterprise SDK and the legacy ArcObjects SDK?

The ArcGIS Enterprise SDK is a separate SDK designed for extensions to services published from ArcGIS Pro. It retains some familiar ArcObjects concepts but has different APIs and does not include all legacy libraries, interfaces, or extension types.

ArcObjects-based extensions for services published from ArcMap are a legacy development approach and are not supported on ArcGIS Enterprise 11.0 and later. Existing code may require changes to its APIs, project configuration, and dependencies before it can be migrated.

For more information, see Migration strategies.

Can I migrate an ArcObjects plug-in data source to the ArcGIS Enterprise SDK?

Not directly. ArcObjects plug-in data sources are not a supported Java SOE/SOI extension type in the ArcGIS Enterprise SDK. Depending on your use case, a custom data feed may provide an alternative for exposing external data as an ArcGIS feature service, but it uses JavaScript and Node.js and is not a drop-in replacement for an ArcObjects plug-in data source.

For more information, see Custom data feeds.

Can Java extensions work with utility networks or geometric networks?

Java SOEs and SOIs can work with supported utility network datasets and operations. Utility network support was introduced for these extensions in ArcGIS Enterprise SDK 10.8.1. Geometric network APIs are not supported in the ArcGIS Enterprise SDK; do not treat geometric networks and utility networks as interchangeable.

For more information, see Work with utility networks.

Are Java extensions compatible across ArcGIS Enterprise SDK versions?

Do not assume that a Java SOE or SOI compiled against one SDK version is compatible with every newer or older ArcGIS Server version. API changes, dependencies, runtime requirements, and supported services can affect compatibility. Build against the SDK version supported by the target ArcGIS Server release, then verify registration, activation, and operation behavior in the intended deployment environment.

What are the licensing requirements?

The ArcGIS Enterprise SDK is included with the ArcGIS Enterprise license and does not require a separate SDK purchase or authorization. A licensed ArcGIS Server deployment is required to run and test server-side extensions.

For more information, see the ArcGIS Enterprise SDK overview.

How does garbage collection work in the ArcGIS Enterprise SDK?

The ArcGIS Enterprise SDK for Java uses the Java Virtual Machine (JVM) for garbage collection. Although Java objects are managed by the JVM, some SDK components reference native C++ resources that may require explicit cleanup.

The Cleaner class in the com.esri.arcgis.system package provides the release() method to explicitly release native references associated with SDK objects when they are no longer needed. Calling this method does not force Java garbage collection.

For Java server object interceptors (SOIs) that use SOIHelper, call soiHelper.cleanup() in the shutdown() method to clean up helper resources, including when working with shared instances.

For more information, see Work with shared instances.

Also See

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.