How to say application module(s) to consume only one DB connection

Hi,
In my application, i use UI Shell template. All of my task flows are said to have new transaction always and not to share the data control. i have bunch of application modules (not nested AM) with many view objects. All the view objects are custom java data source implemented and none of them requires DB connection as they interact with DB using tuxedo connection. Expected concurrent users will be around 800.
i can understand that application module requires DB connection for activation/passivation, but how can i say all of my application modules to consume only one DB connection??
Thanks in advance.
Raghuraman

Jobinesh,
My application is based on UI tab shell template with each and every task flow set to begin with new transaction always.
I was using database tables for LOV view objects data population alone. Now that also has been changed to custom view data source implementation because of client requirement (LOV data needs to be cached till user-browser session)
With the new implementation,
1. I have some AMs with instances of entity driven VOs. With this, I do transaction with legacy system through Tuxedo. Custom view data source implementation is done to populate data from service. Similarly Update to service will happen by reading transaction listener list on save.
2. I also have couple of AMs with instances of non entity-driven VOs, which will be used as read-only table/LOV. For this also custom view data source implementation is done by reading the reference database table only one time during deployment.
3. As of now, none of my AMs are specified as Shared AM.
Questions:
1. I want to utilize the AM passivation/activation feature to control memory usage. I came to know "*The passivation process saves information used by the AM into the passivation store - usually a database*". I have a database, from where i am reading data for LOV during deployment. Can i have the single connection of that database configured for all the AMs (Both tuxedo transaction VO's AM and LOV VO's AM) so that i can avail this feature. If so, how can i configure all the AMs to consume only one connection?
2. Any other way to avail this AM passivation/activation without database.
Thanks in advance.
Raghu

