The _idestartup.p is the place to code things that should get executed when the OpenEdge Architect starts (and opens a project).
Is there a similar place of a way to trap the shutdown of the AVM?
Mike,
Are you trying to trap and stop the shutdown, or are you simply trying to respond to some event when it happens?
Hi Matt,
the latter is the case. I've built a little framework, that launches an AppServer as soon as I open a workspace. This makes it consistent with the databases that I launch with OpenEdge Architect.
When I leave OpenEdge Architect, I'd like to be able to shutr down the AppServers as well (as the DB is shut down as well).
Mike
Try this:
From _idestartup.p to start a persistent procedure.
In the persistent procedure:
subscribe procedure this-procedure to "OEIDE_Event" anywhere.
procedure OEIDE_EVENT:
define input parameter eventName as character no-undo.
define input parameter projectName as character no-undo.
define input parameter programName as character no-undo.
define input parameter eventData as character no-undo.
if eventName equals "project-shutdown" then do:
end.
end procedure.
The documentation can be found at:
Help->Help Contents
OpenEdge Architect Guide->Customization->Concepts->Event subscription
Sounds promising! I'll give it a try.