-
Java EE 5: How to inject DAO Impl in Session Bean (2 messages)
- Posted by: Jan Michael Tan
- Posted on: October 28 2008 01:45 EDT
This is the first time i'll be working with Java EE 5, I come from a Spring background and was wondering if you can inject a dao implementation into a stateless session bean? I'm using Glassfish 2 UR2 Thanks. Regards, Jan Michael TanThreaded Messages (2)
- Re: Java EE 5: How to inject DAO Impl in Session Bean by Rohan Walia on October 28 2008 23:51 EDT
- Re: Java EE 5: How to inject DAO Impl in Session Bean by Nicke G on October 29 2008 14:08 EDT
-
Re: Java EE 5: How to inject DAO Impl in Session Bean[ Go to top ]
- Posted by: Rohan Walia
- Posted on: October 28 2008 23:51 EDT
- in response to Jan Michael Tan
Well i am also from a spring back ground. I havnt worked on EJB. We use depenency injection to give dependencies. I will also like to know how we can do this in EJB. One more thing i don't know EJB.But worked on Spring. How to get started with EJB.. Thanks -
Re: Java EE 5: How to inject DAO Impl in Session Bean[ Go to top ]
- Posted by: Nicke G
- Posted on: October 29 2008 14:08 EDT
- in response to Jan Michael Tan
Simply use the @EJB annotation at your dao-declaration in your session bean. /N