How to set Max Inactive Interval on ProviderSession

I see a getMaxInactiveInterval in the api for provider session that says you can call setMaxInactiveInterval but I don't see it. Am I missing something? Do I need to call another method to set the max time interval?

Hi,
I am sure you would be knowing the significance of this method, i'll just reiterate what its supposed to do.
The setMaxInactiveInterval() method in HttpSession object specifies the time between client requests before the servlet container will invalidate the Http session. The ProviderSession which is a simple wrapper over HttpSession only provides public getter methods. hence you did not see any setter methods there. However, i think that you should still be able to do this by setting it on HttpSession directly as follows,
PortletRenderRequest prr;
HttpServletRequest req = (HttpServletRequest)prr.getAttribute(HttpCommonConstants.SERVLET_REQUEST);
req.getSession(true).setMaxInactiveInterval(10);//waiting time is 10 seconds
I haven't tried this myself, so let me know the results.
Regards,
Abhinav

Similar Messages

  • How to set max row display rows in PO's PLD

    Hi,
    How to set max row display rows in PO's PLD
    Thanks and Best Regards
    Bruce

    Hi
    Max. Rows per Page is depend on PLD Settings and Depend on Repetitive Area Fieds Height.
    Try this,
    1st Case:
    ->> Administration Module.
    ->> System Initialization.
    ->> Open the Print Perferences Window.
    ->> Click General Tab on Print Perferences Window.
    ->> Assign the Max. Rows per Page - 99 (or) your wishes.
    ->> Update the Print Perferences.
    2nd Case:
    ->> Open your PLD.
    ->> Choose Repetitive Area on Field Index Window.
    ->> Click Format Tab on Properties Area Window.
    ->> Assign the Lines in Repetitive Area - Your Wishes .
    ->> Save the PLD.
    Regards,
    Madhan.

  • How to set max rows in flowed textfield?

    Is there a way to limit the rows allowed to input on a flowed textarea? I now we can limit the length of max chars, but that would not help me.

    Hi Rishit,
    Thanks for your answer!
    Had a long holiday, so didn't give a feedback in time. Sorry for that!
    There is a tab 'Controls' in Universe Parameter, where there is a setting used to limit the size of result set.
    Then what's the priority between this setting and the similar setting in WebI query properties?
    However, acutally my question is how to set the limitation by user security profile in CMC.
    Do you have any idea about it?
    Qing
    Edited by: Qing Zhou on Jun 21, 2010 11:12 AM

  • How to set Max. no. of hits when i display data

    Dear Experts,
    when i display data in ODS/Infocube, i hope display data of  the default value is 1000,how to set Maximum number of returned records.
    in SE11, i have goto utilities>settings>repository infosystem-->maximum No. of Hits  1000
    but still no any effect, how should i do it?
    Many Thanks
    Best Regards
    Stevezhuang

    Steve,
    If I'm not wrong you are talking about the number of hits while displaying the table content right, if yes that's what i was discussing.
    goto se11 -->enter the table name --> click on display --> click on contents -->it will take you to table selection screen there in that screen you will find the below options,
    in the menu bar -->settings --> user parameters --> change the max no of hits :1000 and click OK.
    You can set the desired max number of hits- that's wht i was talking about.
    Regards
    prashanth

  • How to set the sampling interval using DAQ device?

    Now I have a capacity sensor and a 24 bit DAQ device (http://www.mccdaq.com/usb-data-acquisition/USB-2404-10.aspx).
    The DAQ device has the maximum sampling rate of 50kS/s . My question is how to set the interval of data collection. For example, if I set the sampling rate to 2000, in continuous sampling mode, I use DAQmx read.vi in a while loop and set the 'number of samples per channel' to 100. I want to plot these data as a function of time by using a XY graph and also save these data. So I add a 'Mean' function to get the average of the 100 samples per each loop (than means, there are 20 data output per second). But when I set the 'number of samples per channel' much smaller (to get more data per second), there are some problems. It seems that the program cannot read so many data and get the average at a higher frequency. I don't know where the problem is. All in all, how to collect data more frequently?Maybe I didn't express my question clearly. I'll upload a simple program later if necessary. Thanks.
    Solved!
    Go to Solution.

    Another question is in continuous mode, NI DAQmx uses Samples per channel to determine the buffer size. But according to the website you specified, it says if the acquisition is continuous (sample mode on the DAQmx Timing.vi is set to Continuous Samples), NI-DAQmx will allocate a buffer according to the following table. And for sample rate between 100 - 10,000 S/s, the buffer size is 10 kS. So if I set the sample rate to be 5000 S/s, and set the Samples per channel to be 20000, then what exactly the buffer size is? 20 kS or 10 kS?
    Thanks.

  • How to set Monitoring Discovery Interval for Group Population(GroupPopulator) in SCOM

    Hi,
    Here with I have created discovery with SystemCenter.GroupPopulator.
    <Monitoring>
        <Discoveries>
          <Discovery ID="mydiscovery" Enabled="true" Target="myclass1" ConfirmDelivery="false" Remotable="true" Priority="Normal">
            <Category>Discovery</Category>
            <DiscoveryTypes />
            <DataSource ID="DS" TypeID="SystemCenter!Microsoft.SystemCenter.GroupPopulator">
              <RuleId>$MPElement$</RuleId>
              <GroupInstanceId>$Target/Id$</GroupInstanceId>
              <MembershipRules>
                <MembershipRule>
                  <MonitoringClass>$MPElement[Name="SC_a6e117fa996b47c4ae886c188bd8b2ae_Service_b3ad7ca40a1849158c3111d9d508e724"]$</MonitoringClass>
                  <RelationshipClass>$MPElement[Name="SCMembership_ecd4ff08a512499d8cbc61f024d165f2"]$</RelationshipClass>
                </MembershipRule>
                <MembershipRule>
                  <MonitoringClass>$MPElement[Name="SC_bd2b10979bb54fcf8392edf4eda0b0e1_Service_b3ad7ca40a1849158c3111d9d508e724"]$</MonitoringClass>
                  <RelationshipClass>$MPElement[Name="SCMembership_c30716b6e57140ac96fcd406a7bce0cb"]$</RelationshipClass>
                </MembershipRule>
              </MembershipRules>
            </DataSource>
          </Discovery>
    </Discoveries>
    </Monitoring>
    i referred below link, 
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/291585a6-d7e3-4c58-a703-dc0879ab2bb9/scom-discovery-interval-configuration?forum=operationsmanagergeneral
    How to set  Interval for this above discovery?
    Thanks
    -satheesh

    Thanks Chunky,
    But  FilteredRegistryDiscoveryProvider is not helped for me!!
    Here i tried to create distributed application via code. First i tried to create via wizard using scom console and saved as one new MP. It working fine and rollup the heath state changes immediately. Then deleted that MP created via Wizard and re-import
    that same MP again in to SCOM. It not rollup the state changes immediately. It took time like 4-6 hrs to rollup the state changes.
    pls check my link,
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/1317dfa1-a124-47b3-97a7-f8bb05ae40c9/not-monitored-state-for-rollup-monitor-in-distributed-application-help-me?forum=operationsmanagergeneral
    I tried to find out solution for it. So i tried to run that discovery on Frequency based and rollup the recent heath state.
    Why its working while i created distributed application via Wizard, but it took more time for  rollup If i re-import that same MP again?.
    - satheesh

  • How to set Max Rows Retrieved by user security profile in CMC?

    Hi
    As we know, it is possible to set Max Rows Retrieved with query property (in the area 'Limits').
    However, it is mentioned in official documents that this setting can be overwritten by the BOE administrator in user security profile. Could any one tell me how this is done in CMC?
    Thanks in advance!
    Qing

    Hi Rishit,
    Thanks for your answer!
    Had a long holiday, so didn't give a feedback in time. Sorry for that!
    There is a tab 'Controls' in Universe Parameter, where there is a setting used to limit the size of result set.
    Then what's the priority between this setting and the similar setting in WebI query properties?
    However, acutally my question is how to set the limitation by user security profile in CMC.
    Do you have any idea about it?
    Qing
    Edited by: Qing Zhou on Jun 21, 2010 11:12 AM

  • How to set ButtonGroup inactive?

    Hello
    I have 2 buttongroups in a frame. Within each, a number of JCheckBox appear. Based on the choise in Buttongroup 1, the Buttongroup 2 may or may not be nessecary. But how to set the buttongroup inactive?
    Regards
    Jens

    You have to set the checkboxes inactiveimport java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test3 extends JFrame {
      ButtonGroup bg1 = new ButtonGroup(), bg2 = new ButtonGroup();
      JCheckBox[] rightButtons = new JCheckBox[4];
      public Test3() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Container content = getContentPane();
        JPanel left = new JPanel(new GridLayout(0,1)), right = new JPanel(new GridLayout(0,1));
        content.add(left, BorderLayout.WEST);
        content.add(right, BorderLayout.EAST);
        for (int i=0; i<5; i++) {
          JCheckBox jb = new JCheckBox((i%2==0?"Enable":"Disable")+"-"+i);
          left.add(jb);
          bg1.add(jb);
          jb.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
              boolean flag = ((JCheckBox)ae.getSource()).getText().startsWith("Enable");
              for (int i=0; i<rightButtons.length; i++) {
                rightButtons.setEnabled(flag);
    for (int i=0; i<rightButtons.length; i++) {
    rightButtons[i] = new JCheckBox("Right-"+i);
    right.add(rightButtons[i]);
    bg2.add(rightButtons[i]);
    setSize(300, 300);
    public static void main(String[] args) { new Test3().setVisible(true); }

  • How to set max length for TextField ?

    how do i go about setting a max length for a TextField in jdk1.1.8 ?
    a while back there was a topic on this but it was for jdk1.0
    please help

    well if it works in 1.0 it will most likely also work in 1.1.8 if it is depricated you can use the -deprication option during compilation to see what is derpricated and what method i advised to use now.
    there may however be an easyer way in 1.1.8 but i don't know that.
    hope this helps you,
    Robert

  • How to set max size for varchar?

    Hi, all.
         I want to set a type like Varchar(max) in SQL Server.
         How to do that in MAXDB?
    Thanks.

    Hi,
    sorry, I am not familiar with this feature in SQL Server.
    For MaxDB the maximum length for CHAR (n) ASCII is 8000, for CHAR (n) UNICODE is 4000,
    for CLOB is 2GB.
    There is not chance to restrict these maxima.
    If you want to define your 'own' datatype, maybe the concept of DOMAIN (see reference manual --> Data Definition --> CREATE DOMAIN) may help.
    If this does not answer your question, please help us by describing this SQL Server-feature.
    Elke

  • How to set MAX Configuration

    Hello folk,
    How can I set Output image to Intensity plane or Value plane in MAX as in IMAQ Extract Single Color Plane.vi?
    Any help very appreciate..
    Thanks and regards

    In the HSL planes, the L plane is Lightness. This is practically the same thing as Intensity or Value. I think it is a slightly different definition mathematically, but probably not enough to affect you. So, try out the L plane and see if it works.
    If the difference between Lightness and the others is a significant one, you are going to need to acquire color images and extract the plane you need using the color tools in the Vision toolkit.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to set max size for a custom field ucm11g

    Hi,
    I need to set maximum length to a custom field created in ucm11g 11.1.1.6
    The field's data type is Text and for example i want to limit the length to 10 characters
    Any example how to do this ??
    Regards
    Carlos

    Hi ,
    If you are looking to limit the number of characters that can be entered to the field from GUI then a global side effect and rule combination will help you achieve it . It would be something like this :
    This is done by leveraging Side Effects under Rules - Rules Activation Conditions. You also need to set the Rule as Global for this to be effective across the system.
    In there the following has to be set:
    <$dDocTitle:maxLength=80$>
    <$dDocName:maxLength =50$>
    Set the above side effect in the rules and corresponding Profile need to refer it for being able to limit the number of characters that can be entered for Title and Content ID.
    Custom metadata too can be controlled in the same way . For example, if metadata "Version" need to limit the number of characters being entered then "Side Effects" to be set is as follows :
    <$xVersion:maxLength=50$>
    NB - the maxLength parameter is not supported for fields of type Memo. It will only take effect on standard text fields.
    Thanks,
    Srinath

  • Q:How to set the inactive 'sub-tab' text color?

    On portal.oracle.com I created my own Page Style (changed the
    color scheme) from the default and then added 'sub-tabs' to the
    Group Docs tab. Now when you click on Group Docs you see four
    'sub-tabs' underneath it. The problem I am having is that on the
    inactive tabs the text is not what I set when I created the Page
    Style. It appears to be reverting to color of the original Style
    which was created for my Portal. Any suggestions?

    do it like this
    g.setColor(255,255,255);//this will set the color for the canvas
    g.fillRect(0,0,ht,wd);//this will fill the rect(screen) with the above color,actually this will be BG color for ur app..ht,wd are the height and width of ur canvas...
    now specify color for the text
    g.setColor(r,g,b);//this color shud ofcourse be diff frm the color set for BG
    now draw the string
    g.drawString("xxx", 0, 0, ....);

  • How to set max width of JTextArea?

    Hi...
    I have a JTextArea defined as:
    JTextArea frHrArea = new JTextArea(1,3);
    The TextArea expands if i type in more than three characters! How can i stop the Test Area from exanding? is there any way using the number of columns or something instead of using setMaximumSize?
    Also how can i ensure that not more than two characters can be typed?
    Any help would be appreciated...

    Firstly, you'd be better using a JTextField here if you only have one row.
    Secondly, you limit the number of characters which can be entered by creating a class which subclasses Document. Override the insertString method to check if the max characters have been entered already.
    Use the setDocument() method of JTextField.
    Try and search on this topic and I'm sure you'll find lots of answers.

  • How to set Max Rows when I search extended attribute in Admin Setting?

    When I search extended attributes in Admin Setting, the default max row is 500.
    Can I change the Max rows' Setting?
    Thanks

    We don't have a feature config for this in the core application, however you can adjust the 500 limit using a ready report.  Ready Reports is a solution pack that allows you to create saved searches in the form of reports.  You can get the ready reports solution pack in the latest extensibility pack.

Maybe you are looking for