Scope of components in atg

hi everyone,
i just want to know the default scope and the recommended scope of
1) droplets
2) form-handlers
will the objects of the respective component be destroyed after the scope?

This is a broad question, but the general recommendation for scope of Nucleus components are (in order of preference):
1. Global: for everything that doesn't have per-request or per-session (including reference to the current Profile) state or references.
2. Request: for everything that has request or session references, but doesn't need state that lasts between requests. Note that ATG request scope does carry over after a form-handler redirect (kind of like "flash scope" in some other systems).
3. Session: for things that have state that needs to last across multiple requests or the entire length of the session (profile and shopping cart, for example). Session components can also be used to cache per-user data that is expensive to fetch or calculate.
You want to try to minimize session-scoped components, since they both lead to more per-user session memory usage, and session scoped components require extra configuration and thought to properly handle session fail-over.
However, if you are manually resolving request or session components in a globally scoped component, chances are good it should be request or session scoped itself (outside of a few special cases).
For FormHandlers, you should probably start out with request scope as the default, since they typically need access to the user's profile, shopping chart, or other per-user data.
For Droplets, you should probably start out with global scope as the default, unless they need a configured reference to a session or request-scoped components. Alternatively, a droplet can remain globalky scoped but can require that the caller pass in the profile (or whatever) as a required input parameter (a little more work for the caller, though).

