# Configuring dynamic use of 2 Brokers based on service

**URL:** <https://techcommunity.softwareag.com/t/configuring-dynamic-use-of-2-brokers-based-on-service/173409>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [November 19, 2013, 4:33pm UTC](https://techcommunity.softwareag.com/t/configuring-dynamic-use-of-2-brokers-based-on-service/173409 "2013-11-19T16:33:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [November 19, 2013, 4:33pm UTC](https://techcommunity.softwareag.com/t/configuring-dynamic-use-of-2-brokers-based-on-service/173409/1 "2013-11-19T16:33:30Z")

</div>

Now that I understand about using axis2.xml to parameterize AAR file settings, I have another problem I need to solve.

We have one WSStack per environment (dev, QA, production, etc). Each environment supported a pair of Brokers: one for the US Vista system accessed through a Broker on one port, and the Global Vista system accessed through a different Broker on a different port.

I can see that the configuration can be flexible enough for multiple settings, but the example shows the use of \<service-name=“\*”\> for a generic setting and \<service-name=“myservice”\> for specific service overrides. I don’t want to have to constantly be changing this file for each new service deployment, but we’ll be adding services in both systems all the time. Is it possible to wild-card a service in the configuration file as such:

 vista.tcc.etn.com:10103 RPC/SRV1/CALLNAT vista.tcc.etn.com:10203 RPC/SRV1/CALLNAT

…so that any service starting with “GV” will be caught by the exception override?

If not, then how should I handle this so that I don’t need to update this for every new GV web service I create? Do I need to ask for the number of WSStack environments to be doubled?

Thanks,

Brian

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [November 19, 2013, 10:39pm UTC](https://techcommunity.softwareag.com/t/configuring-dynamic-use-of-2-brokers-based-on-service/173409/2 "2013-11-19T22:39:10Z")

</div>

I think you need to ask for a change enhancement (via Brainstorm) for the masked service name feature.

In the meantime, given your environment, having parallel set of WS-Stack environments would probably make your deployments simpler - you’d have to decide if picking a ws-stack deployer every time was easier than updating the configuration file for new services periodically.

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [November 19, 2013, 10:42pm UTC](https://techcommunity.softwareag.com/t/configuring-dynamic-use-of-2-brokers-based-on-service/173409/3 "2013-11-19T22:42:36Z")

</div>

I was afraid that was the case since the documentation didn’t show use of the wildcard except as a general wildcard for everything.

I will ask the SOA Infra team which they prefer doing… updating the config file or creating 4 more WSStack environments (since they will have to do the work in either case).

Thanks much for your answer, Douglas!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:29pm UTC](https://techcommunity.softwareag.com/t/configuring-dynamic-use-of-2-brokers-based-on-service/173409/4 "2021-04-02T15:29:50Z")

</div>


