Run Project From Studio As Background/Server


Mike Moore
 

Is it possible to run an XPA project from the Studio, deployed on a server? (This would be similar to Ctrl-F7 from within The Studio)

I am trying to avoid the cycle of saving project as ECF and restarting the server every time I make any change to the project.

Perhaps, another way to ask this: can project be deployed to a server using it's EDP file -- rather than the ECF?


In this case the application is deployed to a GigaSpaces space.


Thank you.




Steven Blank
 

In a word, no. One cannot change code without restarting the engine(s) running that code, in whatever form it may be.

That said, you could certainly automate deployment, including creating and copying the ECF (using the Studio's built-in Tools Infrastructure) as well as sending commands to the Broker to restart its engines.

The steps I used were:
  1. Modify the engine's INI file to point to the new ECF file, ex. 'AccuPac842.ecf'
  2. Send restart engines command to the Broker (don't know the relevant GigaSpaces command).
Steven G. Blank
Ξ SGBlank Consulting


On 1/4/2023 1:52 PM, Mike Moore wrote:

Is it possible to run an XPA project from the Studio, deployed on a server? (This would be similar to Ctrl-F7 from within The Studio)

I am trying to avoid the cycle of saving project as ECF and restarting the server every time I make any change to the project.

Perhaps, another way to ask this: can project be deployed to a server using it's EDP file -- rather than the ECF?


In this case the application is deployed to a GigaSpaces space.


Thank you.





Mike Moore
 

Steve, thanks for your quick and clear answer.

I have been following steps similar to yours', and kept wondering...





From:        "Steven Blank" <sgblank@...>
To:        main@magicu-l.groups.io
Date:        01/04/2023 01:07 PM
Subject:        Re: [magicu-l] Run Project From Studio As Background/Server
Sent by:        main@magicu-l.groups.io




In a word, no. One cannot change code without restarting the engine(s) running that code, in whatever form it may be.

That said, you could certainly automate deployment, including creating and copying the ECF (using the Studio's built-in Tools Infrastructure) as well as sending commands to the Broker to restart its engines.

The steps I used were:

1.        Modify the engine's INI file to point to the new ECF file, ex. 'AccuPac842.ecf'

">2.        Send restart engines command to the Broker (don't know the relevant GigaSpaces command).


Steven G. Blank
Ξ SGBlank Consulting


On 1/4/2023 1:52 PM, Mike Moore wrote:
Is it possible to run an XPA project from the Studio, deployed on a server? (This would be similar to Ctrl-F7 from within The Studio)

I am trying to avoid the cycle of saving project as ECF and restarting the server every time I make any change to the project.


Perhaps, another way to ask this: can project be deployed to a server using it's EDP file -- rather than the ECF?



In this case the application is deployed to a GigaSpaces space.



Thank you.