Similar Messages

  • How to say to a table that I only one to show 8 lines!

    Hi everybody!
    I need help, I've a table, I want to say to this table (by code) that only show me 8 lines in the table, how can I insert code into a table?
    How can I insert this code????
    line = line + 1.
    if line eq 9.
    line = 1.
    endif.
    Thanks and regards
    Rebeca

    Hi,
    I didn't get question exactly,
    As per my understanding...
    Do 8 TIMES.
    ENDDO.
    Will be helpful...
    Nag

  • How to get application module instance from java bundle?

    Hi!
    I would like to build an application that would get all translations from a database table.
    So I created application module for translations that contains a view object which is selecting translations for specific language from a database table. I exposed a method in application module as client interface which returns HashMap<String, String> for all translations for specific language. When I test my view and client interface method call they work fine.
    Then I created java bundle classes to get translations for specific language. Then I tried to override public Object[][] getContents() method.
    I tried to get my translations application module like this:
    SharedTranslationsAppModuleImpl am = new SharedTranslationsAppModuleImpl();
    Map<String, String> translationsMap = am.getTranslations(this.getLocaleCode); // Client interface method call
    In getTranslations(String LocaleCode) I try to get that view (which would select translations from database) but it returns NULL and I get NPE error message.
    So what is the right way to get application module from java bundle file? Now everytime application wants to get translations, application stops and displays NPE message.
    Regards, Marko
    I use JDeveloper 11.1.2.1.0

    Marko,
    you can't just instantiate an application module. An application module has to be set up, db connections and memory pools have to be initialized and ....
    Can you describe why and when you try to read the resource bundle from the db and where the resource bundle is used?
    This blog may be what you are looking for http://technology.amis.nl/2012/08/10/implement-resource-bundles-for-adf-applications-in-a-database-table/
    Timo

  • How do i make a slideshow lightbox with only one main image

    Hi all,
    i was wondering How do i make a slideshow lightbox with only one main image being seen on the page and once clicked the lightbox will open and have multiple images viewable from prev/next buttons with comments.
    Reason being is i want have a portfolio page with my work all viewable from that one page so i will have say 10 lightboxes on the page but all with one master image.
    Cheers,
    Chris

    hello
    I have the same problem... Its so basic thing and is it really missed in muse ?

  • There is no tab that says, manually manage video and music, only one to manage video.

    I have an Iphone 5. I want to manually manage my music.
    There is no tab that says, manually manage video and music,
    only one to manage video!

    Hello rmblue,
    Thanks for using Apple Support Communities.
    The support article below has directions on how to configure iTunes to manually manage the content on your iPhone.
    Managing content manually on iPhone, iPad, and iPod
    http://support.apple.com/kb/ht1535
    Take care,
    Alex H.

  • How do I change my Apple ID on only one device?

    How do I change my Apple ID on only one device? I inherited my husband's iPhone 5. He cleared it but I set it up with same Apple ID so we could share same iTunes account. However, I realised that there are inconveniences such as not being able to Facetime each other. In addition, his iTunes account is UK-based and we'd like to also have a New Zealand iTunes account for various reasons.

    Go to settings/icloud and sign out. Then sign in by creating a new Apple ID. Do the same in Settings for Messages, FaceTime and iTunes & App Store. Next, link your Apple IDs using Family Sharing so you can still share music and apps. Family Sharing - Apple Support

  • How do i confirm whether it is using only one partition.

    I want to select the data from one partition only.
    How do i confirm my select query using only one partition.
    To front end developers how do i suugest to use correct partition.
    I know in the select query we can write partion name also if i know the partition.
    But i don't the correct partition name as a front end developer.

    Hello,
    You can find partitions for the table from following view user_tab_partitions. You can use PARTITION Clause but it defeats the purpose of having partition key column,
    You should be able to do this
    select * from my_part_table where part_key='key';Regards

  • How can I set two different emails in only one contact form?

    How can I set two different emails in only one contact form?

    To enter multiple email address with the Contact Form Widgets:
    Click the Options icon for the selected widget, then
    In the Email to box, enter multiple emails by delimiting them with a semi-colon. For example: [email protected];[email protected]
    Cari

  • How can I adjust the skin color of only one person in the photo (Elements 11)

    How can I adjust the skin color of only one person in the photo (Elements 11)?
    Thanks for your help.

    From your question, I assume you know how to do it for all persons :
    Menu : Enhance/Adjust color/adjust color for skin tones
    So what you have to do is to do the color correction on a layer copy. Concentrate on the person to enhance and ignore the rest of the picture.
    When you are satisfied, add a mask to the layer copy and fill it with black.
    Set your foreground color to white
    In the layer palette, click on the mask icon on the right of the layer icon.
    Then use a brush to paint white on the skin of the person to reveal the correction.

  • If I want to purchase PhotoShop CS6 for my company, how many computers can install this copyright or only one time of installation?

    If I want to purchase PhotoShop CS6 for my company, how many computers can install this copyright or only one time of installation?

    YOu can install and activate on 2 computers for non-concurrent use.
    Mylenium

  • When I import an Album or Folder from my computer that is a Various Artist Album it creates as many albums by the same name as there are songs?  How do I fix this so it is only one Album?

    When I import an Album or Folder from my computer that is a Various Artist Album it creates as many albums by the same name as there are songs?  How do I fix this so it is only one Album?

    Before you begin the import, edit the properties of the tracks to set the Album Artist to Various Artists and Part of a Compilation to Yes.
    For more info. see Grouping tracks into albums.
    tt2

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

  • How to access application module from ActionForm Execute?

    I've got a very simple ADF/UIX/Struts application where I'm trying to create a simple Login function. I have a /loginAction data action pointing to a login.uix page forward. The login.uix page has a <struts:form> on it with a user and a password field. There is a LoginBean with the corresponding get/set values. I have an ADF model created with a boolean login(String username, String password) function exposed as a client method.
    Eventually, when I have this basic part working, then I'll actually be using an ActionForward mapping to dispatch to different home pages, based on the particular login account (the name of the forward will be stored in the authentication table).
    I've tried overriding Execute(), since that is where you can return the appropriate ActionForward mapping, but that does not have a DataActionContext passed in -- so I can't get to the application module.
    I've also looked at processComponentEvents, but that doesn't have any ActionForward results nor a way to pass back ActionErrors (in case the login fails).
    How do I call my login client method when a user has entered a username/password and pressed the Submit button?

    Here is another solution as provided by Oracle Support in response to a TAR that I opened:
    I had described my need to access a login() function defined in my Application Module, returning true/false if the login succeeds/fails. Here is the reply, posted with permission:
    I have gotten the following information back from one of the development folks pertaining to the question you asked.
    His suggestions are as follows:
    1) Expose the method as a client method on the App module
    2) On the pageflow create a new DataAction
    3) Drag and drop the logon method from the AppModule operations node and drop it onto the new data Action
    3) Edit the set-property values that are created in the Struts metadata for this new DataAction to use the correct expressions to get the logon info to pass to the middle tier.
    e.g.
    <action path="/authenticateUser" className="oracle.adf.controller.struts.actions.DataActionMapping" type="AuthenticateUserAction" name="DataForm"
    unknown="false">
    <set-property property="modelReference" value="authenticateUserUIModel"/>
    <set-property property="methodName" value="authenticateUserUIModel.authenticateUser"/>
    <set-property property="resultLocation" value="${requestScope.methodResult}"/>
    <set-property property="numParams" value="2"/>
    <set-property property="paramNames[0]" value="${param.logonUsername}"/>
    <set-property property="paramNames[1]" value="${param.logonPassword}"/>
    <forward name="fail" path="/logon.do"/>
    <forward name="success" path="/menu.do"/>
    </action>
    So in this case the values of the logonUsername and logonPassword fields in the form that submitted to this DataAction are passed as the two parameters that my authenticateUser method on the AppModule requires.
    I have also overriden the data action class to customise the findForward() method to route the user depending on if the method call worked or not.
    And here's the code for the customized FindForward in the DataAction:
    protected void findForward(DataActionContext actionContext) throws Exception
    HttpServletRequest request = actionContext.getHttpServletRequest();
    HttpSession session = request.getSession();
    String target = "fail";
    //Get the result of the Model Method call
    JUCtrlActionBinding method = actionContext.getCustomMethod();
    boolean successfulLogon = ((Boolean)method.getResult()).booleanValue();
    if (!successfulLogon)
    // If the logon fails we need to do the following
    // 1. Increament the counter once this exceeds 3 any logon will fail
    // 2. Create an error message to display on the logon screen
    // note this is a non specific error to prevent hackers from
    // knowing that they at least got the username right or from
    // knowing that there is a Max attempts value if they are trying
    // an automated attack
    Integer attempts = (Integer)session.getAttribute("logonAttempts");
    int intAttempts = 0;
    if (attempts != null)
    intAttempts = attempts.intValue();
    session.setAttribute("logonAttempts", new Integer(++intAttempts));
    //The error message comes out of the ApplicationResources.properties file.
    actionContext.getActionErrors().add("general",new ActionError("logon.error.logonFailed"));
    this.saveErrors(actionContext.getHttpServletRequest(),
    actionContext.getActionErrors());
    else
    //If connection was OK do we need to save the username in a cookie?
    String remember = (String)request.getParameter("logonRemember");
    int cookieLife = 0; //Expire
    if ( remember != null && remember.length()>0 )
    cookieLife = 2592000;
    String name = (String)request.getParameter("logonUsername");
    Cookie userCookie = new Cookie("CARA_USER_COOKIE",name);
    userCookie.setMaxAge(cookieLife);
    actionContext.getHttpServletResponse().addCookie(userCookie);
    target = "success";
    actionContext.setActionForward(target);
    I hope this helps anyone looking to implement something similar. It also illustrates the "preferred" way of executing a client method and working with the result.

  • How to call application module from ServletContextListener

    Hi,
    I've got an application that requires authenticated users. However, before the application starts I'd like to do some DB initialization.
    So I created a ServletContextListener and in contextInitialized method I try to createRootApplicationModule.
    Due to authentication / authorization requirements, createRootApplicationModule fails with:
    ov 12, 2008 12:09:33 AM oracle.adf.share.security.authentication.JAASAuthenticationService doLogin
    INFO: LoginContext.login...
    javax.security.auth.login.LoginException: Invalid null input: name
         at javax.security.auth.login.LoginContext.init(LoginContext.java:229)
         at javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
         at javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
         at oracle.adf.share.security.authentication.JAASAuthenticationService.doLogin(JAASAuthenticationService.java:102)
         at oracle.adf.share.security.authentication.JAASAuthenticationService.login(JAASAuthenticationService.java:89)
         at oracle.adf.share.security.authentication.JAASAuthenticationService.login(JAASAuthenticationService.java:71)
         at oracle.jbo.common.UserAznUtil.authenticate(UserAznUtil.java:62)
         at oracle.jbo.common.UserAznUtil.authenticateUser(UserAznUtil.java:29)
         at oracle.jbo.server.ApplicationModuleImpl.prepareSession(ApplicationModuleImpl.java:6387)
         at oracle.jbo.server.ApplicationModuleImpl.prepareSession(ApplicationModuleImpl.java:6356)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:171)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8377)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4364)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2421)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2207)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3086)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1395)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1363)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1335)
    Can I somehow explicitly login a valid user or exclude the specific application module from authorization?
    Regards
    J

    Hi,
    no, the function is not related to user session. It's actually data synchronization between two systems.
    We'd prefere to keep it in middle tier, through web services on one side and AM on the other. This way we are platform / RDBMS independent.
    I could use a fake system user, eg. "sync" with password "sysnc", but how do I "log on" such user in my EJB code? If I could somehow access AM login context and call login with username and password...?
    Edit:
    it also puzzles me that it's possible to have a page within the aplication that allows anonymous access. The only difference in security context seem to be _isHttp property. getUserPrincipaly returns JpsAnonymousUserImpl in both cases, IsAuthenticated() is false in both cases...
    Edited by: Jernej Kase on Nov 13, 2008 8:57 PM

  • How to separate application module instance per user session?

    Hi.
    How do you separate application module instances per session or per user? I am creating a web application and has created a simple filter that implements Filter.
    Thanks in advance.

    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?

