Hi and welcome to the forum
The Java agent currently does not support RMI out of the box. You can, however, use the public API to manually create a transaction for your daemon service.
If you want to directly correlate the daemon activity with the requests to JBoss and the subsequent activity, you have to manually propagate the relevant tracing headers. In the daemon, create a transaction, either with the programmatic API or via an annotation. Then use the
injectTraceHeaders API to inject the relevant headers in a
Map. Add this map to your RMI interface method. In JBoss, manually create a transaction for the RMI call via
ElasticApm.startTransactionWithRemoteParent, using the
Map received from the daemon application.
I hope that helps