Execute simple SQL query on Java
OnhateOct 17 2012 — edited Oct 19 2012Hello,
I am a newbie on ADF, I am a web developer used to work with EJBs, WebServices, Servlets and this stuff... But now I am on a project that uses ADF.
My opinion, I don´t like this kind of development, drag and drop, I prefer to code on :) but, I need to work.
I am developing a utility class that needs to run some SQL statements and send an email.
I tried to work with the conventional @Resource (name...) Datasource ds; and did not worked, because it does not injected the object.
I tried to create a java implementation of my application module, instanciate it and get a ViewObject that I created to do a select statement, and the ViewObject comes null...
I just wanna do a simple query... just it, using simple java for web I would have already done it... How is the best way to do it?
Thanks.