[jboss-user] [EJB3] - Instantiate EJB 3 using Reflection

unmarshall_infy unmarshall_nfiy do-not-reply at jboss.com
Wed Sep 7 16:19:03 EDT 2011


unmarshall_infy unmarshall_nfiy [http://community.jboss.org/people/unmarshall_infy] created the discussion

"Instantiate EJB 3 using Reflection"

To view the discussion, visit: http://community.jboss.org/message/625370#625370

--------------------------------------------------------------
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
[http://community.jboss.org/message/625370#625370]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110907/e3007867/attachment.html 


More information about the jboss-user mailing list