Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

AS3 referencing objects across applications

BrentKingston
Altostratus
Altostratus

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?

1 ACCEPTED SOLUTION

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.

View solution in original post

4 REPLIES 4

Leslie_Hubertus
Community Manager
Community Manager

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?

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.

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

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.

 

https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/userguide/best-practices.ht...

https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/refguide/schema-reference.h...