7 Replies Latest reply on Jan 23, 2006 4:55 PM by Gavin King

    Nothing gets injected

    Magnus Sandberg Novice

      I have several session beans that get picked up by ejb3-container and they also get picked up by seam. But when calling the action method on one of the beans nothing gets injected - all the other beans all works as expected: The bean in question is the last one that gets defined by seam.

      (Still using beta1)

      public class FindAction implements Find {
       private EntityManager em;
       public List<Ad> getSelected() {
       try {
       System.out.println((EntityManager)Component.getInstance("em", true));

      em is null but when calling Component.getInstance() the correct value is returned. I have also tried to inject other vales but the result is the same.

      This should work without problems right?