ELK Heartbeat for dameon application which do not listen to a port

My org have several java dameon applications which are either

  1. Pure JMS listeners
  2. Running CRON jobs

And they do not expose a port. How can we monitor these applications using Heartbeat (or something similar) .