Search code examples
ibm-mobilefirst

How to set 2 apps on MobileFirst server with Server Configuration Tools


I feel confused about set 2 apps on MobileFirst Server with Server Configuration Tools.

what i must do? add new configuration or add new runtime on the same configuration with my old app ??


Solution

  • Hi asper you Question you just want to have a single .war File nothing but the Server configuration file.

    This is what we configure in our Server configuration Tool (War file configuration).

    The next step is configuring your application and adapter in your War file via Worklight/mobilefirst console.

    Where we select our .wlapp and .adpater files. (This,for you is two different applications two .wlapp files)

    So you don't need to do any changes in the server configuration tool as far as the two wlapp uses the same war file.


    This assertion needs further clarification/investigation:

    If you want to have two different war files then the question which you have asked should have two .war files so that you should create two worklight/mobilefirst server instance to deploy them and that can't be done in a single server instance.


    TO MAKE YOU UNDERSTAND CLEARLY ILL SAY YOU VIA ECLIPSE

    1. If you have two application under single mobilefirst project then the above you asked is simple just deploy you another .wlapp file in the same .war file created worklight console.
    2. Else if you have two mobilefirst project then the above you asked is not possible you have to have two separate server instances to deploy your two .war files.

    enter image description here

    In above the TESTAPP and TESTAPP2 are two different application as you have asked they are in the same server instance. This doesn't have to do anything with the server configuration tool except you are build this server instance with that tool and war file. The two applications should be deployed with the help of the choose File in the above picture and choosing the .wlapp files.