Configuration of Application Module

Is it possible to run an ADF Swing application in JDeveloper, using JDBC DataSource Connection Type for Application Module configuration? If yes, anyone has a demo application for this?
In SRDemo sample application, there are 2 application module configurations, one is SRServiceLocal using JDBC DataSource and the other is SRServiceLocalTesting using JDBC URL. Can JUnit testing be done with JDBC DataSource? If not, what are the reasons?

Hi,
you can use the J2EE datasource inly if the ADF BC model is deployed as an EJB. If you run ADF Swing stand-alone with ADF BC deployed to the client then this is not an option
Frank

Similar Messages

  • Can't change connection in configuration of application module

    I've trouble in changing a connection in a configuration of an application module.
    To reproduce this do the following:
    - create two or more connections (in my case: to different databases on different servers, one of them via JDBC-ODBC Bridge)
    - create an empty BC4J project
    - create an application module using one of the connections
    - right click the am and select configurations
    - in the configuration manager select the (default) configuration (usually AppModuleLocal)
    - select "edit"
    - in the "Connection Type" section select "JDBC URL"
    - Change the Connection Name to point to a different connection
    - close the connection manager
    - repeat the steps from (*)
    - repeat the steps from (*) once more
    => you'll be unable to change the connection back to the connection used first. You can change it in the configuration manager, but if you reopen the configuration manager you'll see the old connection again.

    You can edit the bc4j.xcfg and change the connation name within the configuration. I will try to reproduce and fix this bug.
    Thanks
    Juan

  • How application module helps for performance improve

    Hi Everyone,
    I have a sample web-application in which I am connecting with single AM instance (AM for database view object), retrieving some information and then close the connection. I am doing this as,
    // making AM instance
    <application module instance> = Configuration.createRootApplicationModule(<AM name>, config);
    // performing operations
    <operation result> = <application module instance>.<access VO with any operation>();
    System.out.println("Get result here");
    // disconnecting AM instance
    <application module instance>.getDBTransaction().disconnect();
    Configuration.releaseRootApplicationModule(<application module instance>, true);
    These are the activities which are performed by a single user. Now, I am doing stress test on same activities. I am testing the same code with 300 concurrent users (using JMeter with JSP URL). These are working fine. Also I checked multiple times, it always working fine.
    Now, I need to do something through which I can improve the performance. I know, I can use AM pool configurations to make this more effective. I have gone through the Oracle documents and checked the same test case with default or recommended pool configurations and I found similar kind of results (there is not much difference).
    On other hand, I tried with 'releaseRootApplicationModule' method with false parameter and found better results in default as well as recommended pool configurations.
    My question is, is the change of pool configurations recommended by Oracle really work? or do I need to concentrate more on coding part with default pool configurations?
    Here, I would like to know, what are the best practice (in code as well as pool configurations), I need to follow if I really want to improve the performance in real scenarios (when our application will access with large no. of concurrent users).
    I really look forward some help from experts. I have given a lot of time on this to know how really we can make our application more effective in terms of performance.
    I really appreciate for your reply.
    Regards,
    Dilip Gupta.

    >
    We added the createRootApplicationModule() API (in the oracle.jbo.client.Configuration class) to simplify acquiring an application module from the pool for brief programmatic manipulation before it is released back to the AM pool.
    Steve Muench.
    >
    check [url http://radio-weblogs.com/0118231/2009/08/20.html#a959]Check Your App for Misuse of Configuration.createRootApplicationModule()
    Edited by: Mohammad Jabr on May 10, 2012 7:14 AM

  • One application module with 3 differente data base connections

    I have 3 different servers for data base connections. The main is "sys", the second "stanby" and the third: "bdbatch". In the old application,that i m re programating, uses a properties to read the connection. If the main is not available then goes to the stanby an then to the third. With this new application with adf i have to do the same. So how can i configure the application module to do this? do i have to make extra code? or just configure an xml file??

    i faced this problem before in Dynamic JDBC Credentials topic solution provided by Steve Muench (to make your AM Databse Connection to be dynamic as you need).
    http://smuenchadf.samplecode.oracle.com/samples/11gDynamicCredentials.zip
    Note : Example Contains the Full JDBC Connection String in dynamic way
    i finished this solution in my App and Successed.
    Thanks

  • One Application Module Instance Per User

    Hi, I am using JDeveloper 11.1.1.2 with ADF BC.
    I have an application with a single root application module. I have my JDBC data source set up to enable identity based connection pooling so that a database connection is created with the current user's credentials.
    Basically, I would like an application module pool such that a single application module instance exists for each user in the system. If a user logs into the system, a new app module should be instantiated for him (tied to his db credentials). If the user makes a new request and his app module has been removed from the pool for inactivity, a new app module should be instantiated even if others already exist in the pool for other users. If the user is already logged into the system and tries to login again in another browser window, I would like to check if an app module already exists in the pool for the user and re-use that one instead of instantiating a new one.
    I don't want to set jbo.doconnectionpooling=true because I want the app module instance to keep its cached data.
    Is this possible? If so, how could I configure the application module to make this work?

    Hi Frank. Thank you for the reply.
    I tried using two browsers. The behavior of each page is very much different when being opened individually. Its like the two pages is sharing the same iterator / data and / or entity object. These two pages were opened to see if one is dependent upon the other. But when I test the same scenario on a different computer, everything works out fine.
    Is there a way for me to verify if the sessions are different? and if they are different, is there a way to verify if the application module created a new instance for the other session?

  • Problems with the Application Module Pool

    Hello,
    We have an Oracle ADF Application working in a production enviroment. The application module pool seems to work properly during the first days, but after a few days, the application module pool seems not to work properly. We start to get some errors like JBO-30003: the application pool failed to checkout an application module.
    We have included in the application a DumpPoolStatistics servlet, and what we have observed is:
    1. When the application is restarted in the server, the "total number of application modules in the pool" is equal to "maximum number of application modules in the pool".
    2. Several days after, the "total number of application modules in the pool" starts to decrease.
    We don't know why the "total number of application modules in the pool" starts to decrease, but we think this is the reason of the errors. In fact, "total number of application modules in the pool" is lower than the "jbo.ampool.minavailablesize" parameter value.
    The management of the application module pool is not a task of the developer, so we don't undestand where is the problem.
    We have configured the application module with the next parameters:
    <jbo.ampool.initpoolsize>10</jbo.ampool.initpoolsize>
    <jbo.ampool.maxpoolsize>100</jbo.ampool.maxpoolsize>
    <jbo.ampool.minavailablesize>10</jbo.ampool.minavailablesize>
    <jbo.recyclethreshold>15</jbo.recyclethreshold>
    <jbo.ampool.maxinactiveage>600000</jbo.ampool.minavailablesize>
    <jbo.ampool.monitorsleepinterval>600000</jbo.ampool.monitorsleepinterval>
    <jbo.initpoolsize>15</jbo.initpoolsize>
    <jbo.maxpoolsize>30</jbo.maxpoolsize>
    <jbo.poolminavailablesize>15</jbo.poolminavailablesize>
    <jbo.poolmaxavailablesize>25</jbo.poolmaxavailablesize>
    <jbo.poolmonitorsleepinterval>30000</jbo.poolmonitorsleepinterval>
    <jbo.poolmaxinactiveage>30000</jbo.poolmaxinactiveage>
    <jbo.dofailover>true</jbo.dofailover>
    <jbo.ampool.resetnontransactionalstate>true</jbo.ampool.resetnontransactionalstate>
    <jbo.ampool.doampooling>true</jbo.ampool.doampooling>
    We are working with JDeveloper 10.1.3.4.
    Thanks in advance!

    Sorry, you are right, the number of application modules created whe the application starts is given by the jbo.ampool.initpoolsize. But what it is sure is that the "total number of application modules in the pool" starts to decrease. The number of days is not always the same. But we have to restart the application occasionally.
    I think the time parameters are ok, I would like for example 10 minutes for pool resoruce cleanup, and 10 minutes for considering an inactive AM instance in the pool as a candidate for removal during the next resource cleanup.
    <jbo.ampool.monitorsleepinterval>600000</jbo.ampool.monitorsleepinterval> --> 10 minutes
    <jbo.ampool.maxinactiveage>600000</jbo.ampool.minavailablesize> --> 10 minutes
    Is this right?

  • Remotable Application Module

    Hello,
    i try to make an existing application module remotable:
    Application Module Editor -> Remote -> EJB Session Bean -> Local Configurations -> Edit -> Application Module -> Middle Tier Server Type
    In the Middle Tier Server Type select-box i can't select something else than Local. In Help Content you have also remote types like Oracle9i EJB or WebLogic EJB. How can i choose Oracle9i EJB as Middle Tier Server Type?
    JDeveloper Version: 10.1.2.0.0 (Build 1811)
    Application: ADF Toy Store, (http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adftoystore.html)
    Daniel.

    Hi,
    If you have developed custom methods in your Business Components (on your application module, view object, or view row), and you have specified in the respective wizard that those methods should be exported to your client, then depending on your remoteable deployment platform, JDeveloper will generate the client stubs for those methods when you generate your deployment profiles for the app module.
    On the Remoteable page of the App Module wizard, you can specify to have that client stub code generated to a new project, or to an existing client project. By default, they will be generated to a new project named something like deploymentplatformClient.jpr.
    Basically, the only thing you need to be aware of for those files is that they get included with your client code when you deploy your client project. They must be available to your client code at runtime in the deployment environment.
    So, the easiest thing to do is to add these generated files to your client project. When you create a deployment profile for your client project, just make sure to include them.

  • (IMP)application module and DB connection issue

    Hi,
    In my BC4J application, Application module is not releasing DB connection after the execution of the JSP page. It usually takes approx 3500-4000sec. to release it. On what parameters this time is dependent??
    I am using data-source to connect to DB. Application Module configurations parameters are set with default values.
    If i select "Disconnect Application Module Upon Release" from the configuration of Application module, it releases DBconnection at the end of http Request. Is it a proper solution to the issue ? any performance related issues with it?
    My JSP code's basic structure is
    try
    <jbo:ApplicationModule id="<AM ID>" definition="<Fully qualified AM classname>" releasemode="Stateless/stateFul" />
    // application code
    catch(Exception e)
    // Code to take necessary action if exception occurs
    finally
    <jbo:ReleasePageResources appid="<AM ID>" releasemode="Stateless/StateFul"/>
    Please guide me on this.
    Thanks in advance,
    Devang

    Hi john,
    Thanks for your reply... in other way can i restrict the number of connections created for the application module By selecting the Disconnect Application Module Upon Release in application module configuration.
    If i select that check box in Appmodule-->configurations->Edit->Pooling and Scalability means, while loading my screen number of connections are increased after completion of loading a screen immediatly connections also got reduced. if i select this check box whether it will give any other problems.
    Here am using the uishell dynamic tab after opening more number of tabs am getting connection pool error.not allways.. thats why am trying to restrict the no.of connections opening.
    please can you provide some info regarding this
    Reg,
    Brahma B

  • How to configure Application module pooling?

    I want to know wheather bc4j container itself manages Application module pooling if yes then please tell me is there any file to set parameters for congiguration like one which we have for apache web server.
    If no then please let me know how to create applicatiom module pooling.
    Thanks in advance.

    Application module pooling is configurable through an application module configuration. In order to edit an application module configuration you may right click an application module and select Configurations...
    The BC4J data web beans and the BC4J JSP datatags are both application pool clients. The BC4J documentation includes descriptions of the application pool properties. The documentation also includes a code sample which illustrates how to write your own pool client.

  • ADF BC: Optimal Application Module Runtime Configuration

    Have implemented an intranet application for 1000 users using the following technologies implemented on Oracle JDeveloper 10.1.3.0.4:
    ADF BC for my Services layer
    JSF for my Controller layer
    JSF and ADF for my View layer
    ADF Model for my Data layer
    The application is entirely designed by .jspx and .jsp pages (for reports), handling 106 application modules, with several entity and view objects and without any step-by-step stateful scenario. At each page, there appears a commit button to commit the end-user transaction, and a rollback button to return to the previous page.
    The application is database-backed from an Oracle Database 10g, deployed on three application servers Oracle 10.1.3.1 on three different hosts on Suse Linux OS, used data-source connection and AM pooling, and load-balanced by one webcacher in front of the 3 servers.
    Under stress test scenario, on a heavy system load in production environment, several ADF State Management errors were recognized that pushed the webacher and application server with the maximum load to automatic restarts due to either demand for JVM increased heap size or errors from the database that the TNS listener complained it could not handle any more connections.
    Thus, we started a safety/reliability tess for all our application module components (disabling "Enable application module pooling"), and a stress test using a third-party stress tool at work, but we're still faced with several questions.
    (a) What is the best strategy for AM configuration, to quit State Management at all since our application doesn't need it, and if so can it be done globally or declaratively and not individually and programmatically?
    (b) Testing on application module runtime configuration, we observed that not to "hang-on" on a connection -default functionality- but to release it at the end of each HTTP request, as each deployment is concentrated on a single data-source connection pool/single user, brought less open JDBC connections on A.S.? Is this the optimal run-time configuration than the default for our case?
    (c) If State Management errors are resolved, and using a software balancer before 3 application servers, regulate the traffice by 1/3 to each, is it possible that a system crash will be avoided next time?
    So, our problems related to ADF tunning and State Management Errors, but we need a good advice on this topic as the overall documentation is case-specific.

    Chapter 29 "Understanding Application Module Pooling" in the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html is the best place to start. There is no "magic" optimal configuration that I (or anyone here, really) can suggest to you. You need to understand the various "knobs and dials" that control the pool sizing and pool cleanup behavior, and then apply application-specific information to this information to derive what the optimal configuration for your particular application will be. The chapter explains how the application module pool and database connection pool interact, and in which situations it is best to change the default setting of the jbo.doconnectionpooling property to true.
    Chapter 28 "Application Module State Management" describes the functionality of that facility of the framework, as well as how to release the application module in stateless, unmanaged mode if you need to.
    By following the tips in the section "28.3.2.4 Setting Release Level in an Custom ADF PageLifecycle" (which builds on information introduced in section "10.5.4.1 Globally Customizing the ADF Page Lifecycle"), you can generically impose a different release level in your application without "touching" every page.
    As a general rule, if you have:
    (*) Lots of distinct application modules
    (*) Each of which is used as a separate data control (rather than being nested inside a containing application module as described in section "8.9.3 Root Application Modules Versus Nested Application Module Usages" of the dev guide)
    (*) Each of which uses the same database connection
    Then as described in section "29.8 How Database and Application Module Pools Cooperate" in the guide, your application can decrease the total overall number of connections used by using the non-default setting of jbo.doconnectionpooling=true.
    Applications using many distinct data controls in the span of a single user's session need to be aware of Bug# 4566186 ("PERF: ADFBINDINGFILTER CHECKS OUT ALL ADF BC DATA CONTROLS USED AT LEAST ONCE"). This issue has been fixed in JDev/ADF 11g, but apparently the fix was too complex to accommodate a 10.1.X backport. I'm trying to document a workaround and publish it on my blog, but I'm not finished with it yet.

  • Application Module Configuration Properties file?

    Hi,
    Any body knows where could i find the Application Module Configuration Properties file on the disk.
    (This properties on wizard are appeared when we right click on application module and select configuration...)

    Curt,
    Thanks for your direction. That link is vary useful to be familiar with the AM configuration setting.
    Frankly, during last few months I was extremely busy to develop JSP pages. And didnt study much about AM But now that we are close to move the application to production I faced unacceptable problems. Recently I started to read your/and other folks treads to get more familiar with AM.
    Here is some of the problem i faced, which i think are AM related:
    1-The application speed goes down as soon as more than 2-3 browser(user) work with the same application(most probably I have memory leak).
    2-Some times I received following error when tried to load a JSP page in the application:
    Error Message: oracle.jbo.PCollException: JBO-28020: Passivation error on collection TXN, node id -1 void
    3-I faced following error when I tried to work with two applications in one or even two browsers:
    Error Message: JBO 30004: An application module that was not checked out was checked in...
    So, please let me know your idea on those and/or any point that I have to check.
    By the way, I am still on JDev9i-Beta and I accepted all default setting at the time I created AM . but the state of each page explicitly defined at the page level(mostly stateful, but on some of the pages i didn't mentioned the state which by default is stateless).
    Thanks.

  • BUG: Can't create BC4J Application Module Configurations

    Hello,
    I'm using JDev 9.0.3.1 with Win2K and WinXP. There seems to be a bug in the BC4J Application Module Configuration Manager:
    It seems to be impossible to create a new BC4J Application Module Configuration with the Configuration Manager of a BC4J Application Module. I can copy an existing AM configuration, but I can not rename it. Clicking on the OK Button in the Configuration Manager simply does nothing.
    A work around seems to be to open bc4j.xcfg in any text editor, copy an AppModuleConfig element, save xcfg, in JDev remove the project form the workspace, readd it to the workspace (some caching issue of jdev?). Then the new AM config is there and can be modified.
    In JDev 9.0.3 the Config Manager seems to work fine.
    Regards
    Stefan

    The bug is mentioned in metalink bug 2849146.

  • Application module configurations

    Hi
    When I right click on an application module and choose Configurations... there are two configurations for a given application model (for example AppModuleLocale and AppModuleShared) in the manage configurations dialog. I couldn't find anything about the usages and differences of these two configurations on the net. Would you please tell me about this?
    Cheers,
    Ferez

    These are the two configurations which are created by default by the framework. The 'local' configuration is for normal use as a web application with multiple users accessing the application. The 'shared' configuration is a special use case where the application module is shared by multiple other application modules, e.g. when the data accessible via the shared application module is quasi static in nature. This kind of application module is often used for look up data.
    If you check the 'Pooling and Scability' parameters of the two configurations, you'll notice the difference in the 'MaxPoolSize' parameter. For 'shared' application modules this parameter is set to 1, as there are no changes in the data expected and the same application module can be used for all queries.
    Timo

  • Required application module reporting.HRRunDlg is not configured. Please co

    Hi,
    I did the 9.3.1 REPORTING ANANLYSIS installation and then applied 9.3.3 patches,
    when i am trying to use reports in workspace it is throwing the below error:
    Required application module reporting.HRRunDlg is not configured. Please contact your administrator.
    I tried restaring and rebooting ,killing java.exe services, still it givng the error, it is bit urgent,
    Can some one please respond on this?
    Thanks,
    msr.

    That usually means either FR is not running or the Web Server is having trouble connecting.
    Do either of these links work:
    Direct
    http://frserver:8200/hr/modules/com/hyperion/reporting/web/common/HRCore.js
    Through web server:
    http://websvr:19000/hr/modules/com/hyperion/reporting/web/common/HRCore.js
    If neither work - then check the FR logs
    If 8200 works and not 19000 you might try reconfiguring your web server using the config utility. And check the web server configuration.
    Nick

  • Error "Invalid or Could not find module configuration" and "Required application module HyperionPlanning.planning is not configured

    Dear
      I use version 11.2.1, try to open an application one by planning and workspace is the error below.
      "Invalid or Could not find module configuration" and "Required application module HyperionPlanning.planning is not configured"
    I checked the oracle site, but the suggested solution is not possible because using the OHS and found the file HYSLWorkers.properties.
    Solution
    On the server que hosts the Apache component:
    1. Navigate to HYPERION_HOME%% \ common \ httpServers \ Apache \ 2.0.59 \ conf
    2. Edit the file named HYSLWorkers.properties,
    3. Locate the entry starting with "worker.HP__8300.port"
    4. Set its value to the value of the Planning web application's listening port incremented by two,
    5. Save and close
    6. Restart Apache only
    Anyone have any suggestions?

    If restarting the services does not help, run the EPM configurator again and configure foundation web server again then restart services and try logging into workspace
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • I have my entire library from my mac on my iphone5.  how do i move a song from my library to my iphone

    I can access my entire library from my mac on my iphone5.  How do i move a song from my library to my iphone.

  • IPod not recognized by any Mac or PC it's been hooked up to

    20GB w/color...oldie but a goodie. But after installing 7.7, it stopped being recognized by iTunes or my G5, period. Was hoping after 7.7.1 that it would reappear, but no luck. When I installed 7.7.1, it appeared on my desktop for a moment, but when

  • Internet recovery problem

    Hello, when I turn on my MacBook Pro, a folder with a question mark appears and does not stop blinking. After some research, I tried a few methods to resolve the issue. No matter what buttons I press and hold, it takes me to internet recovery. I atta

  • WPA2 and Netgear WPN824

    Has anybody had any problems with WPA2 security on the MacBook Pro? I switched my wireless network over to WPA2 from WEP tonight, and my G4 Mac Mini and Wii connected with no problems. However, the MBP will join the network with no outbound connectiv

  • Regarding "File Access Parameters" in Integration Directory

    Hi,    Suggest me how to provide the source and target directory names if i place the input file in the C- drive of my local system.     I provided the source directory name in the following way.        <b>C:/Dinesh/XI/INP</b>    But IS is not pickin