Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

The restart script is named “restart.ps1”, and is located in the local Atom install folder.

Each time a Boomi atom restarts, its PID will change. In those scenarios, the Jolokia agent should be re-attached to the correct PID.

...

Code Block
languagepowershell
Restart-Service -Verbose $srvName
Start-Sleep -s 5
for($i=1; $i -le 5; $i++) {
    $serviceAfter = Get-Service $srvName
    if ($serviceAfter.status -eq “running”) {
        “$srvName is Running”

            #insert the two lines of code below
			$atoms = Get-Process atom | Where-Object {$_.Handles -gt 200} | select -expand id
			Start-Process java -ArgumentList ‘-jar’, ‘c:/jolokia-jvm-1.7.1.jar --host=ip_address’, $atoms
	
        break
    } 

', representation=storage}