Maybe you are looking for

  • TPM password not found in MBAM database

    There are other threads I have read through and did some troubleshooting, but still I´m stuck with this, how to get TPM password in MBAM database. Another question is, do I really need it? Isn´t recovery key enough? My situation is this: 1. Computers

  • Saving a file in a DB

    Hi all I need to store a file in a MS Access db; I think the best way is to use a BLOB, but I don't find anything regarding how to use in MS, only in Oracle. Anyway, here under is my code: with this code I arrive to store a binary data into a db, but

  • Moving from iPhone 5 to iPhone 6 without laptop

    I'm moving from an iPhone 5 to an iPhone 6 but don't have a laptop. How can I transfer my data? I need my photos, messages, contacts and apps to be transferred. Please help!

  • DW CS4 with PHP/MySQL

    Hi, I have come across some buggy stuff today in CS4 that I have never seen before. Anytime I would filter a recordset  using "URL Parameter" ,Dreamweaver would totaly mess up the recorset. When I go to "Advanced" I see that there is an additional SQ

  • Spontaneous restart

    My new mac mini goes suddenly to a blue screen, and then makes a restart. Console reads 'Job overstayed its welcome. Forcing removal' followed by 'Exited due to exit code 1'. The restart is as quick as it is sudden, and without any warning given. Thi