Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Execute simple SQL query on Java

OnhateOct 17 2012 — edited Oct 19 2012
Hello,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2012
Added on Oct 17 2012
4 comments
718 views