This discussion is archived
4 Replies Latest reply: Apr 27, 2012 6:58 AM by 933693 RSS

Application arguments and Web Services

933693 Newbie
Currently Being Moderated
Hello,

Using SGD 4.61, I have defined an application which points to a shell script on a linux machine. In this script, I simply print out the arguments like :


     *#!/bin/sh*
     echo "Hello, Arguments are : $"*


Then, I call this application via a client through the web services. I fill the override argument like this ("scottaarguments" is the value for ISchemaNames.ARGUMENTS) :


     *Item[] overrides = new Item[1];*
     *overrides[0]=new Item("scottaarguments", "arg1 arg2 arg3");*

then I launch my app :

     *locator.getemulatorsession().startSession(sessionCookie, appliName, overrides);*


It works except that no arguments are passed. Output logs are :

     Hello, Arguments are :
     Hello, Arguments are :
     Hello, Arguments are :
     Hello, Arguments are :
     ...


Could you help me to understand where is my mistake ?
Thanks,
Regards,
  • 1. Re: Application arguments and Web Services
    user12629685 Explorer
    Currently Being Moderated
    Have you configured the SGD server to accept the override of "scottaarguments" from the client? What does the following command return:

    ./bin/tarantella config list --tarantella-config-applaunch-allowclientoverrides                                                                                                                                                                                                                                                                                                                                                                                                                                                       
  • 2. Re: Application arguments and Web Services
    933693 Newbie
    Currently Being Moderated
    Hi,
    it returns : dynamic,true
  • 3. Re: Application arguments and Web Services
    user12629685 Explorer
    Currently Being Moderated
    You need to change the setting to either:
    a) true
    b) dynamic,scottaarguments

    For example:

    ./bin/tarantella config edit --tarantella-config-applaunch-allowclientoverrides dynamic,scottaarguments

    "true" is only recognised when it is on its own.
  • 4. Re: Application arguments and Web Services
    933693 Newbie
    Currently Being Moderated
    solved !! :-)
    It works, thanks a lot

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points