mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
12 lines
365 B
Java
12 lines
365 B
Java
// Phase 20 (Track M.2) — RabbitMQ Java benign control.
|
|
|
|
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
|
|
|
public class Benign {
|
|
public Benign() {}
|
|
|
|
@RabbitListener(queues = "work")
|
|
public void onMessage(String messageId, String body) throws Exception {
|
|
new ProcessBuilder("echo", body).inheritIO().start().waitFor();
|
|
}
|
|
}
|