Resolution: Admincmdline for file adapter service assembly can be used by providing a couple of targets in the sample files provided by the C:\tibco\amxadministrator\2.2\samples and by following the steps given below.
Note: The following files are attached to this Solution:
FileAdapterTest.zip deployment_build_FA.xmlThe following steps can be followed for using admincmdline for file adapter service assembly.
1). Take the files deployment_data.xml and deployment_build.xml and save them as deployment_build_FA.xml and deployment_build_FA.xml .
2). A build file is similar to the makefiles of programming languages (like C). A top level target defines a defined target into same file. For example, following line indicates the build file contains definitions for two targets:
<target name="all" depends="sa-add,updateSASubstitutionVariable"
3). Each target needs to define adminURL, username and password of your AMX server along with pointing to the dataFile. You need to obfuscate the password before entering it there.
C:\tibco\amxadministrator\2.2\bin>passwordobfuscator "amxserver"
Generating obfuscated password.
.
.
.
.
Obfuscated password contained in brackets: [#!nt68q0K279EO9eXKs8iJG9uNarrEv7Gph5
5e5jKTLGk=]
4). A data file usually contains the specifics of your amx server setup (environment and node name) and service assembly details(service units or substitution variables). You need to edit the file to fine tune it to your environment.
5). Once both files are ready, use the tool:
C:\tibco\amxadministrator\2.2\bin>admincmdline.exe "../samples/deployment_build_
FA.xml"
Buildfile: ..\samples\deployment_build_FA.xml
sa-add:
[AMXAdminTask] INFO - Initializing Entrust crypto provider in NON FIPS 140-2 mo
de.
[AMXAdminTask] INFO - Processing 1 objects
[AMXAdminTask] INFO - Adding service assembly 'deployment_sa'.
[AMXAdminTask] INFO - Successfully added service assembly 'deployment_sa'.
[AMXAdminTask] INFO - Now editing service assembly 'deployment_sa' to apply the
rest of the service assembly settings from the data file.
[AMXAdminTask] INFO - Editing service assembly 'deployment_sa'.
[AMXAdminTask] INFO - Successfully edited service assembly 'deployment_sa'.