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

Similar Messages

  • 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 Configuration

    Hello,
    I'm trying to deploy an ADF application in which I'm using the model MVC. I want to put the Model in a different AS than VC. The jdeveloper documentation says that I can create a remote configuration by creating a new configuration selecting "Remote" in the Middle Tier Server Type section, but in that section just appears "Local". Do you know if there is some other think that I should do?
    Thanks

    Hi,
    <Q>Assuming 2 and 3, which takes presidence the Enterprise Manager's DSA settings or the connection pool setting on the Application module?</Q>
    <A>The DSA settings. BC4J's connection pool settings only apply if the BC4J connection pool is being used. The BC4J connection pool is not used if a JNDI JDBC datasource has been defined in the ApplicationModule configuration. In 9.0.3 the BC4J Configuration editor tries to make this clearer by disabling the BC4J connection pool parameters when a JNDI JDBC datasource has been defined.
    The jbo.doconnectionpooling parameter name is a bit misleading. This is actually an ApplicationPool parameter which determines whether or not ApplicationModule connections should be released upon ApplicationModule release. It does not actually determine if JDBC connections are cached -- connection caching is left to the datasource implementation.
    </A>
    <Q>Assuming 1 and 3 how do I predict which settings DSA's connection pool will be using at run time?</Q>
    <A>DSA's connection pool will always be using the settings defined in the DataSource definition. BC4J's connection pool settings will not have an effect upon the DSA connection pool implementation -- BC4J's connection pool settings are relevant to the BC4J connection pool implementation only.</A>
    Hope this helps.
    JR

  • Getting JNDI name from application module configuration

    How to programmatically get JNDI name of the data source, specified in the bc4j.xcfg, using application module object or oracle.jbo.client.Configuration, or whatever?

    im sorry for interupting this thread. i have a question for Vinay. Actually im watching this thread bcoz i too have the same question.
    Vinay, what imports is to be added for this.None, if you are using ADFbc.
    The method is available in your ApplicationModuleImpl (i.e. the Java Impl for your AM).
    Here's the 11.1.1.5 javadoc:
    http://docs.oracle.com/cd/E24001_01/apirefs.1111/e10653/oracle/jbo/client/remote/ApplicationModuleImpl.html#getSession__
    im using Jdev 11.1.1.5.0 the statement is : System.out.println("Data Source Name"+getSession().getEnvironment().get("JDBCDataSource"));
    Its showing getSession() method not found.
    Any help???Where did you write that statement? It should work in the AMImpl as the javadoc shows....

  • 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.

  • 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

  • Application Module Issue

    We are experiencing an issue when using multiple Java Restful web services on our development Oracle Weblogic. Each of these services uses ADF BC for DB interaction. The test case scenario is Web service A does some database work via ADF BC and then calls Web service B which also interacts with the DB. Both of these services are hosted on the same managed server instance within Weblogic,  The error we are experiencing is as follows (I can post full stack trace if requested):
    java.lang.ClassCastException: oracle.jbo.common.DefLocaleContext cannot be cast to oracle.jbo.common.DefLocaleContext                at oracle.jbo.common.DefLocaleContext.getInstance(DefLocaleContext.java:84)
    Debugging our code we can see that the following line of code (highlighted in bold) is where the error is thrown.
                String amDef = "package.AppMod";
                String config = " AppModLocal";
                ApplicationModule am = null;
                am  = Configuration.createRootApplicationModule(amDef, config); //Error Here
    The bizarre thing is that it seems almost random in which of the service the error will be thrown. It never occurs on the first run after a deploy to the server, but will occur on subsequent runs. We correctly use the following line in each of our service to release the application module:
               Configuration.releaseRootApplicationModule(am, true);
    We have tried including adfBinding filters in our web.xml but still with no success.
    Details of our setup follow:
    Application Server: Oracle Weblogic Server 10.3.6, JDK 1.7.0.21, JSF 2.0, ADF Runtime 11.1.2.4
    Database: 11 R2 - 11.2.0.3
    JDeveloper: 11.1.2.4
    Any assistance would be greatly appreciated.

    Hi User,
    out of sheer curiosity. Are you really using ADF 11.1.1.6 and JDeveloper 11.1.2.4 together? How does that work?
    Regards,
    Linda

  • Making LOV off of an exposed method from second application module

    Hello,
    I am on JDev 11.1.1.4.0.
    My ADF project worked fine until the spec changed on how Lookups are going to be handled. Previuosly, all the lookup tables were in the same database as other tables. Change is that FND Lookups will be created in the "Oracle" and my ADF project should connect to "Oracle" to get appropriate lookup values to build LOVs while maintaining the main database connection intact.
    After some research, I now have 2 Application Modules, one my project and the other for Lookups to create LOVs. I went to Application Module configuration wizard to edit JDBC setting to point to "Oracle" database and created a read only view with the following SQL:
    SELECT LOOKUP_CODE, MEANING, DESCRIPTION FROM FND_LOOKUP_VALUES  
    WHERE LOOKUP_TYPE = 'MY_LOOKUP'
    AND ENABLED_FLAG = 'Y'
    AND LANGUAGE = 'US'I can run both AMs via "Oracle Business Component Browser" fine. However, I somehow have to set the lookup view object as data source to create LOV on the main updatable view object's attribute. If I set it the way I used to do treating the lookup view as a view object residing in the same AM I am getting "table or view does not exist" error. I guess it is something to do with the lookup view object, but I cannot seem to make any kind of progress on this.
    Any help would be greatly appreciated.
    Thank you
    Bones Jones
    Edited by: Bones Jones on May 19, 2011 10:40 AM

    Well, I think I have found a solution which I didn't have to write a single line of code. My mistake was to think that I have to write code to achieve this.
    Here is what I did:
    *I already have the main AM and View Objects created for my project.  The following steps are done on top of that to bring LOV to life
    1. Create a new, pretty empty AM, named LovAM.
    1.1 Right click on the newly created AM and select 'Configurations'
    1.2 Click JDBC Name value and click 'Edit'
    1.3 Select the second database source where Lookup is defined. If not listed, go back out and create a new Database connection and come back.
    2. Create a View Object with the following SQL:
    SELECT
        TO_NUMBER(LOOKUP_CODE) ID,
        MEANING NAME,
        DESCRIPTION
    FROM
        FND_LOOKUP_VALUES
    WHERE
        LOOKUP_TYPE = 'MY_LOOKUP' AND ENABLED_FLAG = 'Y' AND LANGUAGE = 'US'3. Notice you now have LovAMDataControl
    4. Create a jspx page and create a table with the main data control's binding (This was a part of the requirements).
    5. I create a read-only table with LovAMDataControl.LovLookUp1 binding (I think this creates/exposes correct binding in the pageDef).
    6. Now I drag-and-drop an attribute that I have been wanting to display LOV from the main binding.
    7. Selected single select listbox. You will be presented with 'Edit zlist Binding' screen.
    8. Base Data Source is the main data control binding.
    9. Select Dynamic List
    10. Select LovAM data control binding as List Data Source.
    11. (optional) Selected 'Name' as Display Attribute.
    11.1. (optional) I don't want to see the table created in step 5. On the jspx page, go to Source tab and delete the table from there. I think this keeps binding in pageDef while the UI component is deleted from the page.
    12. Save and Run
    Now, I didn't have to create Root Application Module in the code, but still achieved what I wanted.
    Thanks
    Bones Jones

  • Setting v$session.program property in application module config

    How can I set the v$session.program property in the AM config, so that when a new connection is created, the v$session.program field is documented with the property value.
    I added the following in JClient JCLoginDialog:
    ((Hashtable)connEnvironment).put("v$session.program", "my program name");
    I traced the V$SESSION TABLE:
    The added connection has "my program name" in the program field but if I open other application module instances, the new connections have an empty v$session.program field.
    I suppose that a property must be added to all application module configurations.
    Can somebody help me on this one?
    The v$session.program field is helpful when sessions must be killed.
    Thanks
    Fred

    I don't believe there is a built-in mechanism for that.
    But you can easily do it yourself. In you AM class:
    public void prepareSession( Session session ) {
        super.prepareSession( session );
        setDatabaseClientInfo( Bc4jConstants.APPLICATION_NAME );
        setDatabaseModuleInfo( moduleInfo );
    }And then:
      public void setDatabaseClientInfo( String clientInfo ) {
        try {
          this.getTransaction( ).executeCommand(
            "BEGIN dbms_application_info.set_client_info('" + clientInfo + "'); END;" );
        } catch( Exception e ) {
          // uncritical error
          log.warn( "Error setting the database client info: " + clientInfo, e );
      }and
      public void setDatabaseModuleInfo( String moduleInfo ) {
        if( moduleInfo != null ) {
          try {
            this.getTransaction( ).executeCommand( "BEGIN dbms_application_info.set_module('"
              + moduleInfo + "', NULL); END;" );
          } catch( Exception exception ) {
            // uncritical error
            log.warn( "Error setting the database module info: " + moduleInfo, exception );
      }In a similar fashion you can set the client identifier. We use the moduleInfo to identify the module of the session. The client info helps us to identify the application.
    Sascha

  • (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

  • 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

  • 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.

  • 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

  • Deleting all text boxes and images on one layer

    I am designing a 240 page book where nearly every page contains at least one image and at least one text box.  The book will be printed with a varnish (a fifth plate) on every image. The printer has instructed me to set up the varnish in the followin

  • PSE 10 Organizer on Mac shows wrong timestamps and changes timestamps

    Just installed PSE 10 on my Mac (OSX 10.6.8) performed an update to the raw converter (though I am NOT using raw files) All photos that I add to the catalog show a time stamp of 1hr before the photo was taken.  If I check the actual metatdata it show

  • Thumbnail image layout help

    Hi I need to assemble a page of thumbnail images sized and evenly spaced for import into a product catalog created in ID CS5.  I use Adobe Creative Ste CS5.  Would PS CS5 work best with this type of layout or should I use....? Thanks..

  • Trouble printing LARGE format images from Photoshop CC to Acrobat XI

    Hi All, I had no issues printing a 1mtrx1mtr @ 300dpi image to Acrobat, now that I am trying a 2mtrx1mtr @ 300dpi it is not doing anything. I get the initial Acrobat printer popup, tell it to print, photoshop CC says I may be printing something outsi

  • Encrypt/decrypt with des_cbc

    Hi: I have source code in c which can do encrypt and descrypt with des_cbc, now I want to implement the java version with javax.crypto.*, but it tells java.security.InvalidKeyException can anyone find the error for me? I think the problem is at Ciphe