How to call a centralized class from multiple deployed applications

2 views (last 30 days)
I have a situation where I have a centralized class of static functions that are called by multiple deployed applications. Currently, if I have to update something in that class, I then have to re-deploy all of these applications. Is it possible to have the deployed applications reference the class as an m-file or a p-file so that I only have to update the centralized class instead of all of the applications as well?
  2 Comments
Matt J
Matt J on 13 Mar 2025
How would it help? Wouldn't you still have to deploy updated class definition mfiles or pfiles to all your sites?
Brian
Brian on 13 Mar 2025
I currently have over 30 deployed applications that are in use by our production floor. I've recently started to convert most of these to use a centralized class so that I can help make sure all applications are performing similar measurements the same way. If I find a bug or an issue in the centralized class, while it makes it easy to generate new compiled installers, I still have to go through hours of documentation and Engineering Change Orders to get those released for use. If it I could release the class itself and have those applications refer to it, then it would be a single change order and the update would automatically be pulled in to each deployed application.
Looking through a few other answers, it appears it's not possible. Again, I want my deployed application to reference an external m-file or p-file that I could update without having to re-deploy my applications (deployed application references function in external file rather than in compiled application).

Sign in to comment.

Answers (1)

Matt J
Matt J on 13 Mar 2025
Edited: Matt J on 13 Mar 2025
If the platform is Windows then, according to ChatGPT, you can deploy the class as a COM server, so that another deployed MATLAB app (or even a different application) can create and control an instance of it using actxserver.

Categories

Find more on Manage Products in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!