# JMap Server to JMap Server Connections

It is possible to create connections from one JMap Server to another. These connections can then be used to share layers and spatial data sources between different JMap Servers while avoiding duplication of source data. They may also be used by some JMap Server extensions that require server to server communication. These connections are used, among other things, when creating [JMap Server vector](https://docs.k2geospatial.com/en2/administrator/jmap-server-administrator-manual/spatial-data-sources/vector-data-sources/jmap-server) or [JMap Server raster](https://docs.k2geospatial.com/en2/administrator/jmap-server-administrator-manual/spatial-data-sources/raster-data-sources/jmap-server) data sources and when using shared layers.

JMap Server manages connections towards other JMap Servers by placing them in pools.

Note that your JMap user license must allow server sessions in order for another JMap Server to connect to your JMap Server. For more information, refer to the [JMap Server Status](https://docs.k2geospatial.com/en2/administrator/jmap-server-administrator-manual/jmap-server-management/jmap-server-status) section.

The following diagram shows the connection between two JMap Servers (A and B) where the JMap application connected to server A accesses spatial data served by another JMap Server instance (server B).

<figure><img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2FpPVysRPcj12qyhFcEqNS%2Fjms-jms.png?alt=media&#x26;token=06b9d9c7-6a4f-44b7-92d2-e62df2b2a511" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.k2geospatial.com/en2/administrator/jmap-server-administrator-manual/jmap-server-to-jmap-server-connections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
