Forum Discussion
AS3 referencing objects across applications
Hi, I'm new to using AS3 for configuration.
I'm trying to do the following with my decloration:
"declaration": { "class": "ADC", "schemaVersion": "3.43.0", "id": "id", "label": "WebApp", "myPart": { "class": "Tenant", "Shared": { "class": "Application", "template":"shared", "myEnv_vs": { "class": "Service_HTTP", "virtualAddresses": ["10.1.2.2"], "virtualPort": 80, "pool": /-- Refer to app2_pool --/ } }, "APP1": { "class": "Application", "app1_pool": { "class": "Pool", "members": [ { "servicePort": 8080, "serverAddresses": [ "10.2.2.3" ] } ] } }, "APP2": { "class": "Application", "app2_pool": { "class": "Pool", "members": [ { "servicePort": 8080, "serverAddresses": [ "10.2.2.4" ] } ] } } } |
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?
Hi 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.
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.
- Leslie_HubertusRet. Employee
Hi BrentKingston - I'm working on finding one of our AS3 experts to come help. Maybe someone in the community can reply in the mean time?
- BrentKingstonAltostratus
Hi 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.
- Leslie_HubertusRet. Employee
Thanks for the follow-up. Sorry it didn't work out!
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com