scope of the components in the atg

Hello world

I just want to know the default scope and recommended scope

(1) droplets of
(2) form - managers

the respective component objects will be destroyed after the scope?

This is a broad question, but the General recommendation for the scope of the core components are (in order of preference):

1. global: for everything that is not by application or other volatile state (reference including the current profile) or references.
2. application: for everything which has application or session reference, but doesn't State which lasts between requests. Note that scope request ATG delay after a redirect of form-Manager (as sort of 'flash extended' to other systems).
3. session: for things which have state that should last through many applications or the length of the session (the profile and your shopping cart, for example). Components of session also allows the cache data by user which is expensive to retrieve or calculate.

You want to try to minimize the session-level components, because they both lead to more use of memory per user and session scope components require additional configuration and thinking to properly manage the session failover.

However, if you request manually fix or components of session in a component extended throughout the world, the chances are good asked or session scope itself (apart from a few special cases).

To FormHandlers, you should probably start with default application scope, because they need usually access to the profile of the user, shopping chart or other data by user.

Droplets, you should probably start with a global scope by default, except if they need a configured at a session or components reference request scope. Alternatively, a drop can stay globalky scope but may require that the appellant passes into the profile (or other) as a required input parameter (a bit more work for the caller, though).

Tags: Oracle Applications

