Within my previous post I explained how to install the Warehouse Mobile Devices Portal (WMDP). This post will go one step further and will guide you on installing the portal for using mobile devices in warehouses of multiple legal entities. At the end of this post there are some additional facts.
When you have multiple companies in you enterprise, it could be the case that you need to use mobile devices in warehouses for these companies. When you run the Warehouse Mobile Devices Portal, there is no option to change the company within the portal or even do these settings in Microsoft Dynamics AX 2012 R3. As written in my previous post, the WMDP will be setup with an internal AX user which has a default company setup.
So if you setup multiple internal users, you can use each user for linking the Warehouse Mobile Devices Portal to the appropriate company.
Setup portal on one or more servers?
Depending on the capacity of your initial IIS server used for the WMDP and the load the use of the portals will give you, you have to install another instance on another machine. I have not done testing on the load. I cannot provide you with sizing details as I used all functionality on one virtual machine. Setup on a separate server is exactly like the setup as described in my previous article. To connect you have to provide the new machine name and a port number for the connection. As it is another machine, you could use the same port number on several machines.
Personally I think it is more interesting to know if it is possible to setup multiple instances of the portal on one single server and how. Well, let’s start…
You have to run the Microsoft Dynamics AX Setup and select the option Add or modify components.
When you arrive at the Add or modify components step, you will notice that some options are selected and disabled for editing. These components are already installed on the machine and cannot have more than one instance.
The Warehouse Mobile Devices Portal has already been installed, but the option is available so it is possible to setup multiple instances. Enable the option and click Next to continue.
On configure the Warehouse Mobile Devices Portal tab you have to specify the User name which is linked to another default company. The website port must be different than the previous used port number(s). In my previous installation I used port 13500. So now I will use 13501 which is not used for other purposes.
When you have completed the setup steps, you can open the Internet Information Server Manager to see the new installed application.
The naming convention is different from the first instance. When you setup a third instance it will continue with increasing the instance number.
The website application is referring to a directory on the server.
You can see the new instance created as another subdirectory in the Warehouse Mobile Devices Portal folder. After you had completed the setup you can directly use the new instance on a mobile device.
There is more…
If you take a look in the website files, you will notice that all files are present in both instance folders. So when you customized e.g. the CSS style sheet or added a new one, in the first instance, you have to copy these files also to the other instances to have them available. This also applies for modified ASP.NET Server Pages (*.aspx) and all other files.
To have a better overview of the Warehouse applications in the IIS Manager it is possible to rename them. You could use the company ID as recognition like the example below:
After renaming the site name, you don’t have to restart or reset services. Why did I keep the instance number in the site name? If you think you know the answer you may leave a comment. I will explain it in a next post…
That’s all for now. Till next time!