CDI Producer and Injection
问题 i want to use a producer in my application but i'm stuck at the point, where i'm trying to inject the bean. im getting the famous WELD-001409 error. please lighten up my understanding of cdi producer. here's my interface: @Named public interface MessageSender { void sendMessage(); } the bean: public class EmailMessageSender implements MessageSender { @Override public void sendMessage() { System.out.println("Sending email message"); } } and the producer: @SessionScoped public class