Clustering/Context Attribute Replication HOW-TO

How to set up the context attribute replication for the clustering?
I am using Sun Java Enterprise System and want to enable context attribute replication.

Context (ServletContext) attributes cannot be failed over. Only the HttpSession objects will be persisted onto HADB. I think J2EE spec discourages (prohibits ???) persisting/failing over the context attributes in a cluster environment (See Servlet Spec 3.4 - Context Attributes).
Hope that helps,
Vasanth

Similar Messages

  • What is Context attribute

    Hi,
    What is context attribute and how it can be used in XI?
    Thanks in Advance,
    Ajay.

    Hi,
    I think it is related to web dynpro:
    http://help.sap.com/saphelp_nw04/helpdata/en/76/98384162316532e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c7/a4384162316532e10000000a1550b0/frameset.htm
    Regards
    Suraj

  • Clustering: Context Replication

    I want to find out how to replicate context attributes in clustering
    environment.
    Looks like i can do the same stuff with Tomcat, but couldn't find the way to
    do in Sun Application Server
    http://tomcat.apache.org/tomcat-6.0-doc/config/cluster.html
    The application server i'm using is Sun Java Enterprise System 8.1.
    Thanks in advance.
    TW

    I now know it can't be done.

  • How to set multiple values in one context-attribute

    Hi all,
    Anybody knows a possibility to set multiple Values to a context-attribute?
    I know it how to get it with the following code:
    String break[]= request.getParameterValues("break");
    Now I want to do something like:
    request.setParameterValues(break[no]);
    where no is a counter in a loop.
    With the Method setAttribute(), I overwrite the previous inserted value.
    Thanx
    Robert

    I have not explizit declared break as an array.
    It is the Context- Attribute I want to send. I thaught that I can use it as an array in the same way I can do it when I send Data from an HTML- Form (with multiple values) to an servlet.
    I don't know how to declare the Attribute explizit as an array.
    that it is you wanted to know?
    I think my main problem is to get an array from the servlet to the jsp. Is there an other possibility (other than via Context-Attributes) to do that?
    thanx
    robert

  • How-to map multiple explicit search help values to context attributes?

    Hi,
    I have a custom explicit Search Help with multiple attributes set as export and uses search help exit for data retrieval. I have set this Search Help for one of the context attribute that is binded to one of the input fields on view.
    Now, is it possible to dynamically map other export attributes from this Search Help to other Context attributes?
    I know this works for Input helps that are directly derived from check tables but not sure how to do it for explicit Search Helps.
    Can anyone please confirm and let me if this is possible? If yes, then can you please share an example or describe how to do it?
    Thanks and Regards,

    Hi Srinivas,
    Check this ..Search help can be dynamically assigned to a field.
    data lo_nd_info type if_wd_context_node_info.
    lo_nd_info = lo_nd->get_node_info( ).
    CALL METHOD lo_nd_info->set_attribute_value_help
    EXPORTING
    name = 'ATTR1'                  " Your attribute Name
    value_help_mode = '121'    " Valid value help mode
    value_help = 'Z187442'.      " Search help name
    The various possible values that you can pass to value_help_mode are as shown below.
    deactivated 101
    automatic 111
    ddic 121
    ovs 131
    Also refer this..
    Re: How to put dynamic search help in web dynpro ABAP.
    Cheers,
    Kris.

  • How to map search help dinamically to a context attribute

    Hi,
    I need to map search help dynamically based on selection screen radio button, Please let me know  how to map search help dinamically to a context attribute
    Best regards,
    Alleiah

    Here is the sample code,
    data lo_nd_info  type if_wd_context_node_info.
      lo_nd_info = lo_nd->get_node_info( ).
    CALL METHOD lo_nd_info->set_attribute_value_help
            EXPORTING
              name            = 'KTONR' (attribute Name)
              value_help_mode = '121'
              value_help      = 'PREMJ'.(Help Name)
    Regards
    Vishal

  • How to make permission to enter Only Digits in String Context Attribute?

    1. It is necessary to allow entry into InputField only digits.
    2. The number of digits is limited to 5.
    There is a context attribute "Code" of type string.
    I have a code:
    ISimpleTypeModifiable attributeType = wdContext.nodeCreateParams (). GetNodeInfo (). GetAttribute ( "Code"). GetModifiableSimpleType ();
    attributeType.setMaxLength (5);
    But I do not know how to allow entry only digits.
    I would be grateful for your help!

    Hi Vitaly
    The problem is you cannot apply a format pattern to String based simple type.
    The restriction can be overcame if you make the attribute Calculated. Then in setter-method you can perform the string parsing according to your 5-digits rule. For the purpose you can use Java class MessageFormat.
    If the input string coming to the setter does not follow to the 5-digits rule, report the corresponding error message using method:
    wdComponentAPI.getMessageManager().raiseInvalidContextAttributeMessage(...);
    Hope this will help you.
    BR, Siarhei

  • How can I remove an OVS extension from a context attribute?

    In our Web Dynpro application we provide a generic search mask to the user. The information about the search fields like labels, length etc. is retrieved from the backend during runtime. Also, the information if there should be a value help available or not is read from the backend during runtime. In case there should be a value help for a search field we just add an OVS extension, using method WDValueServices.addOVSExtension(...). For this, we pass the AttributeInfo of all relevant context attributes to this method.
    The problem is now the following: The user can switch between different kinds of search masks. Because of the generic implementation all use the same Web Dynpro context. So it might be that the search field #1 on the first input mask has a value help whereas search field #2 on the second input mask doesn't. But if we once have added an OVS extension to the context attribute of search field #1 it can apparently never be removed anymore. At least I couldn't find a method to remove it.

    At least your second proposal would work for sure if I had only static context nodes apart from the dynmic OVS context. But in my case I can not use wdContext.reset(false) since I have dynamic context nodes in my controller that would get lost. And unfortunately, there is no method available to reset a specific context node only instead of the whole context.
    I contacted the responsible Web Dynpro developers in the mean time and they offered to implement an API in SP11 to remove the OVS.

  • How to find out which context attributes are mapped to view elements

    Hi All,
    We have a custom WD application ( on ECC 6.0 - SAP Basis 70 ) where we have a context node whose 70 attributes are displayed over 2 seperate views.
    When a user enters the view,  we want to inform him which data was changed. 
    I have written a general method which takes the context node, grabs its attributes and compares values ... messages are generated via the message manager and context element/attributes are linked so that the input elements become red.
    Everything works fine but the only problem is that I do not know which attributes are visible on which view so the user is getting the changes of view 2 on view 1 and vice versa ( if the context is only mapped on 1 view then there is no issue ofcourse ).
    The call is currenlty executed at the views inbound plug ... I also checked the view methods themselves like modify view but nothing seems to lead me to a potential solution ...
    I have looked through almost all API classes available but I cannot find any way to obtain information about the linking of view elements with context elements/attributes during runtime ... And I don't want to 'hardcode' a list of context attributes per view ....
    Has anyone done something similar ?
    Thanks,
    Steven

    Hi All,
    We have a custom WD application ( on ECC 6.0 - SAP Basis 70 ) where we have a context node whose 70 attributes are displayed over 2 seperate views.
    When a user enters the view,  we want to inform him which data was changed. 
    I have written a general method which takes the context node, grabs its attributes and compares values ... messages are generated via the message manager and context element/attributes are linked so that the input elements become red.
    Everything works fine but the only problem is that I do not know which attributes are visible on which view so the user is getting the changes of view 2 on view 1 and vice versa ( if the context is only mapped on 1 view then there is no issue ofcourse ).
    The call is currenlty executed at the views inbound plug ... I also checked the view methods themselves like modify view but nothing seems to lead me to a potential solution ...
    I have looked through almost all API classes available but I cannot find any way to obtain information about the linking of view elements with context elements/attributes during runtime ... And I don't want to 'hardcode' a list of context attributes per view ....
    Has anyone done something similar ?
    Thanks,
    Steven

  • How to map a context attribute to an input field

    Hi,
    I am new to CRM 2007 UI.I have a table control view on my screen and records are filled in this table when an user enters a value in an input field and presses enter.My bsp page looks something like this.
    <%@page language="abap" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="uhtmlb" prefix="uhtmlb" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="crm_bsp_ic" prefix="crmic" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%
      DATA lv_xml TYPE string.
      lv_xml = controller->configuration_descr->get_config_data( ).
    %>
    <thtmlb:grid cellSpacing = "1"
                 columnSize  = "1"
                 height      = "100%"
                 rowSize     = "2"
                 width       = "100%" >
      <thtmlb:gridCell colSpan     = "1"
                       columnIndex = "1"
                       rowIndex    = "1"
                       rowSpan     = "1" >
        <thtmlb:label id   = "NAMELABEL"
                      for  = "NAMEINF"
                      text = "Enter a name" />
        <thtmlb:inputField          id                = "NAMEINF"
                                disabled          = "FALSE"
                                tooltip           = "Enter a name to see all records"
                                submitOnEnter     = "X"/>  </thtmlb:gridCell>
      <thtmlb:gridCell colSpan     = "1"
                       columnIndex = "1"
                       rowIndex    = "2"
                       rowSpan     = "1" >
        <chtmlb:configTable id              = "PaymentTable"
                            table           = "//HeaderData/Table"
                            xml             = "<%= lv_xml %>"
                            selectedRowIndex      = "<%= HeaderData->SELECTED_INDEX %>"
                            fillUpEmptyRows = "FALSE" />
      </thtmlb:gridCell>
    </thtmlb:grid>
    The problem is that I want to map this input field to my context attribute.I am from Webdynpro background and ther its pretty easy :)....
    Any suggestions will be helpful.
    Thanks
    Sourav

    Hi,
    you should add the context attribute to the html page itself, or another way of doing it is to implement the set_model method of the view controller.
    On the view controller you can find a lot of usefull attributes like the view manager which can help you understand the bsp framework
    Best regards,
    Erika

  • Validation of context attributes with adaptive webservice model

    Hi, I am creating a Web Dynpro Java application (on top of Netweaver AS 7.0) using an adaptive webservice model to invoke a webservice.
    The webservice has some request attributes of type string with limited length (for example limited to 1 character). I bound the model to component controller context and created a mapping between the component controller context and view context. In the view, I created a form which is bound to the context attributes.
    When user enters string values, which are longer than the maximum length specified in webservice WSDL, and submits the form, an exception is thrown when Web Dynpro runtime is trying to assign entered values into context attributes:
    com.sap.dictionary.runtime.DdCheckException: Length of character string "abcdef" must be smaller than or same as MaxLength 1;
        at com.sap.dictionary.runtime.DdTypeString.checkValid(DdTypeString.java:195)
        at com.sap.tc.webdynpro.model.webservice.base.model.BaseGenericModelClass.setAttributeValue(BaseGenericModelClass.java:304)
        at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass.setAttributeValue(WSTypedModelClass.java:62)
        at at.gov.bmf.demo.comp.employee.model.OrganizationalAssignment.setEmployeeGroup(OrganizationalAssignment.java:52)
        at at.gov.bmf.demo.comp.employee.wdp.IPublicEmployeeDemo$IOrganizationalAssignmentElement.wdSetObject(IPublicEmployeeDemo.java:1552)
        ... 32 more
    This exception is thrown before my non-validating action is executed, so I am not able to prevent it or handle it.
    Is there any way how to catch this exception or prevent it?
    Does anyone know where these model restrictions are stored? I searched the XML files generated for the model, but I haven't found anything. Does the Web Dynpro runtime access WSDL everytime it needs to validate request parameters?
    Thanks,
    Tomas

    No ,This is the preferred and safer way to separate the Model Node and and Input Node and relationship between them by using mapping.
    You create your context structure for input and then on action set user input to model data.
    Safer it means  : Sometimes it happen that model data not populated properly due to network or wrong user input etc ,this time our presentation will be safe and display the proper error message rather the screen went away with null pointer exception.
    Regarding your - it require a lot of work. It too much convince for us that rather than writing 50 lines of code
    for only input length validation WebDynpro provides us a better model driven solution.
    Best Regards
    Satish Kumar

  • Data storage in a context node and in a context attribute.

    Hi All,
    I want to know how exactly the data is stored in context node (internal table) and in context attribute (single value) in memory during the runtime.
    Regards,
    Yugesh A

    Hi Andrea,
    Sorry I got it wrong , for lr_comp you will have to take reference from controller IMPL class.
    DATA:
              lr_entity TYPE REF TO cl_crm_bol_entity,
            lr_comp TYPE REF TO ( component controller IMPL class),
             lv_ref_guid     TYPE        crmt_object_guid,
             lr_collection TYPE REF TO cl_crm_bol_bo_col,
             lr_bdc type ref to  if_crm_ui_data_context,
             comp_controller type cl_bsp_wd_component_controller.
    lr_comp  ?= me->comp_controller.
    IF lr_comp IS BOUND.
        TRY.
    lr_entity ?= lr_comp->ZTYPED_CONTEXT->ZBTCUSTOMERH->collection_wrapper->get_current( ).
         lv_ref_guid = lr_entity->get_property_as_string( iv_attr_name = 'REF_GUID' ).
          CATCH cx_sy_ref_is_initial.
          ENDTRY.
    ENDIF.
    Hope it helps.
    Regards,
    Manjeet Singh.

  • What is "Primary attribute" in Context attribute property?

    Dear Friends...
    Many properties..in Context attribute properties..
    Attribute name, Type, Read-only, Primary attribute..and so on..
    What is primary attribute and how to check it?
    I don't check it. and i don't know what is this..?
    Please answer..
    Thank you.

    Hi,
      The primary attribute specifies the lead column for the  configuration editor. The maximum of one attribute for each node can be declared as a primary attribute.
    Dependencies:
    The primary attribute is only allowed in the context of configuration controllers.
    Reward if useful.
    Regards,
    Swetha.

  • Procedure for changing context attributes of an UI already mapped in a Task

    Hello,
    I have a problem. I've used the auto-generate UI feature of a BPM Task. This creates a WD component with a view with all the context attributes selected in the step. I've customized this view for being more user friendly.
    However, I 've found that I need to add new attributes to the WD UI that I have to send to the BPM mapping.
    First, I've added the attributes in the .XSD of the BPM Project. What I have to do in the WD Project for adding the new attributes to the context for make them appear in the BPM mapping screen?
    Thanks
    Regards
    SU

    Hello John,
    Thanks for your response. I've made the changes in the WD context in the same node that was automatically created by the UI generation feature.
    Then, I've built and deployed the WD Project. After that, I'm going to the BPM task details and I've reimported the UI component succesfully. However, the new attribute doesn't appear. (I think is because in the WD context is not mapped to anything).
    So I think I have to reimport the BPM context in the WD Project for enable the mapping procedure. But, how I can reimport the new attributes of the BPM in the WD Project? The WD Project doesn't have a BPM context Model for doing a reimport (as I can do it with wsdls).
    Thanks & Regards
    SU

  • Delete Context Attribute dynamicalluy

    Hi,
    We have a requirement where context attributes have to be created and deleted dynamically based on number of parameters. Dynamic creation part is ok but i don't know how to delete context attributes dynamically. I'm using NWDS04 sp16.
    Any help is appreciated.
    Regards,
    Abhinav

    from https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeInfo.html
    <i>
    Node infos also provide a mean to dynamically add child nodes (there are different methods for unmapped, mapped and recursive nodes) or attributes (unmapped or mapped, several methods to add attributes automatically from external meta data). You cannot remove such nodes or attributes afterwards, you can only reset the whole context to its initial state via IWDContext.reset(boolean).
    </i>

