07-19-2015 07:40 PM
Hi all,
When search the JTAPI api, there is CiscoJtapiProperties#getUniqueJTAPIPropertiesPerPeer().
boolean getUniqueJTAPIPropertiesPerPeer()
but is there modifier method for it, such as setUniqueJTAPIPropertiesPerPeer(boolean)?
or is there API to configure a unique JTAPIProperties object for each Provider object?
Thanks in advance.
Simon
07-24-2015 08:44 AM
Hi,
This configuration is loaded at startup, and cannot be changed once a Peer is created. And so, there appears to be no setter methods for this.
If I find some more information regarding this, I will post it here.
Thanks,
07-26-2015 07:38 PM
Hi Smita,
According the API, the setting cannot be changed after get provider from peer.
When we get peer from factory, I guess that we can change the content of properties as bellow code:
JtapiPeer peer = JtapiPeerFactory.getJtapiPeer(null);
((CiscoJtapiPeer)peer).getJtapiProperties();
properties.setXXX(YYY);
....
Provider provider1 = peer.getProvider(connectionStr1);
But for multiple clusters environment, can we use different properties for different providers? is code as bellow the right way?
JtapiPeer peer = JtapiPeerFactory.getJtapiPeer(null);
((CiscoJtapiPeer)peer).getJtapiProperties();
properties.setXXX(YYY);
...
Provider provider1 = peer.getProvider(connectionStr1);
properties.setXXX(ZZZ);
...
Provider provider2 = peer.getProvider(connectionStr2);
Thanks,
Simon
08-11-2015 11:23 AM
i don't think that will work. All providers would get the last properties set.
In multiple cluster scenario what properties would you like set different?
I have seen applications using 1 JVM per provider which talk to a central component that provides a multiple cluster view.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide