This content has been marked as final. Show 6 replies
This is a method that will work and will also create an AM pool.1 person found this helpful
However the method may not be suitable for your use case. Can you explain what sort of program is going to consume ADF BC? Web services? Servlet? Standalone Java program?
It is a standalone java program.
For a stand alone app it's ok if you release the am you got,otherwise the resources are not freed.1 person found this helpful
Do I need to release the AM even if I'm using the same instance?
if(am == null)
am = (MyAMImpl)Configuration.createRootApplicationModule("org.abc.am.MyAM", "MyAMLocal");
How do I release the AM?
You should release the am at least when you close the app. It's a good practice to release this resource when you don't need it any longer.
The last parameter determines if the AM should be left in the pool.