package org.jeecqrs.command.bus.jms;

import javax.ejb.Stateless;
import org.jeecqrs.command.CommandHandler;

@Stateless
public class TestCommandHandler implements CommandHandler<TestCommand> {

    @Override
    public void handleCommand(TestCommand command) {
        System.out.println("Received command: " + command.payload);
        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            // ignore
        }
    }

    @Override
    public Class<? extends TestCommand> handledCommandType() {
        return TestCommand.class;
    }
    
}

@@ -101,16 +101,95 @@
 Handler;
+%0Aimport org.jeecqrs.command.registry.autodiscover.AutoDiscoveredCommandHandler;
 %0A%0A@State
@@ -236,16 +236,30 @@
 lements 
+AutoDiscovered
 CommandH

Make TestCommandHandler autoregistered