Skip to Content

About how to config context parameters in server level


I'm working on a JAVA topic, which should be deployed into different instances of HANA CLOUD. So I want to find a way to set the different environment parameters in server level. Basically, if I'm using a tomcat, I can just add a parameter in <tomcat config>/config/context.xml, the entry should be like this:

<Parameter name="liquibase.contexts" value="dev" override="false" />, so that the program will automatically identify the environment dynamically.

But how can I set this parameter in HANA CLOUD? Can anybody tell me?

Best regards,


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 05, 2015 at 11:02 AM


    When you set the context.xml on a global level it is applied for all web applications on the server.

    Do you really need to apply it on the global level? What do you think for applying it on a web application level i.e. in META-INF folder of the web application archive? More info [1].


    Violeta Georgieva

    [1] Apache Tomcat 7 Configuration Reference (7.0.57) - The Context Container

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Thanks for your reply.

      My purpose is treat different HANA CLOUD instance as different role in the landscape.

      for example:  account1 for DEV, account2 for Testing, account3 for Prod.

      Then i set the parameter value DEV in account1, Testing in account2, Prod in account3.

      When i deploy the same war file into the different server, the application will import different data depends on the environment parameter.

      Your suggestion can also solve the problem, i can set different profile in pom for package different context.xml into war file, but I also want to know if it's possible to set a global parameter in HANA CLOUD.

      Thanks so much and best regards,