Similar Messages

  • What are Session Components in ATG OOTB

    Hi,
    What are the Session components in ATG OOTB, as far i know Profile and ShoppingCart are the Session components.
    Please mention if any other Session components are there. we need to create the same using other framework.

    There are a lot of session scoped components. Here are just the ones found in the DAS,DPS,DSS and DCS modules
    DAS
    ===
    ./config/config/atg/dynamo/admin/context/SessionAdminContextHolder.properties:$scope=session
    ./config/config/atg/dynamo/admin/CreateWebServiceProperties.properties:$scope=session
    ./config/config/atg/dynamo/security/FormLoginSession.properties:$scope=session
    ./config/config/atg/dynamo/security/IdentityManager.properties:$scope=session
    ./config/config/atg/dynamo/security/User.properties:$scope=session
    ./config/config/atg/dynamo/security/UserFailService.properties:$scope=session
    ./config/config/atg/dynamo/service/fluoroscope/listener/SessionCachingListener.properties:$scope=session
    ./config/config/atg/dynamo/service/fluoroscope/SensorSessionData.properties:$scope=session
    ./config/config/atg/dynamo/service/transfer/xls/AssetXLSFileImportOperation.properties:$scope=session
    ./config/config/atg/dynamo/servlet/RequestLocale.properties:$scope=session
    ./config/config/atg/dynamo/servlet/sessiontracking/GlobalSessionEnumPropertyValues.properties:$scope=session
    ./config/config/atg/dynamo/servlet/sessiontracking/SessionSaver.properties:$scope=session
    ./config/config/atg/dynamo/servlet/windowscope/WindowScopeContextStorage.properties:$scope=session
    ./config/config/atg/multisite/RealmSessionTracker.properties:$scope=session
    ./config/config/atg/multisite/SiteSessionManager.properties:$scope=session
    ./config/config/atg/repository/SessionPropertyDescriptorData.properties:$scope=session
    ./config/config/atg/servlet/http/CookieBuffer.properties:$scope=session
    ./config/config/SessionConfirmationNumberHolder.properties:$scope=session
    DPS
    ===
    ./config/targeting/atg/devtools/RepositoryAgent.properties:$scope=session
    ./config/targeting/atg/devtools/SensorAgent.properties:$scope=session
    ./config/targeting/atg/devtools/TargeterAgent.properties:$scope=session
    ./config/targeting/atg/targeting/ConflictFilter.properties:$scope=session
    ./config/userprofiling/atg/devtools/UserDirectoryAgent.properties:$scope=session
    ./config/userprofiling/atg/dynamo/droplet/PasswordExpiresSoon.properties:$scope=session
    ./config/userprofiling/atg/dynamo/security/IdentityManager.properties:$scope=session
    ./config/userprofiling/atg/reporting/datacollection/userprofiling/SiteVisitRequest.properties:$scope=session
    ./config/userprofiling/atg/userprofiling/Profile.properties:$scope=session
    ./config/userprofiling/atg/userprofiling/ProfileFailService.properties:$scope=session
    ./config/userprofiling/atg/userprofiling/sso/Passport.properties:$scope=session
    DSS
    ===
    ./config/atg/devtools/ScenarioAgent.properties:$scope=session
    DCS
    ===
    ./config/atg/commerce/catalog/AdvProductSearch.properties:$scope=session
    ./config/atg/commerce/catalog/CatalogNavHistory.properties:$scope=session
    ./config/atg/commerce/catalog/CatalogSearch.properties:$scope=session
    ./config/atg/commerce/catalog/CategorySearch.properties:$scope=session
    ./config/atg/commerce/catalog/CompareSkusFormHandler.properties:$scope=session
    ./config/atg/commerce/catalog/comparison/ProductList.properties:$scope=session
    ./config/atg/commerce/catalog/comparison/TableInfo.properties:$scope=session
    ./config/atg/commerce/catalog/ProductSearch.properties:$scope=session
    ./config/atg/commerce/catalog/ProductTextSearch.properties:$scope=session
    ./config/atg/commerce/gifts/GiftlistFormHandler.properties:$scope=session
    ./config/atg/commerce/gifts/GiftlistSearch.properties:$scope=session
    ./config/atg/commerce/order/purchase/CostCenterContainerService.properties:$scope=session
    ./config/atg/commerce/order/purchase/PaymentGroupContainerService.properties:$scope=session
    ./config/atg/commerce/order/purchase/PurchaseProcessConfiguration.properties:$scope=session
    ./config/atg/commerce/order/purchase/ShippingGroupContainerService.properties:$scope=session
    ./config/atg/commerce/order/scheduled/ScheduledOrderFormHandler.properties:$scope=session
    ./config/atg/commerce/order/ShoppingCartModifierConfiguration.properties:$scope=session
    ./config/atg/commerce/pricing/CleanBeforePricingSlot.properties:$scope=session
    ./config/atg/commerce/pricing/NoCleanBeforePricingSlot.properties:$scope=session
    ./config/atg/commerce/pricing/UserPricingModels.properties:$scope=session
    ./config/atg/commerce/promotion/PromotionAnalysisModelHolder.properties:$scope=session
    ./config/atg/commerce/ShoppingCart.properties:$scope=session
    ./config/atg/commerce/util/RepeatingRequestMonitor.properties:$scope=session
    ./config/atg/devtools/CommerceAgent.properties:$scope=session
    ./config/atg/registry/Slots/RelatedItemsOfCart.properties:$scope=session
    ./config/atg/userprofiling/ProfileFailService.properties:$scope=session

  • Scope of component in atg

    HI
    how to find out scope of perticular component in atg

    how to find out scope of perticular component in atgAnother option is you can go upto ATG root directry and search ComponentName.properties file. Open file and check $scope=request/session/global. Default scope is global.
    -RMishra

  • What does it mean by $scope=global in ATG..?

    According to the documentation,
    Global: Component is shared among all users.
    Session: Separate instances of the component are provided to each user.
    Is that means, for global component, there is only one instance for the whole nucleus system..
    If this is true, how does it valid for components like ‘/atg/dynamo/transaction/TransactionManager’ and most of the droplets..?
    Because those components are used by several users at a single moment..
    Edited:
    I understood the ‘TransactionManager’ behavior. According to the definition there should be single transaction manager, and he should keep transaction objects per each transaction. But my question is still valid for droplets like, foreach, switch, etc (most of them are globally scoped) If there is only one instance of corresponding class for the whole nucleus system, isn't it having bad effects on performance?
    Message was edited by: JanakaPriyadarshana

    Hi,
    The term 'scope' refers to component and not the class.
    So, global components will be instantiated only once (load the class file -> create the component -> initialize the values from the properties file).
    Droplets are meant to be used across the applications and so no need to instantiate the components more than one time. Also they serve the same purpose even if we do so.
    Hope this helps.
    Keep posting the questions.
    Thanks,
    Gopinath Ramasamy

  • Using Endeca SEO in ATG

    Hi All,
    Does anyone worked on using Endeca SEO in ATG? I have tried it and works with base setup but facing some issue with Nucleus namespace while configuring misc-path.
    For Testing purpose I have configured SEO components in ATG DAF framework.
    Example:
    ATG\ATG10.1.1\DAF\Endeca\Assembler\config\atg\endeca\url\basic\SeoUrlFormatter.properties
    ATG\ATG10.1.1\DAF\Endeca\Assembler\config\atg\endeca\url\basic\StringFormatterChain.properties
    ATG\ATG10.1.1\DAF\Endeca\Assembler\config\atg\endeca\url\basic\SeoNavStateFormatter.properties
    ATG\ATG10.1.1\DAF\Endeca\Assembler\config\atg\endeca\url\basic\SeoDimLocationFormatter.properties
    ATG\ATG10.1.1\DAF\Endeca\Assembler\config\atg\endeca\url\basic\BasicUrlFormatter.properties
    ATG\ATG10.1.1\DAF\Endeca\Assembler\config\atg\endeca\url\basic\BasicQueryBuilder.properties
    etc...
    ERROR MESSAGE From the JBOSS Log:
    09:46:05,353 ERROR [nucleusNamespace.] Unable to set configured property "/atg/endeca/url/basic/SeoDimLocationFormatter.key" atg.nucleus.ConfigurationException: Unable to resolve component /atg/endeca/url/basic/product.category
    SeoDimLocationFormatter.properties
    $class=com.endeca.soleng.urlformatter.seo.SeoDimLocationFormatter
    $scope=global
    key=product.category  -- This is causing the Issue...This is getting treated as another component reference but SeoDimLocationFormatter has key as Object type
    appendRoot=true
    appendAncestors=true
    appendDescriptor=true
    separator=-
    rootStringFormatter=StringFormatterChain
    Does anyone has samples on misc-path definition in ATG?
    Help will be much appreciated.
    Thanks & Regards,
    Ravi

    Just weighing in here. To create site URLs, the current revision of the Endeca Sitemap Generator (v2.1.1) uses Spring configuration. Specifically, the Endeca Sitemap Generator does not know how to consume UrlFormatter configuration specified using Nucleus. As such, if you configure your UrlFormatter (and associated classes) with Nucleus, then you will need to manage two separate versions of your UrlFormatter configuration: a Nucleus version for your application and a Spring version for the Sitemap Generator.
    Without getting into any specifics, the purpose of the Endeca Sitemap Generator is to create sitemaps within a multi-dimensional navigation space. This is a unique problem (and big SEO opportunity) for faceted search sites. This is not something that you'll get with any generic sitemap generation utility.
    With the above in mind, my understanding is that the forthcoming version of CRS will use the NucleusPublisher mechanism to resolve UrlFormatter components that are managed within a Spring context. While not ideal in the long-term, this does allow you to manage a single UrlFormatter configuration, which can be shared between your application and the Sitemap Generator.
    For reference, here's the doc link for the NucleusPublisher:
    http://docs.oracle.com/cd/E26180_01/Platform.94/ATGProgGuide/html/s0212nucleuspublisher01.html
    Best regards,
    Chip

  • ATG ENVIRONMENT SETUP ISSUE

    hi everyone,
    my system configuration is low as i have only 2gb ram. i have successfully installed ATG 10.0.3. my problem is when i m installing Oracle 11g its too slow.i really find very hard to work. can anyone help in installing and configuring MYSQL. especially configuration part of MYSQL.

    1) If u beginner:
         Importing DAS,DPS,DCS,DSS would let u start ATG application and do some minimal things.
    Mysql prompt:
         CREATE database shop_production;   
         CREATE USER 'user_production'@'localhost' IDENTIFIED BY 'default';
         grant all on *.* to 'user_production'@'localhost';
         use shop_prod;
         source {ATG_HOME}\DAS\sql\install\mysql\das_ddl.sql
         source {ATG_HOME}\DPS\sql\install\mysql\dps_ddl.sql
         source {ATG_HOME}\DSS\sql\install\mysql\dss_ddl.sql
         source {ATG_HOME}\DCS\sql\install\mysql\dcs_ddl.sql
         FYI-chnage {ATG_HOME} to ATG directory.
    2) If u are aware of CIM:(even if u r not, i would recommend to get familiarize with it and use it)
    Use CIM to configure initial db setups,It's step by step guide.
    My recommendation would be use CIM to do database configurations only and do assemble ear and deployment manually.
    =======CIM MAIN MENU============================================================
    enter [h]elp, [q]uit to exit
    Choose the task you want to perform:
      [R]  Set the Administrator Password - Done (pending database import)
    *[P]  Product Selection
      [A]  Select Application Server
      [C]  Custom CIM Plugin Launcher
    > A
    -------APPLICATION SERVER SELECTION---------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      Choose Application Server: (* = Currently selected )
    *[1]  JBoss Application Server
      [2]  Oracle Weblogic Online (Either Production or Developer Mode)
      [3]  IBM Websphere Application Server
      [4]  Apache Tomcat (Development Only)
      [5]  Raw Ear Output Mode
    Select one > 5
    -------TARGET PATH FOR EAR FILES------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Enter target path for runAssembler output
       Enter path  [[D:/Program_Files/ATG/ATG10.2/home/../home/cimEars/]] >
    =======CIM MAIN MENU============================================================
    enter [h]elp, [q]uit to exit
    Choose the task you want to perform:
      [R]  Set the Administrator Password - Done (pending database import)
    *[P]  Product Selection
      [A]  Select Application Server - Done (Raw)
      [C]  Custom CIM Plugin Launcher
    >
    -------ANALYZING PRODUCT DIRECTORIES--------------------------------------------
    Please wait as CIM analyzes your product folders. . . . . .
    Analysis complete: 9 seconds
    -------PRODUCT SELECTION--------------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Select product you wish to configure by entering the corresponding item number.
      (Searching for products... done.)
      Choose one of the following options: (* = Currently selected )
      [1]  ATG Platform :
            Includes, optionally, data warehouse components
      [2]  ATG Site Administration :
            Includes ATG Platform and Content Administration
      [3]  ATG-Endeca Integration :
            Includes ATG Platform. Select this option when Endeca is used. Do not
            select this if you are using ATG Search
      [4]  Oracle ATG Web Commerce :
            Includes the ATG Platform and ATG Content Administration. Optional:
            data warehouse components, Preview, and Oracle ATG Web Commerce
            Merchandising
      [5]  ATG Content Administration :
            Includes ATG Platform.  Optional: Preview
      [6]  ATG REST :
            RESTful Web Services
      [D]  Done
    Select one or more > 4 5
      Choose one of the following options: (* = Currently selected )
      [1]  ATG Platform :
            Includes, optionally, data warehouse components
      [2]  ATG Site Administration :
            Includes ATG Platform and Content Administration
      [3]  ATG-Endeca Integration :
            Includes ATG Platform. Select this option when Endeca is used. Do not
            select this if you are using ATG Search
      *[4]  Oracle ATG Web Commerce :
            Includes the ATG Platform and ATG Content Administration. Optional:
            data warehouse components, Preview, and Oracle ATG Web Commerce
            Merchandising
      *[5]  ATG Content Administration :
            Includes ATG Platform.  Optional: Preview
      [6]  ATG REST :
            RESTful Web Services
      [D]  Done
    Select one or more > d
    -------CHOOSE COMMERCE ADDONS :-------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      Choose Commerce AddOns :
      [1]  Reporting
      [2]  Staging Server
      [3]  Dedicated Lock Servers
      [4]  Preview Server
      [5]  Merchandising UI
      [6]  Abandoned Order Services
      [D]  Done
    Select zero or more > 5
      Choose Commerce AddOns :
      [1]  Reporting
      [2]  Staging Server
      [3]  Dedicated Lock Servers
      [4]  Preview Server
    *[5]  Merchandising UI
      [6]  Abandoned Order Services
      [D]  Done
    Select zero or more > d
    -------INCLUDE DEMO APPLICATION:------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      Include Demo Application:
      [1]  Quincy Funds Demo
      [2]  MotorPriseJSP
      [D]  Done
    Select zero or one > d
    -------CHOOSE SWITCHING OR NON-SWITCHING DATASOURCE :---------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      Choose switching or non-switching datasource :
      [1]  Non-Switching Datasource
      [2]  Switching Datasource
    Select one > 1
    -------PUBLISHING MANAGEMENT GROUP----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    The selected product requires the Publishing Management add on, which has been
    automatically included.
    -------CHOOSE NON-SWITCHING PUBLISHING DATASOURCE :-----------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    The selected product requires the Publishing Non-Switching Datasource add on,
    which has been automatically included.
    -------SITEADMIN ADDONS :-------------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    The selected product requires the Add commerce data to SiteAdmin add on, which
    has been automatically included.
    -------PRODUCT MODULE CALCULATION-----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Current Product Selection:
      Oracle ATG Web Commerce
      ATG Content Administration
      ATG Site Administration
    Selected AddOns:
      Merchandising UI
      Non-Switching Datasource
      Publishing Management
      Publishing Non-Switching Datasource
      Add commerce data to SiteAdmin
    Server Instance Types:
      ATG Commerce Production Server
         DafEar.Admin DPS DSS DCS.PublishingAgent PublishingAgent
      ATG Commerce Publishing Server
         DCS-UI.Versioned BIZUI PubPortlet DafEar.Admin DCS-UI.SiteAdmin.Versioned
    SiteAdmin.Versioned DCS.Versioned
    -------VALIDATING INSTALLATION--------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    CIM is validating your Product Selection against your current installation.
      >> All required modules exist - passed
    =======CIM MAIN MENU============================================================
    enter [h]elp, [q]uit to exit
    Choose the task you want to perform:
    *[1]  Database Configuration
      [2]  Server Instance Configuration
      [3]  Application Assembly & Deployment
      [R]  Set the Administrator Password - Done (pending database import)
      [P]  Product Selection - Done (Oracle ATG Web Commerce & ATG Content
    Administration & ATG Site Administration)
      [A]  Select Application Server - Done (Raw)
      [C]  Custom CIM Plugin Launcher
    >
    -------CALCULATE DATASOURCE DEPENDENCIES----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      Calculating Datasource Dependencies. View log file at D:/Program_Files/ATG/
    ATG10.2/home/../CIM/ log/cim.log
      |. . |
      |. . |
    -------SELECT A DATASOURCE TO CONFIGURE-----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    *[P]  Publishing
      [C]  Production Core
      [D]  Done
    >
    -------CONFIGURE DATASOURCE PUBLISHING------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    *[C]  Connection Details
      [O]  Configure Another Datasource
    >
    Publishing
    -------ENTER CONNECTION DETAILS-------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Publishing
      Select Database Type
      [1]  Oracle Thin
      [2]  MS SQL
      [3]  iNet MS SQL
      [4]  DB2
      [5]  My SQL (Development Only)
    Select one > 5
       Enter User Name > user_publishing
       Enter Password > *******
       Re-enter Password > *******
       Enter Host Name > shop_publishing
       Enter Port Number [[3306]] >
       Enter Database Name > m
    =======CIM MAIN MENU============================================================
    enter [h]elp, [q]uit to exit
    Choose the task you want to perform:
    *[1]  Database Configuration
      [2]  Server Instance Configuration
      [3]  Application Assembly & Deployment
      [R]  Set the Administrator Password - Done (pending database import)
      [P]  Product Selection - Done (Oracle ATG Web Commerce & ATG Content
    Administration & ATG Site Administration)
      [A]  Select Application Server - Done (Raw)
      [C]  Custom CIM Plugin Launcher
    >
    -------CALCULATE DATASOURCE DEPENDENCIES----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      Calculating Datasource Dependencies. View log file at D:/Program_Files/ATG/
    ATG10.2/home/../CIM/ log/cim.log
      |. . |
      |. . |
    -------SELECT A DATASOURCE TO CONFIGURE-----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    *[P]  Publishing
      [C]  Production Core
      [D]  Done
    >
    -------CONFIGURE DATASOURCE PUBLISHING------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    *[C]  Connection Details
      [O]  Configure Another Datasource
    >
    Publishing
    -------ENTER CONNECTION DETAILS-------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Publishing
      Select Database Type
      [1]  Oracle Thin
      [2]  MS SQL
      [3]  iNet MS SQL
      [4]  DB2
      [5]  My SQL (Development Only)
    Select one > 5
       Enter User Name > user_publishing
       Enter Password > *******
       Re-enter Password > *******
       Enter Host Name > localhost
       Enter Port Number [[3306]] >
       Enter Database Name > shop_publishing
       Enter Database URL [[jdbc:mysql://localhost:3306/shop_publishing]]
    >
       Enter Driver Path > D:\Program_Files\Jars\mysql-connector-java-5.1.22\mysql-connector-java-5.1.22-bin.jar
       Enter JNDI Name [[ATGPublishingDS]] >
    -------CONFIGURE DATASOURCE PUBLISHING------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [C]  Connection Details - Done
    *[T]  Test Connection
      [S]  Create Schema
      [I]  Import Initial Data
      [D]  Drop Schema
      [O]  Configure Another Datasource
    >
    -------TEST DATASOURCE CONNECTION-----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Publishing
      >> Connection to database user_publishing @ jdbc:mysql://localhost:3306/
    shop_publishing  is successful
    -------CONFIGURE DATASOURCE PUBLISHING------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [C]  Connection Details - Done
      [T]  Test Connection - Done
    *[S]  Create Schema
      [I]  Import Initial Data
      [D]  Drop Schema
      [O]  Configure Another Datasource
    >
    -------CREATE SCHEMA------------------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Publishing
    *[C]  Create Schema
      [S]  Skip
    >
      Schema Creation Beginning. View log file at D:/Program_Files/ATG/ATG10.2/
    home/../CIM/ log/cim.log
      |. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
      |. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
      >> Schema creation completed successfully
    -------CONFIGURE DATASOURCE PUBLISHING------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [C]  Connection Details - Done
      [T]  Test Connection - Done
      [S]  Create Schema - Done
    *[I]  Import Initial Data
      [D]  Drop Schema
      [O]  Configure Another Datasource
    >
    -------IMPORT DATA--------------------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Publishing
    *[I]  Import Data
      [S]  Skip
    >
       Define the password for the Merchandising User (login: merchandising). Password must be at least 8 characters in length. Password must contain one of the following characters: 1234567890. Password must contain both upper-case and lower-case letters. > ********
       Re-enter Password > ********
       Define the password for the Publishing Admin User (login: admin). Password must be at least 8 characters in length. Password must contain one of the following characters: 1234567890. Password must contain both upper-case and lower-case letters. > ********
       Re-enter Password > ********
    -------DATA IMPORT PUBLISHING---------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Combining template tasks...Success
    Importing ( 1 of 5 ) /CIM/tmp/import/management-import1.xml:
    /DAS/install/data/dynAdminRepo.xml to /atg/dynamo/security/AdminSqlRepository
    /DPS/InternalUsers/install/data/das-security.xml to /atg/userprofiling/
    InternalProfileRepository
    /DPS/InternalUsers/install/data/dcs-security.xml to /atg/userprofiling/
    InternalProfileRepository
    /DPS/InternalUsers/install/data/security.xml to /atg/userprofiling/
    InternalProfileRepository
    /DPS/InternalUsers/install/data/searchadmin-security.xml to /atg/userprofiling/
    InternalProfileRepository
    ...Success
    Importing ( 2 of 5 ) /Publishing/base/install/epub-role-data.xml to /atg/userprofiling/InternalProfileRepository...Success
    Importing ( 3 of 5 ) /Publishing/base/install/epub-file-repository-data.xml to /atg/epub/file/PublishingFileRepository...Success
    Loading ( 4 of 5 ) DSS/atg/registry/data/scenarios/DSS/*.sdl & DSS/atg/
    registry/data/scenarios/recorders/*.sdl...Success
    Importing ( 5 of 5 ) /CIM/tmp/import/management-import2.xml:
    /DCS/install/data/initial-segment-lists.xml to /atg/userprofiling/
    PersonalizationRepository
    /DCS/Versioned/install/data/internal-users-security.xml to /atg/userprofiling/
    InternalProfileRepository
    /WebUI/install/data/profile.xml to /atg/userprofiling/InternalProfileRepository
    /WebUI/install/data/external_profile.xml to /atg/userprofiling/
    ProfileAdapterRepository
    /BIZUI/install/data/portal.xml to /atg/portal/framework/PortalRepository
    /BIZUI/install/data/profile.xml to /atg/userprofiling/InternalProfileRepository
    /BIZUI/install/data/viewmapping.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /BCC/install/data/viewmapping.xml to /atg/web/viewmapping/ViewMappingRepository
    /DPS-UI/AccessControl/install/data/viewmapping.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /DPS-UI/install/data/viewmapping.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /AssetUI/install/data/viewmapping.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /AssetUI/install/data/assetManagerViews.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /SiteAdmin/Versioned/install/data/siteadmin-role-data.xml to /atg/
    userprofiling/InternalProfileRepository
    /SiteAdmin/Versioned/install/data/viewmapping.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /SiteAdmin/Versioned/install/data/templates.xml to /atg/multisite/
    SiteRepository
    /DPS-UI/Versioned/install/data/viewmapping.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /DPS-UI/Versioned/install/data/examples.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /DCS-UI/install/data/viewmapping.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /DCS-UI/install/data/viewmapping_preview.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /DCS-UI/Versioned/install/data/users.xml to /atg/userprofiling/
    InternalProfileRepository
    /DCS-UI/Versioned/install/data/viewmapping.xml to /atg/web/viewmapping/
    ViewMappingRepository
    /DCS-UI/SiteAdmin/Versioned/install/data/viewmapping.xml to /atg/web/
    viewmapping/ViewMappingRepository
    ...Success
    Update administrator password (1 of 1). The administrator password was
    successfully updated in the database.
    All imports completed successfully.
    -------CONFIGURE DATASOURCE PUBLISHING------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [C]  Connection Details - Done
      [T]  Test Connection - Done
      [S]  Create Schema - Done
      [I]  Import Initial Data - Done
      [D]  Drop Schema
    *[O]  Configure Another Datasource
    >
    -------SELECT A DATASOURCE TO CONFIGURE-----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [P]  Publishing - Done
    *[C]  Production Core
      [D]  Done
    >
    -------CONFIGURE DATASOURCE PRODUCTION CORE-------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    *[C]  Connection Details
      [O]  Configure Another Datasource
    >
    -------RE-USE VALUES FROM PREVIOUS DATASOURCE-----------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
      Base on previous database details:
      [1]  user_publishing@jdbc:mysql://localhost:3306/shop_publishing
    *[2]  None/Use Existing
    Select one > 1
    -------ENTER CONNECTION DETAILS-------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
      Select Database Type
      [1]  Oracle Thin
      [2]  MS SQL
      [3]  iNet MS SQL
      [4]  DB2
    *[5]  My SQL (Development Only)
    Select one >
       Enter User Name [[user_publishing]] > user_production
       Enter Password [[*******]] >
       Enter Host Name [[localhost]] >
       Enter Port Number [[3306]] >
       Enter Database Name [[shop_publishing]] > shop_production
       Enter Database URL [[jdbc:mysql://localhost:3306/shop_production]]
    >
       Enter Driver Path [[D:/Program_Files/Jars/mysql-connector-java-5.1.22/mysql-connector-java-5.1.22-bin.jar]] >
       Enter JNDI Name [[ATGProductionDS]] >
    -------CONFIGURE DATASOURCE PRODUCTION CORE-------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [C]  Connection Details - Done
    *[T]  Test Connection
      [S]  Create Schema
      [I]  Import Initial Data
      [D]  Drop Schema
      [O]  Configure Another Datasource
    >
    -------TEST DATASOURCE CONNECTION-----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
      >> Connection to database user_production @ jdbc:mysql://localhost:3306/
    shop_production  is successful
    -------CONFIGURE DATASOURCE PRODUCTION CORE-------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [C]  Connection Details - Done
      [T]  Test Connection - Done
    *[S]  Create Schema
      [I]  Import Initial Data
      [D]  Drop Schema
      [O]  Configure Another Datasource
    >
    -------CREATE SCHEMA------------------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    *[C]  Create Schema
      [S]  Skip
    >
      Schema Creation Beginning. View log file at D:/Program_Files/ATG/ATG10.2/
    home/../CIM/ log/cim.log
      |. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
      |. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
      >> Schema creation completed successfully
    -------CONFIGURE DATASOURCE PRODUCTION CORE-------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [C]  Connection Details - Done
      [T]  Test Connection - Done
      [S]  Create Schema - Done
    *[I]  Import Initial Data
      [D]  Drop Schema
      [O]  Configure Another Datasource
    >
    -------IMPORT DATA--------------------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Production Core
    *[I]  Import Data
      [S]  Skip
    >
    -------DATA IMPORT PRODUCTION CORE----------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Combining template tasks...Success
    Importing ( 1 of 1 ) /CIM/tmp/import/nonswitchingCore-import1.xml:
    /DAS/install/data/dynAdminRepo.xml to /atg/dynamo/security/AdminSqlRepository
    /DCS/install/data/returnData.xml to /atg/commerce/custsvc/CsrRepository
    ...Success
    Update administrator password (1 of 1). The administrator password was
    successfully updated in the database.
    All imports completed successfully.
    -------CONFIGURE DATASOURCE PRODUCTION CORE-------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [C]  Connection Details - Done
      [T]  Test Connection - Done
      [S]  Create Schema - Done
      [I]  Import Initial Data - Done
      [D]  Drop Schema
    *[O]  Configure Another Datasource
    >
    -------SELECT A DATASOURCE TO CONFIGURE-----------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [P]  Publishing - Done
      [C]  Production Core - Done
    *[D]  Done
    > P
    -------CONFIGURE DATASOURCE PUBLISHING------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
      [C]  Connection Details - Done
      [T]  Test Connection - Done
      [S]  Create Schema - Done
      [I]  Import Initial Data - Done
      [D]  Drop Schema
    *[O]  Configure Another Datasource
    > C
    -------RE-USE VALUES FROM PREVIOUS DATASOURCE-----------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Publishing
      Base on previous database details:
      [1]  user_publishing@jdbc:mysql://localhost:3306/shop_publishing
      [2]  user_production@jdbc:mysql://localhost:3306/shop_production
    *[3]  None/Use Existing
    Select one >
    -------ENTER CONNECTION DETAILS-------------------------------------------------
    enter [h]elp, [m]ain menu, [q]uit to exit
    Publishing
      Select Database Type
      [1]  Oracle Thin
      [2]  MS SQL
      [3]  iNet MS SQL
      [4]  DB2
    *[5]  My SQL (Development Only)
    Select one > M
    =======CIM MAIN MENU============================================================
    enter [h]elp, [q]uit to exit
    Choose the task you want to perform:
      [1]  Database Configuration - Done
    *[2]  Server Instance Configuration
      [3]  Application Assembly & Deployment
      [R]  Set the Administrator Password - Done
      [P]  Product Selection - Done (Oracle ATG Web Commerce & ATG Content
    Administration & ATG Site Administration)
      [A]  Select Application Server - Done (Raw)
      [C]  Custom CIM Plugin Launcher
    > 1
    I hope this CIM log is helpful.

  • Component and it's use?

    Hi,
    what's the use of component?
    Thanks

    hi,
    Components in ATG are a public java class with appropriate properties with set/get methods. Additionally a component comes with .properties file that specify the class name and the scope and also any default values. The properties file also contains any dependency injections of other components. This .properties file must be placed under CONFIGPATH of the ATG.
    The name of the component is the full path name of the .properties file under the configpath starting with a “/”. For example, /com/vam/firstbean. CONFIGPATH variable is computed dynamically during startup based on the modules started, their order of startup and based on the entry in the MANIFEST.MF file of every module started.
    Use of components gives following advantages.
    • Code reusability
    • Reduced development time
    • Container independent
    • Entire application behavior can be changed by modifying one/some of the components.
    Note: In ATG, a component have one of the 3 scopes i.e. Global, Session, Request.
    Regards
    shya

  • Session scoped form handler

    hi all,
    what are all the session scoped form handlers in OOTB in atg
    regards
    shya

    What are Session Components in ATG OOTB
    http://www.techanuva.com/session-scoped-components-as-part-of-atg-dps/
    -RMishra
    Edited by: RMishra on Nov 21, 2012 7:26 PM

  • REST Webservices security

    I am trying to set up the REST Webservices module, but I seem to be running into issues with security and authentication. I can get sessions from the client side properly, but I cannot call any methods on components.
    */atg/rest/security/restSecurityConfiguration.xml*
    <programlisting>
      <rest-security>
        <default-acl value="EVERYONE:read,write,execute"/>
          <resource component="/path/to/component/TestComponent" secure="false" requiresSessionConfirmation="false">
            <method name="getTestComponentName" secure="false">
              <acl value="EVERYONE:read,write,execute" />
            </method>
          </resource>
      </rest-security>
    </programlisting>
    TestComponent.java
    public class TestComponent {
      public String getTestComponentName() {
        return this.getClass().getCanonicalName();
    }I have turned on the DEBUG level logging in ACC for the RestSecurityProcessor and this is what I see in my logs when I try to access my TestComponent (which is just testing to see if I have access to methods):
    INFO  [RestSecurityProcessor] DEBUG Received POST request for
    INFO  [RestSecurityProcessor] DEBUG Resource container is valid component. Returning true.
    INFO  [RestSecurityProcessor] DEBUG handlePostRequest: Handling component /path/to/component/TestComponent
    INFO  [RestSecurityProcessor] DEBUG getParentSecurityConfiguration: Looking for wild card ComponentSecurityConfiguration for component /path/to/component/TestComponent
    INFO  [RestSecurityProcessor] DEBUG getParentSecurityConfiguration: Looking for default ComponentSecurityConfiguration
    INFO  [RestSecurityProcessor] DEBUG handlePostRequest: Can't find ComponentSecurityConfiguration for component /path/to/component/TestComponent
    ERROR [RestSecurityServlet] Error code: 401
    Access to the requested resource is not allowed: /path/to/component/TestComponent
    atg.rest.RestException: Access to the requested resource is not allowed: /path/to/component/TestComponent
         at atg.rest.processor.RestSecurityProcessor.handlePostRequest(RestSecurityProcessor.java:315)
         at atg.rest.processor.RestSecurityProcessor.doRESTPost(RestSecurityProcessor.java:208)
         at atg.rest.servlet.RestPipelineServlet.serviceRESTRequest(RestPipelineServlet.java:406)
    *snip*Edited by: Gommy on Apr 8, 2013 6:19 AM - Fix typo in package path

    After finding a default restSecurityConfiguration.xml inside of REST/config.jar:/atg/rest/security/, I located a .dtd ( http://www.atg.com/dtds/rest/restSecurity_1.0.dtd ) to figure out what exactly ATG was expecting for a configuration.
    1. Turns out the <programlisting> tag isn't expected (error in the documentation for our version of ATG, apparently), <rest-security> is the top-level element for this configuration file. This was causing the file to not be parsed at all.
    2. requiresSessionConfirmation does not exist on the resource element.
    The TestComponent and its properties were correct. Just the restSecurityConfiguration.xml was incorrect due to very poor documentation, no full example to see what a correct file should look like, and lack of obvious schemas (i.e., no schemas or links to schemas are provided in any documentation) to validate against.

  • Initial Service script in Endeca Application

    Hi All,
    Agter creating the Endeca Application, there is a step that tells , to run initial-servies.sh, what is the exact use of this is given below, but where can i see these files ?? where is the location??Can you polease tell me the exact use oif this step.
    The initialize_services script creates the Record Store instances for product data,
    dimension values, precedence rules, and schema information with the names below. The Record
    Store instances are prefixed with the application name and language code specified in the
    deployment descriptor file. In this case, the application name is Discover and the language
    code is en:
     Discover_en_schema
     Discover_en_dimvals
     Discover_en_prules
     Discover_en_data

    Hi Bravo,
    Creation of CAS record store instances is done in C:\Endeca\ToolsAndFrameworks\3.1.0\reference\discover-data-pci\control\initialize_rs_feeds.bat which is invoked by initialize_services.bat file. This step is available when you create an Endeca Application using discover-data-pci which is mainly used for Product Catalog Integration using ATG. This step creates four empty record stores (data,dimvals,schema and precedecerules) in CAS.
    If you are using ATG 10.1.1 or above to integrate with Endeca Commerce 3.1.0 or above, there are components in ATG such as DataDocumentSumbitter etc which populate the data into these record stores and then invoke the EndecaScriptsService to trigger the scripts to perform Baseline Update. As part of the baseline update, Forge takes these CAS record stores as input and indexes the data.
    Thanks,
    Shabarinath Kande
    Edited by: shabari on Jan 10, 2013 1:10 AM

  • Restriction on memory scope for UI components binding

    Hello
    I'm using JDeveloper 11g 10.1.1.3
    I found in the Fusion Developer's Guide for Oracle ADF (14 Getting Started with ADF Task Flows) next thing:
    <i>
    Restrict the scope of the managed bean that you reference through a UI component's binding attribute to backingBean or request scope. Instances of UI components cannot be serialized. Objects in scopes other than backingBean and request are expected to be serializable. For this reason, you should not bind UI components to managed beans that have a scope other than backingBean or request. Note that JDeveloper defaults the binding attribute for UI components and region fragments to use the backingBean scope.
    </i>
    By now I often have binded UI components to the managed beans with pageFlowScope or viewScope, but I have not got problem with that.
    So, question is: what is the case that managedBean with view or pageFlow (even or session) memory scope will be needed to be serialized?
    When could I get the problems with that?
    Anatolii

    For more details you may have a look at section 20.4.3 here:
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/web_getstarted.htm#CACCFIII
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31973/gs_jdev.htm#ADFUI11666
    Dimitar

  • Any session scope form handler out of the box in atg commerce

    Is there any session scope form handler out of the box in atg commerce. Let me know if anyone is aware of such form handler.
    Thanks,
    Santosh

    Search based formhandlers are some that come to my mind
    CategorySearch (/atg/commerce/catalog/CategorySearch (DCS))
    CatalogSearch(/atg/commerce/catalog/CatalogSearch (DCS))
    ProductSearch(/atg/commerce/catalog/ProductSearch ((DCS))
    Incidentally i think all of them point to SearchFormHandler
    Few others i can this of are
    GiftListFormHandler
    CompareSkusFormHandler (deprecated i guess)
    CatalogSearchFormHandler (Extension of SearchFormHandler class)
    There could be many more , updates / additions will be nice
    adding
    AdvProductSearch
    ProductTextSearch
    Edited by: Sundar on Dec 4, 2012 3:42 AM

  • Scope of ATG in Social Networking

    Hi,
          1) I wanted to know if ATG framework can be used for commerce as well as social network based sites such as facebook.
          2) Whether ATG supports Tagging, uploading of images etc. for the logged in user as well as interacting with other users,adding them to their network etc...?
          3) Whether we can implement CLM(Crowd Layering Model) in the website using ATG where a registered user can categorize his contacts based on friends,family....etc.
    Any help would be appreciated.
    Thanks & Regards
    Rammohan

    1. Social integration e.g. likes, share, etc... are more of front-end integration
    2. But, as Shaik mentioned ATG provides support for social network
    Also, alternatively you can look @  http://developers.gigya.com/050_Partners/050_CMS_Modules/Gigya_Module_for_Oracle_ATG
    The module handles the integration with the core Oracle ATG engine. Visual aspects, including JSP, site navigation, and method of implementation are dependent on customer implementation of the website; however, this document offers a guideline and best practices recommended to deliver the best results.
    Also, you can build your own ATG module if need be for social networking integration & social bookmarking etc... This module can be reusable across web, mobile etc...

  • JNDI lookup for request scope component,

    Hi,
    I have 2 web applications part of single ear file.
    Where One application is ATG application having ATG pipeline defined in its web.xml
    and 2nd one is a simple j2ee web application.
    From 2nd application if I try to lookup a request scoped component by following code
    String jndiName = "dynamo:/------compenent path------";
    Context ctx = new javax.naming.InitialContext ();
    Scheduler s = (Scheduler) ctx.lookup (jndiName);
    it shows me following error.
    ** Error Fri Nov 16 11:04:20 CST 2012 1353085460117 / Invalid attempt to resolve component /atg/-------component path------/ in scope global. It is defined in scope request
    Is there any way to resolve it ?
    Edited by: Arvind Pal on Nov 16, 2012 2:00 PM

    It seems the scheduler global component is resolving the request scope component internally.
    For request scope components there should be DynamoHttpServletRequest object in context to resolve.
    DynamoHttpServletRequest object is created as part of servlet pipeline.
    As you request is not going thru servlet pipeline, there is no DynamoHttpServletRequest and hence the request scope components cannot be resolved.
    So check in the scheduler why do you need to resolve the request scope component. Its not good practice to resolve them in schedulers.
    Peace
    Shaik

  • Resolving session scoped component in global scope component.

    Hi,
    I am implementing batch process and i am need to resolve session scoped component in global scoped component.
    In global scope component (one of the component referred by my scheduler which also in global scope as usual) and i need to resolve session scoped "/atg/epub/workflow/WorkflowView" component in my scheduler.
    I tried all possibilities but nothing worked out. I do not have access to current request, because its batch process. following ways i tried,
    1. getResolveName("/atg/epub/workflow/WorkflowView") method of GenericService which is extended by my global scope component -- This returns null.
    2. Tried to get the current request on ServletUtils to use resolveName() method on request.
    ServletUtlis.getCurrentRequest() - This returns null as expected.
    Is there any way to resolve session scoped component in global scope component. Thanks in advance.
    Edited by: 938890 on Jun 30, 2012 4:59 AM

    Try below :
    If you want to resolve the name of a Nucleus component from Java code that is not itself a Nucleus service, you must first initialize Nucleus with this construct:
    Nucleus.getGlobalNucleus().resolveName("target component")
    where target component is the name of the component you are looking up. Note that this construct works only for components with global scope.
    You can also resolve names of Nucleus components using the Java Naming and Directory Interface (JNDI). The following example shows how you can use JNDI to access the Scheduler component:
    String jndiName = "dynamo:/atg/dynamo/service/Scheduler";
    Context ctx = new javax.naming.InitialContext ();
    Scheduler s = (Scheduler) ctx.lookup (jndiName);
    reference - oracle ATG docs.
    ~ Praveer

Maybe you are looking for