1 Reply Latest reply on Sep 11, 2011 10:04 AM by jaikiran

    Instantiate EJB 3 using Reflection

    unmarshall_infy

      Hi,

       

      We are developing custom framework for our application. EJB one is using reflection API to instatiate EJB 2 class and then invoking method of EJB 2. EJB 2 has EJB 3 reference (defined as @EJB). When i deploy code and run, i am able to get new instance(not sure whether it's created by EJB Container or not) of  EJB2, but in EJB 3 is getting instatantiated.

       

      Is it possible to create instance of an EJB 3.0 stateless class using  Reflection API. I am running my application in JBoss 5.

       

       

       

      Thanks

      Chintan