Message Boards

How to access two different Liferay Servers from Android App

thumbnail
Asad Saeed Awan, modified 7 Years ago.

How to access two different Liferay Servers from Android App

Regular Member Posts: 126 Join Date: 1/16/15 Recent Posts
I have a scenario here. My first screen is the list of country. Let suppose currently it is just showing Pakistan and Spain. Now I want if a user select Pakistan it hits another server, and if a user select Spain it hits another server. Now the problem I am facing is I have just one server_context file. So how do I tackle this ?

Any help in this regard will be highly appreciated.
thumbnail
Javier Gamarra, modified 7 Years ago.

RE: How to access two different Liferay Servers from Android App (Answer)

Expert Posts: 348 Join Date: 2/12/15 Recent Posts
You can change all the values read from the server_context.xml through java calls to LiferayServerContext.setGroupId()...