1 Reply Latest reply on Apr 19, 2009 1:21 AM by jaikiran pai

    injecting bean into remote Client

    joshua aaaaa Newbie

      Hi all,
      I've tested EJB injection in a remote Client :

      public class Client {
       @EJB(mappedName="TestBean/remote")
       static Test t;
      
       public static void main(String[] args) throws Exception
       {
       Context ctx = new InitialContext();
      
       t.doSomething();
       }


      unfortunately "t" is null so injection doesn't happen.
      Tested with JBoss 5.0.0 GA on JDK 1.6
      Any workaround ?
      thanks
      john