This discussion is archived
6 Replies Latest reply: Nov 21, 2012 4:15 PM by Timo Hahn RSS

VO access in simple java class

956943 Newbie
Currently Being Moderated
Hi,

Jdev version: 11.1.1.4.0

I have a requirement where I have to use ADF model to access DB tables without any UI attached.
I have created a query based VO and an AM.

In my plain java class, I have used,

private AMImpl am = null; //Global variable.

public void myMethod(){
if(am == null)
{
am = (MyAMImpl)Configuration.createRootApplicationModule("org.abc.am.MyAM", "MyAMLocal");
}
MyVOImpl vo = am.getMyVO1();
vo..executeQuery();
}

Is there any potential issue with the way I'm access the VO? Will this have any jdbc/connection pool issue?

What is the best way to access VO/AM from plain java class without ADF UI and bindings?

Thanks in advance!

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points