Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Created by: Marc Rivero Marti on 02-11-2010 11:17:51 AM Hello, I'm just starting to develope with JTAPI and I think I began to understand some concepts. I have built an application that cuts one call that it's on course. It works without problem, but it takes too much time to do it. The problem is creating the provider in the main program. I takes about 10 seconds to get the provider, which I think that it's too much time for an instant application. CiscoProvider provider = null; CiscoAddress llamante = null; Terminal origterm = null; CiscoCall mycall = null;
try { CiscoJtapiPeer peer = (CiscoJtapiPeer)JtapiPeerFactory.getJtapiPeer(null); System.out.println ("Got peer "+peer); provider = (CiscoProvider)peer.getProvider("10.6.66.3;login=ctienabled;passwd=ctienabled"); System.out.println ("Got provider "+provider); provider.addObserver(new MyCiscoProviderObserver()); Call manager version is 7.1.5.31900-3 and the JTAPI version is 7.1(5.10000)-2. Does anybody know what exactly happens? It's normal behaviour? Can anyone give some advices to improve this delay? Would I live with this delay forever, in my application?
Subject: RE: Performance issue creating Provider Replied by: Marc Rivero Marti on 02-11-2010 04:41:42 PM
Especially if there are several - or many - devices associated with the JTAPI user, it is not unexpected that opening the provider takes some time. The main delay involves UCM looking up and streaming down the details for all of the associated devices.
In almost all situations, you will want to open the provider only once, and leave it open pending further operations later. This usually means that you will need to think about creating a service type app, instead of a one-time run executable type app.
Thank you for your reply! So... I will need to live forever with this delay... So, I can do a java "server" class that is always running and from my java program, make a RMI call to execute one method of this class, can't? With this, I don't need to wait for provider connection every time. Thank you for all! Best Regards, Marc Rivero Martí.
Subject: RE: Performance issue creating Provider Replied by: David Staudt on 02-11-2010 01:44:27 PM Especially if there are several - or many - devices associated with the JTAPI user, it is not unexpected that opening the provider takes some time. The main delay involves UCM looking up and streaming down the details for all of the associated devices. In almost all situations, you will want to open the provider only once, and leave it open pending further operations later. This usually means that you will need to think about creating a service type app, instead of a one-time run executable type app.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: