Detect shutdown of AVM ?

Posted by Admin on 29-Jan-2008 03:51

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?

All Replies

Posted by Matt Baker on 29-Jan-2008 08:21

Mike,

Are you trying to trap and stop the shutdown, or are you simply trying to respond to some event when it happens?

Posted by Admin on 29-Jan-2008 10:37

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

Posted by Matt Baker on 29-Jan-2008 12:16

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

Posted by Admin on 29-Jan-2008 13:02

Sounds promising! I'll give it a try.

This thread is closed