cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
395
Views
5
Helpful
1
Replies

Auto update of jtapi.jar using updater.jar

derrickgunter
Level 5
Level 5

The JTAPI Dev Guide indicates the following code can be used to auto-update the jtapi.jar:

Provider provider = peer.getProvider(provString);
String url = ( (CiscoProvider) (provider)).getJTAPIURL(); provider.shutdown();
Component serverComponent = updater.queryServerComponentVersion("jtapi.jar", url);
downloadedComponent = serverComponent.fetchFromServer();
int retVal = downloadedComponent.replaces(localComponent);

However, there is no Component.replaces() method. 

Is the Guide incorrect or am I missing something? How should this be done?

Thank you.

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

The documentation around this function is not too clear unfortunately...

There is a RTFileReplace.class in updater.jar...perhaps this performs the function?

Screenshot-20220228171942-1137x227.pngIf not, then perhaps the functionality is no longer provided, in which case you may need to use Java file-handling APIs to do the final file switch.