# Enabling Http Server in Apama for external components consume data from apama

**URL:** https://community.cumulocity.com/t/enabling-http-server-in-apama-for-external-components-consume-data-from-apama/1688
**Category:** Forum
**Tags:** Streaming-Analytics-Apama
**Created:** [April 23, 2017, 9:23am UTC](https://community.cumulocity.com/t/enabling-http-server-in-apama-for-external-components-consume-data-from-apama/1688 "2017-04-23T09:23:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sush\_Bankapura](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Sush\_Bankapura](https://community.cumulocity.com/u/Sush_Bankapura)
#### Post date: [April 23, 2017, 9:23am UTC](https://community.cumulocity.com/t/enabling-http-server-in-apama-for-external-components-consume-data-from-apama/1688/1 "2017-04-23T09:23:21Z")

</div>

Hi,

In Apama stream object , I will be maintaining the real time GPS position data. When the user send request to retrieve the list of assets inside the location, I should be able to manipulate it from the stream and send the data back to the user.

I dont want to store this data in database as this request should be processed on demand basis.

Is that possible to enable Http server in Apama for external components to consume data from apama via REST?

---

<div class="post-metadata">

### Author: ![Ben\_Spiller](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/ben_spiller/32/30392_2.png) [@Ben\_Spiller](https://community.cumulocity.com/u/Ben_Spiller)
#### Post date: [April 25, 2017, 11:57am UTC](https://community.cumulocity.com/t/enabling-http-server-in-apama-for-external-components-consume-data-from-apama/1688/2 "2017-04-25T11:57:06Z")

</div>

Could you share what version of Apama you’re using?

If I understand correctly your question is how to expose an HTTP REST server from the Apama Correlator? Since 9.10 connectivity plug-ins would be our recommended way of adding connectivity liek this to your application. We ship some sample code (written in Java) for an HTTP server connenctivity plug-in in Apama\samples\connectivity\_plugin\java\HTTPServer which would be a great starting point for this.

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)
#### Post date: [April 2, 2021, 3:38pm UTC](https://community.cumulocity.com/t/enabling-http-server-in-apama-for-external-components-consume-data-from-apama/1688/3 "2021-04-02T15:38:20Z")

</div>