Similar Questions

  • Reference of the component in the atg

    Hi guys

    In atg why field components should not refer to components of lower scope
    This list is possible vice versa

    give me a small example

    964906 wrote:
    Hi guys

    In atg why field components should not refer to components of lower scope
    This list is possible vice versa

    give me a small example

    A component of the global scope should not point to session scope or ask why because the scope session component will be associated with a particular session once the session has expired and then component of session scope is a stupid idea and similarly worn component request will be for a particular request after that will be destroyed. On the other hand the global scope of the components will live until the application runs for every time query/session components refer to it can easily provide kernel.

    It may be useful

  • How to store the query string value in the scope of the session in webcenter spaces?

    Hello

    I want to store the query string value (which is given from URL) in the sessionScope variable. According to the value of sessionScope beacause I went some components inside my taskflow. Can someone help me how to store this value in the scope of the session. I use webcenter spaces for my application development.

    Thank you

    Ashok.

    Please see the article below

    How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1).

  • Behavior of the ATG with "_requestid'."

    I have a ProfileFormHandler to measure, that has a property of the card, which stores all error messages.

    When I submit the form with no entry Manager validates and configuration errorURL as 'https://hostname/profile/login.jsp', the map is filled with error message and error are displayed on the JSP page.

    When I submit the form with an invalid entry Manager, and configuration of errorURL as 'https://hostname/profile/login.jsp?_requestid=7847305', card is filled with errors at class level, but when I tried to access the map in the JSP page, it has no elements.


    What could be the reason

    Hello

    Why don't hard code you an id in the URL of request? It is associated with a request for the URL to the scope of the request (which is where the form scope request manager data is stored). You should leave the ATG code add this automatically as needed; do not try to add it yourself. By hard-coding a value, you risk your application how to associate a field request expired long; This is why there is no info found.

    Thank you.

    --
    Nick Glover
    Oracle Support for the ATG products

  • Change the scope to the server telnet on vista home?

    How can I change the scope for the Telnet Server on the local subnet only in Vista Home Premium?

    I have two photos, it shows what I'm trying to replicate on XP Professional, the other shows my problem that I can not understand how more open port 23 for everyone. By clicking on the "Advanced" tab won't let me change anything either. I am logged as administrator on my own machine, but I have to be able to set up on the computer of someone else. I use my own to learn, since I created my machine as a home for Vista/Windows 7 dual pro. BTW, the icon of autocratic updates is because I did not start VIsta in some time.

    http://www.Flickr.com/photos/10736018@N05/sets/72157629201945937/

    Basically, I want to limit the scope for applications of telnet entering 192.168.1.0/24 subnet only IP addresses. Any other IP address should be removed by the firewall.  I can't find a way to change things by using the built-in options. I disable the integrated thing and try to make my own? Outgoing requests to telnet on port 23 must be unrestricted.

    I think he should focus on inbound and outbound rules rather than firewall traffic rules. There is a tab on the properties.

  • Scope of the rule

    Hi all

    I'm new to Foglight and I would take aid from communities below:

    While the scope of the rule, I followed the steps mentioned in the KB 40891 article that says

    "Amend the beginning of the line so that it contains the 'WHERE IN' statement.
    Due to the PR73395 5.2.2 bug you need to replace the beginning & ending opening and closing parentheses with braces.
    Delete the individual uniqueID = for each hostname identifier and just let delimited by commas and remove the opening and closing brackets that wrap each host ID.  ' Only the beginning & ending braces are needed for your compound 'in' declaration '.

    I would like to know if we need to follow this now too because I don't have error when I did a "check of the query" without using the statement WHEREIN.

    Kind regards

    Roshan

    Thank you Roshan-

    So the next question is: your custom rule works? Are you led alarm against the object extended as

    can you wait? If yes then I think you're ok.

    Robert

  • Need a few more details on the Options field, scope of the attribute, 'Global' vs 'form' when defining tags

    OK, I admit I am confused... I solved my problem but I do not understand the solution.

    I have a form that has a header that is reported as"overflow" and NO overflow and the multiplier of overflow is set to 0.  The trigger is manual and use a search mask counter instance flag and 0.  The header is repeated at the top of each page, everything as I want it, but the header tags (IE POLITICAL. NUMBER) are printed on the first occurrence of the header section and the second and the following tags is white/not filled.

    If I change the section that is used for the header and define the scope of the POLICY. Tag NUMBER 'form', it works correctly and prints the value of POLICY. NUMBER on each occurrence of the header.  If I set the scope of the POLICY. Tag NUMBER on 'GLOBAL' of POLITICS. Tag NUMBER is entered on the first occurrence (page 1) and white on all events (page 2, 3...) It makes no sense for me?

    My POLICY. NUMBER tag on the section uses the XDB, multiplier of overflow rule is set to 0 and overflow is the default.

    Can someone explain to me how it works?  The impression that the GLOBAL setting should fill all occurrences of the tag POLICY. NUMBER of all forms together.  Would have been logical for me if I changed it the chapter to the FORM but not global to FORM.

    Thanks in advance for helping me understand how it works!

    Documentation... I'd be surprised if this is not documented somewhere. It is perhaps not as important as it should be. As a guess, I would first look at the description of the PaginateAndPropagate rule or any place that talks about the paging / batch (Gendata) execution of overflow. If it is not described as a note somewhere in the DMStudio of the field properties, then it is a logical place where is should be. The problem is that this behavior is different in the lots it is for data entry where the global spread is managed dynamically, so it is noteworthy.

  • Tables on the fly in the ATG

    Hello

    I want to know if you can edit or create tables on the fly on GTA?

    For example, newspapers accuse missing table in a repository, and then we create the table, but the server only "sees" the table created without rebooting.

    Nunes, do not need to restart, the ATG must already recognize the table after creation.

  • How can I set the scope of the attributes are incompatible error in Windows 8 pro?

    How can I set the scope of the attributes are incompatible error in Windows 8 pro?

    Whenever I try to run a setup.exe file, it gives me this error. What can I do to fix this?
    Help, please!

    WOAH ARE RESISTING NOT EVERYONE!

    THERE IS A MUCH EASIER WAY TO DO THIS!
    Well, I looked for a solution on google (Yes google) for 20 minutes and found four sites that had a bajillion ways to solve this problem.
    Dang, I was wrong.  So, when I dropped, I searched it on youtube, and here's what I got it is frighteningly SIMPLE!
    These are the? indications that I give to you people of the video (easier to look at):
    1 right-click the volume in the taskbar icon, and select sounds
    2. scroll down about 3/4 on the events program: the list and select the option that says Windows user account control
    3. change the sounds: option ( no), and then click OK
    YOU ARE FINISHED NOW, AND THE PROBLEM IS SOLVED... I have no idea how it works, but it doesn't... I AM IN AWE IN FRONT OF
  • Importance of the ATG, staging site, DS configuration as well as an excerpt

    Am a newbie to ATG. You have a question. Please read my understanding below and find my questions at the end correct me if my understanding is wrong as well.

    A typical active ATG staging will look like below (base level) according to my understanding so far in learning of the ATG.

    Asset Management Server - stores / manages the internal users (users BCC/CA/Merchandising/ACC), goods trade versioning & other repositories versioned

    Staging server - elements not versioned/no versioned trade and other repositories

    Production server - items not versioned/no versioned of trade & other repositories and users external stores/gΦre (customer)-"core schema.

    In this regard, external (customers) profiles are stored only in the production site.

    As the staging site is basically called replica of the production site, should the Store (customer facing) application that will be deployed to staging server as well? If so, how it will point production database schema?

    With this hand, I've also heard "preview feature/server? This is not staged? What is the difference?

    Your interpretation is correct.

    In the intermediate server ear request even the production is deployed. There will be a replica of the kernel, switcha/switchb as in production patterns.

    The preview server is identical to another instance of the BCC server, but it must not have little of the BCC module running.

    You can preview with - to the same BCC server or create a separate instance as BCC server to preview.

    Peace

    Shaik

  • Is it possible to ignore the duplicate in the ATG request?

    If a user clicks twice or more than that of a button who invoke a formhandler submit action. Is there a way we can ignore duplicate of the user click applications?

    Hi Jitendra,

    To prevent duplicate on the sending of a form applications, you can use the RepeatingRequestMonitor, which is a very simple on the ATG box component, but quite effective.

    To use this component, you must create an object of names like RepeatingRequestMonitor and he's a poseur of getter in your form Manager.

    The syntax is as below: -.

    If (RepeatingRequestMonitor.isUniqueRequestEntry ("YourFormHandler.handleSubmit")) {}

    try {}

    proceed with the execution of the method feature

    }

    {Finally

    When the functionality of performance, remove this entry of the application

    RepeatingRequestMonitor.removeRequestEntry ("YourFormHandler.handleSubmit");

    }

    } else {}

    cause, perhaps create DropletFormException and return

    }

    Let me know for any query.

    Kind regards

    Prateek Gupta

  • How to increase the value of prcesion in the ATG

    Hi all

    Is there some way I can increase the value of accuracy in the ATG, I have items with prices at 0.00 X format. But ATG round internally these prices up to 2 digits after the decimal. Is there a way I can expand this limit to 3 or 4 digits.

    Thank you

    Jitendra

    To increase accuracy, you can change the roundingDecimalPlaces property in/atg/commerce/pricing/PricingTools.

    Hope this helps

    Angelique

  • The ATG installation error

    Hi Experts

    I get an error during the installation of ATG. I downloaded 9.4 ATG and try to install. "When he goes to the part selection appserver, I chose jboss, it is giving error" invalid jboss home directory. I gave jboss home as - C:\jboss\jboss-eap-5.1\jboss-as. I downloaded jboss6.1 and 7 and also used these directories, it gives the same error. Please advice me what do.i also used ATG 10.2 and 11 of the ATG. I got hit in the same step.

    Yes, you must use JBoss installation zip and unzip it. Avoid using the JBoss with native installer. For ATG 9.4, JBoss directory would be something like C:\jboss-eap-4.3\jboss-as. Similarly for ATG 11 you will need to use the path to jboss - as under JBoss EAP 6.0.1. Also make sure that you are using compatible JDK and your JAVA_HOME is pointing to the correct path of JDK and it contains no spaces. For example, if you have JDK directories present in "Program Files" then use as: C:\Progra~1\Java\jdk1.6.0_45\bin\java. Hope I help.

  • Add vNIC PortGroup scope with the REST API security group

    I created a security group within the reach of a PortGroup via the REST API. Now, I'm trying to add a vNIC, also via the REST API.

    To help illustrate, I have a JMTest1 VM with 1 vNIC connected to the PortGroup which is the scope of the security group. When I change this group the first item in the list that could be added to the security group is the first (and only) JMTest1 vNIC.

    AddvNICToSecurityGroup.PNG

    To add it via the REST API, I need to provide the following:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/ < member-moref >

    for example I need to understand what the < member-moref > for the vNIC to JMTest1 and this is what I have a problem with.

    If I add the vNIC through the user interface and then interrogate the security group it gives me below the answer:

    < securitygroup >

    < objectIdobjectId > securitygroup-xx < / objectId >

    < type >

    < typeName > SecurityGroup < / typeName >

    < / type >

    < name > JMTest7 < / name >

    < description / >

    < revision > 9 < / revision >

    < objectTypeName > SecurityGroup < / objectTypeName >

    < scope >

    < id > dvportgroup-xxxxx / < ID >

    < objectTypeName > DistributedVirtualPortgroup < / objectTypeName >

    < name > dv-xxxxx < / name >

    < / scope >

    < extendedAttributes / >

    < inheritanceAllowed > false < / inheritanceAllowed >

    < member >

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    < type >

    Vnic < typeName > < / typeName >

    < / type >

    < name > JMTest1 - NIC 1 < / name >

    < revision > 6 < / revision >

    < objectTypeName > Vnic < / objectTypeName >

    < scope >

    < id > vm-xxxxx / < ID >

    < objectTypeName > VirtualMachine < / objectTypeName >

    < name > JMTest1 < / name >

    < / scope >

    < extendedAttributes / >

    < / member >

    < / securitygroup >

    It seems that the < member-moref > for the JMTest1 vNIC is < objectId > 500758f6-b97b - a 7, 79 - 0c 04 - 996f53edf3f0.000 < / objectId >

    If I run now:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/500758f6-b97b-7a79-0c04-996f53edf3f0.000

    then the vNIC is successfully added to the security group. (yay!) So I am now left with the task of how to get

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    of a vNIC?

    I have looked at the object in the Mob vCenter and via PowerCLI, but cannot see how to derive from it.

    Anyone know the answer to that?

    The uuid vnic is created by concatenating the vm instanceUuid + '. ' + the last three digits of the vnic device key.  (The vnic is located in the area of the config.hardware.device of the virtual machine and the key will be to shape 4xxx, where xxx represents the 3 numbers you need).

  • Automation of unit tests for the development of the ATG

    Hello
    I'm trying to set up unit tests automated to ATG. Is there anyone who has had success with this? I searched the whole forum and there is no indication in this sense. Is there anyone doing TDD for ATG?

    I've tried the ATG dust, but it is not useful and has many gaps. Anyone succeeded with other frameworks such as Mockito, needle, EasyMock etc. ? Any help is appreciated.

    It will be interesting to know what the ATG developers use for unit tests.

    Thank you.

    You can try Mockito.

    Setup
    1 initialize the component to be tested (Formhandler/repository/droplet etc.) and possible data (form entries etc.).
    2 mock, the calls of the method required when using method in mockito.

    Test
    1. write all possible test methods.
    2 when use, check the methods in Mockito for testing your methods.
    3. you can also use assertions to test the results (Ex: form errors)

Maybe you are looking for