I am quite new to concept of EJB. I have a requirement of invoking a DAO object from EJB. Can someone guide me on this. Any help would be highly appreciated. Thanks
Joined: Feb 18, 2004
Hi mahesh.. As you r new to this concept of DAO and EJB.Let me just brief you when to use DAO in EJB.When you are just looking up some records or extrcat record on the basis of some complex join do it with DAO instaed of EJB QL. Its better to avoid Create and Update thing with DAO ,do it with EJB. So how to use it ..well write a session bean method which makes a call to java class.The java class should use the same connection object made in the session bean. The java class will, use the connection object make a sql query or a procedure ,execute it and extract the result and send it again to that session bean method and that session bean will use this result for further manipulation.