Maybe you are looking for

  • Ipad won't connect to itunes with sim card inserted

    I have an interesting situation. I bought a second hand Ipad 32GB WiFi + 3G from a user who was upgrading to the iPad 2. They kept their SIM card and we purchased a replacement SIM card from AT&T's website. (The original SIM card was also from AT&T)

  • Error when generating logical port in SOAMANAGER

    Hi, When generating the logical port in SOAMANAGER transaction I get an error message 'SRT Framework exception: Uninstantiated object "subject sidl service" in method IF_SRT_WSP_CONFIG_SIDL~CREATE_CLNT_CFG_FROM_WSDL_D of class CL_SRT_WSP_CONFIG_SIDL'

  • Download Customization in Apex Interactive Report

    Hi All, I am using Apex 3.2. I have some requirement, for the download the interactive data into xl sheet we can go to action menu and download the report. But in the report there is one edit link ,I dont want down load edit link data. How to avoid t

  • JavaScript and CSS info in WPC

    Hi all, Is it possible to keep CSS (Stylesheet) and Javascript information from older html web pages and bring them into Web Page Composer? We have some older intranet web pages which we now want to display in the portal without ofcourse using URL iV

  • My wifi keeps saying it is timing out wont stay connected

    My MacBook Pro is only 5 months old and just yesterday it started timing out on wifi connection it connects then disconnects in 1 sec.