Shahram Besharati

Edit
|
Reply
|
Quote
|
Delete
|
Publish
|
Accept Answer
|
View Profile
Edit Post
Remove Post
Lock Thread
Mark as Helpful
Request a Response
4 years ago, Post ID: 1656
0
0
You could run multiple Morfik applications on the same PC provided that they run on different HTTP Ports. However there are times that you may have to run multiple applications on a single port, mostly port 80.
Following steps are the instructions on how you could have multiple Morfik applications running on a single Port. Please note that xApp refers to an application that is created in Morfik WebOS Apps Builder.
- Choose one of your applications to be your Host application (HostApp) and set the HTTP port for the HostApp to 80.
- Open the second application (2ndApp) and in Tools\Options\Compiler set the "xApp Mode" to "Plug-in xApp" and compile the project. This generates a project dll rather than executable. Please note that while you are designing and testing the 2ndApp project, the "xApp Mode" option should be set to the default "Stand-alone XApp" until the project is ready to be compiled as a Plug-in. It is not possible to run a plug-in application by itself.
- Create a new .ini file next to the HostApp.exe and call it the same name as the Host application (in our example it is called HostApp.ini).
- Enter the following code inside the HostApp.ini file
[XAppPlugins]
2ndApp=2ndAppPlugIn
[2ndAppPlugIn]
Host=2ndApp.localhost.com
Name=2ndApp
Path=C:\2ndprojectFolder\2ndApp\2ndApp.dll
(replace the references to 2ndApp with your plug-in application name)
- In order to test your applications at design time, open the "C:\WINDOWS\system32\drivers\etc\hosts" file in your development PC and make sure the following entries exists
127.0.0.1 localhost.com
127.0.0.1 2ndApp.localhost.com
- On the deployment PC make sure that the Host entry changes to the actual URL that you have allocated for the second plug-in application and change the Path to the location that the second application resides on your deployment PC.
- All applications (Host and Plug-ins) need to have their corresponding .Mxd and Mxr files.
- You can add more Plug-in xApps on the deployment PC provided that you add their corresponding entries in the HostApp.ini file.
- In order to start a new plug-in application, the Host application need to restart.
- Once the Host application is running, each plug-in and the Host application can be accessed using their corresponding URLs.
-1
You could run multiple Morfik applications on the same PC provided that they run on different HTTP Ports. However there are times that you may have to run multiple applications on a single port, mostly port 80.
Following steps are the instructions on how you could have multiple Morfik applications running on a single Port. Please note that xApp refers to an application that is created in Morfik WebOS Apps Builder.
- Choose one of your applications to be your Host application (HostApp) and set the HTTP port for the HostApp to 80.
- Open the second application (2ndApp) and in Tools\Options\Compiler set the "xApp Mode" to "Plug-in xApp" and compile the project. This generates a project dll rather than executable. Please note that while you are designing and testing the 2ndApp project, the "xApp Mode" option should be set to the default "Stand-alone XApp" until the project is ready to be compiled as a Plug-in. It is not possible to run a plug-in application by itself.
- Create a new .ini file next to the HostApp.exe and call it the same name as the Host application (in our example it is called HostApp.ini).
- Enter the following code inside the HostApp.ini file
[XAppPlugins]
2ndApp=2ndAppPlugIn
[2ndAppPlugIn]
Host=2ndApp.localhost.com
Name=2ndApp
Path=C:\2ndprojectFolder\2ndApp\2ndApp.dll
(replace the references to 2ndApp with your plug-in application name)
- In order to test your applications at design time, open the "C:\WINDOWS\system32\drivers\etc\hosts" file in your development PC and make sure the following entries exists
127.0.0.1 localhost.com
127.0.0.1 2ndApp.localhost.com
- On the deployment PC make sure that the Host entry changes to the actual URL that you have allocated for the second plug-in application and change the Path to the location that the second application resides on your deployment PC.
- All applications (Host and Plug-ins) need to have their corresponding .Mxd and Mxr files.
- You can add more Plug-in xApps on the deployment PC provided that you add their corresponding entries in the HostApp.ini file.
- In order to start a new plug-in application, the Host application need to restart.
- Once the Host application is running, each plug-in and the Host application can be accessed using their corresponding URLs.
1656
1
-1
00320000007UhiwAAC