# AS3 referencing objects across applications

**URL:** <https://community.f5.com/t/as3-referencing-objects-across-applications/72035>\
**Category:** Technical Forums\
**Tags:** devops, application-delivery, as3\
**Created:** [April 3, 2023, 10:06pm UTC](https://community.f5.com/t/as3-referencing-objects-across-applications/72035 "2023-04-03T22:06:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrentKingston](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@BrentKingston](https://community.f5.com/u/BrentKingston)\
**Post date:** [April 3, 2023, 10:06pm UTC](https://community.f5.com/t/as3-referencing-objects-across-applications/72035/1 "2023-04-03T22:06:24Z")

</div>

Hi, I’m new to using AS3 for configuration.

I’m trying to do the following with my decloration:

| “declaration”: {&nbsp; &nbsp; “class”: “ADC”,&nbsp; &nbsp; “schemaVersion”: “3.43.0”,&nbsp; &nbsp; “id”: “id”,&nbsp; &nbsp; “label”: “WebApp”,&nbsp; &nbsp; “myPart”: {&nbsp; &nbsp; &nbsp; &nbsp; “class”: “Tenant”,&nbsp; &nbsp; &nbsp; &nbsp; “Shared”: {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “class”: “Application”,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “template”:“shared”,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “myEnv\_vs”: {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “class”: “Service\_HTTP”,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “virtualAddresses”: [“10.1.2.2”],&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “virtualPort”: 80,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; **“pool”: /-- Refer to app2\_pool --/** &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; },&nbsp; &nbsp; &nbsp; &nbsp; “APP1”: {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “class”: “Application”,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “app1\_pool”: {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “class”: “Pool”,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “members”: [&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “servicePort”: 8080,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “serverAddresses”: [&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “10.2.2.3”&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; },&nbsp; &nbsp; &nbsp; &nbsp; “APP2”: {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “class”: “Application”,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “app2\_pool”: {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “class”: “Pool”,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “members”: [&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “servicePort”: 8080,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “serverAddresses”: [&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “10.2.2.4”&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; } |
| --- |

I’ve bolded the line that I have questions about. Is referring to the APP2 pool even possible from the Shared object?

I’ve tried several different means to achieve this and got errors stating:

“pool”: “/myPart/APP2/app2\_pool” --\> Can only refer to things in /myPart/Shared/ or /Common/Shared/

“pool”: “app2\_pool” --\> does not exist

“pool”: “APP2/app2\_pool” --\> does not exist

Am I barking up the wrong tree? Does this make sense?

---

<div class="post-metadata">

**Author:** ![Leslie\_Hubertus](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/leslie_hubertus/32/11644_2.png) [@Leslie\_Hubertus](https://community.f5.com/u/Leslie_Hubertus)\
**Post date:** [April 5, 2023, 11:19pm UTC](https://community.f5.com/t/as3-referencing-objects-across-applications/72035/2 "2023-04-05T23:19:04Z")

</div>

Hi&nbsp; @BrentKingston &nbsp;- I’m working on finding one of our AS3 experts to come help. Maybe someone in the community can reply in the mean time?

---

<div class="post-metadata">

**Author:** ![BrentKingston](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@BrentKingston](https://community.f5.com/u/BrentKingston)\
**Post date:** [April 6, 2023, 2:01pm UTC](https://community.f5.com/t/as3-referencing-objects-across-applications/72035/3 "2023-04-06T14:01:26Z")

</div>

Hi&nbsp; @Leslie_Hubertus ,

I talked with some contacts at F5 and apparently what I was attempting to complete is not possible.

As much as I would like to be able to refer to other apps in a partition I understand why it behaves like that.

---

<div class="post-metadata">

**Author:** ![Leslie\_Hubertus](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/leslie_hubertus/32/11644_2.png) [@Leslie\_Hubertus](https://community.f5.com/u/Leslie_Hubertus)\
**Post date:** [April 6, 2023, 4:03pm UTC](https://community.f5.com/t/as3-referencing-objects-across-applications/72035/4 "2023-04-06T16:03:33Z")

</div>

Thanks for the follow-up. Sorry it didn’t work out!

---

<div class="post-metadata">

**Author:** ![Nikoolayy1](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nikoolayy1/32/3589_2.png) [@Nikoolayy1](https://community.f5.com/u/Nikoolayy1)\
**Post date:** [April 10, 2023, 7:48am UTC](https://community.f5.com/t/as3-referencing-objects-across-applications/72035/5 "2023-04-10T07:48:17Z")

</div>

Maybe as a workaround use the /Shared application folder as it allows applications in the same tenant declaration to use the same pool or if it is the Shared folder in the Common partition then all the tenants will be able to use the pool:

Special application Shared holds objects other applications can share.

> **[BIG-IP AS3 Best Practices](https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/userguide/best-practices.html)**

> **[Appendix A: Schema Reference](https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/schema-reference.html)**
