package org.aslak.github.merge.service;

import javax.ejb.Stateless;
import javax.enterprise.event.Event;
import javax.inject.Inject;

import org.aslak.github.merge.model.Notification;
import org.aslak.github.merge.model.PullRequestKey;

@Stateless
public class NotificationService {

    @Inject
    private Event<Notification> notification;

    public void sendMessage(PullRequestKey key, String message) {
        notification.fire(new Notification(key, message));
    }
}

@@ -38,36 +38,8 @@
 e;%0A%0A
-import javax.ejb.Stateless;%0A
 impo
@@ -207,19 +207,8 @@
 y;%0A%0A
-@Stateless%0A
 publ

Remove Statless NotificationService. No need to be EJB