Search code examples
mobilefirst-adaptersmobilefirst-server

MobileFirst Java Adapter backend server URL


Is it possible to load backend server URL from properties file in MobileFirst 7.1 Java Adapter, without reading properties every time? What will happen if someone changes the URL while the adapter is already deployed? The target is to build adapter for for all environments(DEV, TEST, PROD etc.) and keep backend URLs outside .adapter file.


Solution

  • You cannot keep the URL the adapter is meant to connect to outside of the adapter implementation.

    In Java adapters you define and create the connection in Java code.