How to keep an application level object running with SunIDM?

We are working on intergrate a gmail project with SunIDM. We need an application level object running with SunIDM so it will maintain a token generated from Gmail side. In anther servlet project, I had this object saved in the attribute of the ServletContext, then other session level servlet could share this attribute anytime. Is there a way to store attribute in Servlet Context and have it shared by different user session in SunIDM? I have been reading documents and searched this forum, haven't find any topics related how to maintain an application level object live. Hopefully that I can get some hint here.
Thank you so much.

Paul, Thank you so much for the further explaination. I don't think it will work since the token generated from gmail will expire every 24 hours.
We are using the gdata library published from by gmail people, and I create a new UserService object and have it run in the application level. The UserService object will generate a token and renew it every 24 hours behind the scene. Here is how I implement it in my Servlet project:
//to have a UserService object running at the application level:
public class GmailUserService extends HttpServlet {
public void init(ServletConfig config) throws ServletException{
super.init();
userService = new UserService(myApplication);
config.getServletContext().setAttribute("gmailUserService", userService);
//to access this UserService object from other servlet in each user session:
UserService userService = (UserService)servletContext.getAttribute("gmailUserService");
Gmail will trigger an error if we create a new UserService object for each user. They recommend to have all the user to share one UserService object. I am looking for similar approach in SunIDM.
Thank you again, Paul, for trying to help.

Similar Messages

  • How to call the Application configuration in run time.

    hi guru,
    i have created two  Application configuraton   and it working fine.
    my question how to call the application configuration in run time.
    Example :
    Based on the user i want to change the Application Configuration.like Super user and Normal user.
    Advance thank's
    Regard's
    Vivekanathan.S

    Hi,
    Please try out this way-
    Have a look at this table -
    WDY_CONF_APPLU - (Customizing Data for Web Dynpro Applications).
    after you are done with the configuration--
    Ge the config id for the given application from this table. And depending on the user get an entry from this table and display accordingly.
    Please refer to these links -
    different default layouts for different CONFIG_IDs
    Get WDCONFIGURATIONID
    Regards
    Lekha

  • How to know what applications are currently running !!

    how to know what applications are currently running !!

    if it is in linux use "ps(Process Status)" command to know what is running currently.... for more see this link
    http://www.computerhope.com/unix/ups.htm

  • HT4623 I recently upgraded my i-phone 4s phone with the new iOS7. Since that all the applications that I have opened will not close. How do I close applications that are running in the background?

    I recently upgraded my i-phone 4s phone with the new iOS7. Since that all the applications that I have opened will not close. How do I close applications that are running in the background?

    Double click your Menu button and swipe up the open Apps to close them.......

  • How to keep the field open for input with error message in report program

    Hi,
      Need a help in solving the below issue.
    "How to keep the field open for input with error message in report program"
    Regards,
    C.Shasiraj.

    Hi...
    you have to use the event:
    <b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
    u have to give an error message in this event.
    Consider the following <b>Example:</b>
    <b>PARAMETERS : NUMBER TYPE I.
    AT SELECTION-SCREEN ON NUMBER.
      IF NUMBER = 10.
        MESSAGE 'Number vakue is 10' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE NUMBER.
    </b>
    in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
    Execute this program once u will understand....
    also Consider the following links :
    <b>Regarding events:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
    <b>Regarding messages:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    This is very useful.......
    Reward points if useful....
    Suresh....

  • How to develop web application using ejb3.0 with eclipse

    Hi ,
    I am new to ejb3.0 with eclipse. If any one familar that please guide me...
    how to develop web application using ejb3.0 with eclipse.please help me... server jboss4.2.2. database mqsql5.0
    Thanks,

    jsf_VWP5.5.1 wrote:
    I am new to ejb3.0 with eclipse. If any one familar that please guide me...http://help.eclipse.org/help33/index.jsp

  • I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    Click here and follow the instructions. If they’re not applicable, buy an iWork 09 DVD from a source such as Amazon or eBay.
    (116937)

  • How do i update applications that were downloaded with a different apple id

    how do i update applications that were downloaded with a different apple id

    You can't. The iLife apps get tied in with not only the Apple ID, but the Mac that they were accepted on.The Mac App Store will always remeber that the iLife apps have been accepted once before already on this Mac and will only offer to update them with the Apple ID into whose account they were accepted.

  • How to keep new applications on top within windows 8.1 desktop

    In previous Window versions when one opened applications such as word, excel or browser or snipping tool these applications stayed on top.  
    However, in windows 8.1 now when ne application is openned, one needs to minize other applications before starting to use it.  This is very non productive use of time and prevents swtiching between dpendent application, open version of documents, and
    images.
    Please provide suggestions how to configure the system to enable latest application on top.
    Thank you.

    Hi,
    Based on my knowledge, you can keep new applications on top of all other windows on your desktop, even while you're working in other programs.
    I would like to suggest you restoring healthy  by using this command: dism /online /cleanup-image /restorehealth first.
    Meanwhile, please ask on the following forum. This is where the Windows 8.1 experts answer questions.
    http://social.technet.microsoft.com/Forums/windows/en-US/home?category=w8itpro&filter=alltypes&sort=lastpostdesc
    Thank you for your understanding.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • How to define a application level (or page 0) plsql validation

    I have a selection region on page 0, which I use on a lot of pages. I want to define plsql validation for the items in that region.
    I have already a database package with the validation code.
    Now I want to define each validation only once and not on each page.
    How can I do this.

    Funny thing happened to me on the way to creating my scenario on the apex.oracle.com site. I actually got it to work there. Once I attempted to simplify my scenario to reproduce it on apex.oracle.com, I figured out a simple step (hack?) that I was missing. I put that back into my site and it's working there now as well.
    If it's useful for others who attempt to do something like this, I needed to create a page-level process which doesn't really do anything except have a "NOT NULL" condition of the APP_ERROR_MSG application-level item and then use the "&APP_ERROR_MSG." syntax in the "Success Message" of that process. In essence, I'm telling the process to display the error as a success message when the APP_ERROR_MSG item is not null.
    I feel this is a hack because I would prefer to have this error message processing at the application level rather than at the page level. I was forced to put this process at the page level rather than at the application level because (as of ApEx 2.2) application-level processes do not have a "Success Message" option, only an "Error Message" option, while page-level process have both.
    Maybe my "fix" is truly a hack and I would love to hear that in order to get a better solution, that is more generic and application-level based. My sample app is at http://apex.oracle.com/pls/otn/f?p=32483:1 with the username of "devguest" and the same as the password.
    I look forward to hearing some thoughts.

  • How do I clear application level item of the last value it held?

    See next post - I oopsed the first try.
    Edited by: user3034406 on Jul 28, 2009 1:48 PM

    Using oracle 11g, apex version 3.0.
    Ok, so I am developing a survey with questions and their related answers (either radio group or checkbox depending). I have it set up so that when a user clicks a checkbox, an apex_collection is updated. In the pl/sql of my region source, I left outer join to this collection to display the checkbox as checked when its value is found in the collection. Using this same strategy, I can delete a value from the collection when a user uncheckes a box....
    The problem I am having is this: the very last value that a user checks initially (i.e. takes checkbox from unchecked to checked status) is staying in my application level item :ADD_THIS, so when the page is refreshed or whatever, this value gets added to my collection, which means it shows as checked. Well, I think this is what is happenig...!
    I have tried setting the app level item to null in a computation process, but this screwed everything up and nothing would work right....
    So, if someone knows when, how and where to reset an app level item?
    NOTE: I barely know javascript (getting the hang of simple stuff but I have a long way to go!) and am a little shaky on things like session state, before load, after load, etc., etc, when it comes to apex. Please be patient with me! (smile)
    Here's what's going on script wise:
    PL/SQL in region source of page: builds list of questions and their associated answers
    DECLARE
    #####stuff here####
    CURSOR multiple_answer_cur IS select apex_item.checkbox(1, nvl(a.c001, a.answer_seq),'onclick="f_updateMember(q_seq, a_seq);"', a.c001, null, v_q_seq) cbox, a.answer_text, qa.question_seq, a.answer_seq
    *<etc. etc....>*
    CURSOR single_answer_cur IS select apex_item.radiogroup(radio_global, nvl(a.c001, a.answer_seq),a.c001, null, null, null, 'f_updateMember(q_seq, a_seq)',null, v_q_seq) rgroup, a.answer_text, qa.question_seq, a.answer_seq
    *<etc. etc....>*
    BEGIN
    ####stuff here that builds survey and writes it using HTP. to page####
    END;
    Javascript function to add or delete from collection (in header of page)
    function f_updateMember(q_seq, a_seq){
    --determine if value represents checked or unchecked box
    var isString = /q|a/;
    var getThis = document.getElementById(q_seq).value;
    var findinValue = getThis.search(isString);
    var getaddthis = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=AddCheckboxValue',0);
    var getdelthis = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=DelCheckboxValue',0);
    --onclick, if an 'a' or 'q' is found in value, this box is in the collection and therefore checked, so delete it
    if (findinValue != -1) {
    getdelthis.add('DELETE_THIS', "q"+q_seq+"a"+ a_seq);
    getdelthis.GetAsync(function(){return;});
    getdelthis = null;
    }else{
    --onclick, no 'a' or 'q' is found in value, this box is not in the collection, so add it
    getaddthis.add('ADD_THIS',"q"+q_seq+"a"+ a_seq);
    getaddthis.GetAsync(function(){return;});
    getaddthis = null;
    Snippet of page source
    <b>Question number one</b>
    <input type="checkbox" name="f01" value="q78a489" checked="checked" onclick="f_updateMember(78,
    489)" id="78" />Answer option one for question one>
    <b>Question number two</b>
    <input type="checkbox" name="f01" value="483" onclick="f_updateMember(77, 483)" id="77" />Answer
    option one for question two>
    Edited by: user3034406 on Jul 28, 2009 12:18 PM

  • How to keep multiple applications open in one screen?

    I'd like to have several applications open at the same time, for example iTunes, Safari and Mail. But when I start a new program the one I was working in disappears from the screen.... How can I keep them resized on the screen....? Thanks for your help...

    When you start a new program, do the others disappear into the background (i.e. minimize)
    If so, you have somehow gotten the system into Single-app mode. This reacts as if you held down the option key when starting the new app.
    You can check to see what is set with this commanddefaults read com.apple.dock single-appIf you get "The domain/default pair of (com.apple.dock, single-app) does not exist" then something else is wrong, but I don't know what it is.
    If you get a 1 returned (or yes or true), then you can disable it with this:defaults delete com.apple.dock single-app
    or
    defaults write com.apple.dock single-app 0

  • How to shutdown an application remote object in lcds

    I've got an application configured remote object that manages a couple of threads inside lcds.  When I go to shutdown lcds I get this
    SEVERE: The web application [/wrcastle] appears to have started a thread named [Thread-5] but has failed to stop it. This is very likely to create a memory leak.
    the tasks aren't shutting down and I've got catches for handling the thread.interrupt() should proprogate down.
    How do I cleanly shutdown my tasks?
    TIA
    chuckles

    Look at registering your own BootstrapService (See docs here).  You can do anything you want in such a service (not just register runtime destinations) and the stop() method will get called when the MessageBroker servlet stop() method is called.  You could then kill your threads here.
    You could just ignore the messages from tomcat.  If you are shutting down the VM, there will be no memory leak.
    Tom

  • How to keep the Zoom level in Safari 7?

    There is only one big win that's making me stick to Chrome over Safari: The zoom.
    In Chrome when you zoom in a page (With Cmd +) the zoom level is stored in the cookies, or the history, or somwhere, and it stays the same level when you open again that page in another tab or if you close and open again Chrome. This simple feature makes it tremendously comfortable to navigate in big and wide screens.
    This feature by itself is going to keep me using Chrome instead of Safari with all the new fancy and cool stuff they added in the new Safari 7. And yes, there is a "Trick" by using a .css style sheet customed to make a default zoom in all pages, but it's not good enough because some pages need different level of zoom.
    So please, someone, make Apple correct this issue. It should't be complicated, it's as simple as that Safari remembers the latest zoom level you left in a web.
    Because I believe that if people are leaving Safari behind is because it lacks this simple tools that make life much easier. And I believe it's in Apples philosphy to make technology to help people, isn't it?

    It never worked the way Chrome works in Safari 6 either, but at least Safari 6 remembered the zoom level you'd set in a particular tab. With Safari 7 Apple has made the situation even worse. Now after setting the zoom level you want, it's forgotten when you click on a bookmark, and the page reverts to actual size. It really is infuriating having to zoom in all the time, and the CSS trick and the various zoom extensions don't work properly. Safari is all but unusable for me because of this issue. I've complained to Apple many times about it in the past, but now I've given up believing it'll ever change. It seems that Chrome will forever conquer Safari thanks to an easy-to-fix issue Apple refuses to fix.

  • How to put bsp application mime object path in WAD 7.0?

    hi all.
    I'm already know 'bwmimerep:///sap/bw/mime/Customer' will be changed to /sap/bw/customer/  mime repository path when it's published in WAD7.0.
    but is there any way get mime path custom BSP Application?
    for example If I made test.jpg in 'ZBW' bsp application
    I should use full url   'http://domain:8000/sap/bc/bsp/sap/zbw/test.jpg'  instead of relative url '/sap/bc/bsp/sap/zbw/test.jpg' if I include url in WAD7.0
    is there any idea put relative url in WAD 7.0 certianly I don't want include full url because develop and product server domain is different.
    thanks.

    it looks like bwmimerep:/// prefix is the only one available which points to SAP->BW under mime repository.
    the standard help states (http://help.sap.com/saphelp_ppm400/helpdata/en/44/5001d197c01193e10000000a155369/frameset.htm) to use custom images in WAD
    "You can store your MIME objects anywhere in the MIME Repository under SAP->BW"
    May be we need a mechanism to create bcmimerep, publicmimerep, etc.
    Regards
    Raja

Maybe you are looking for