JBoss Community

Instantiate EJB 3 using Reflection

created by unmarshall_infy unmarshall_nfiy in EJB3 - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in EJB3 at Community