Can we save context in a HTTP session?

When the servlet invokes and ejb, it needs a context to get a home interface. Can i create the context once and save it in the HTTP session. And can i reuse this context for all subsequent ejb calls for the same user.
Thanks in advance,
Jegan
Sembium Corporation

Dear Faraz,
Not sure.
But one workaround could be to store the variables temporary on a KM document.
I once saw this solution on a client. (it stored simple variables such as flags, numbers, etc...)
It was for temporary variables and it did the job pretty well.
Maybe could be an alternative for what you're looking for.
Kind Regards
/Ricardo Quintas

Similar Messages

  • Https session lifetime

    How can lifetime of a secure session be controlled in OC4J 9.0.3-9.0.4?
    Is "session-timeout" parameter in web.xml valid or is the SSL session controlled by other parameters?
    We are migrating to https an application that worked properly in http mode, and sessions expire now after just a few seconds. We can't find where to config https session timeout. OC4J documentation is very vague regarding to secure applications.
    Thanks,
    Modulab Team

    Having the same problem for more than 1 week, couldn't find a solution. Session expires in a very short time in https. We're using standalone OC4J (9.0.3). Do I have to change it with AS now ? Isn't there any other solution, patch or something like that ?
    Any kind of your help would be greatly appreciated since thousands of WEB users of our institution CAN NOT use all of our https WEB apps.
    Regards,

  • How can I save a session to another hard drive or flash drive?

    I want to rebuild my hard drive but I want to save the Firefox session (like 70 tabs) before I do so I can reload them after the rebuild. Can I save a session to another hard drive or flash drive?

    The data of the current session is stored in the sessionstore.js file in the profile folder.
    See also:
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)

  • I recently start using Firefox panorama. If I create a tab group that contains, for example, my favorite stack exchange websites, can I save ("bookmark") this tab group for easy access if I start a new session?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/813855]</blockquote><br>
    I recently start using Firefox panorama. If I create a tab group that contains, for example, my favorite stack exchange websites, can I save ("bookmark") this tab group for easy access if I start a new session?

    You can bookmark all those tabs and place them in a folder.
    * "Bookmark This Page" and "Bookmark All Tabs" no longer show in the Bookmarks menu unless you open the Bookmarks menu via the keyboard (Alt + B).
    * "Bookmark All Tabs" can be accessed via the right-click context menu of a tab on the tab bar.

  • How can I flag HTTP session attributes to not be replicated ?

              WLS 5.1 SP8 - In memory replication of a stateful servlet. Is
              there any way to flag data that has been, or is being, loaded into
              a HTTP session so as to not be replicated ? It's a long story,
              but we have some data loaded into a hashtable, more specifically
              a Properties object, stored in our session. With the hastable
              already loaded into the HTTP session, weblogic does not detect
              when we add values to the table, and therefore does not replicate
              the changes. Which is ok since WLS is working as designed. To
              get around this we load the hashtable back into the session everytime
              we add a value to the hashtable. Yup, I know that's ugly. Anyway,
              what I'm trying to find out if is there is an attribute that we
              can set to indicate, to not replicate this data or that data.
              Something along the lines of a attribute on a per hastable value
              basis. For example, I load value A into my hashtable, then I
              need to put my hashtable into the session to get it replicated.
              Next I load value B into the hastable, and again to get it replicated
              I have to load the entire hashtable back into the session. The
              problem here is that the entire table gets replciated. Does anyone
              know if I can set an attribute on value A, when I'm adding value
              B, so as to not replicate value A when I reload the table ? Of
              course all goal is to not store so much data in the session, but
              I'm trying to find a work around until that is completed.
              Thanks,
              David
              

              Where can I find documentation on the details of how Weblogic decides what will
              be replicated in the HTTPSession object (for example, it only replicates attributes
              which are set or updated using "setAttribute()"?
              Prasad Peddada <[email protected]> wrote:
              >Robert,
              >
              > It is true that we replicate only when you call setAttribute in case
              >of servlets.
              >
              >In case of EJB it is slightly different. EJB sends diff's across the
              >wire. It doesn't
              >replicate the entire state with every request.
              >
              >-- Prasad
              >
              >Chris Palmer wrote:
              >
              >> I think Viresh was referring to modifying part of one attribute causing
              >the whole
              >> of that attribute (i.e. the hashtable) to be replicated.
              >>
              >> Is it actually true though that the behaviour would be different in
              >a stateful
              >> session EJB? I had assumed that the WHOLE ejb state would be replicated
              >each time
              >> (i.e. after each invocation), without even the benefit of having a
              >mechanism such
              >> as setAttribute() to flag the attributes that had changed...
              >>
              >> Chris
              >>
              >> Robert Patrick wrote:
              >>
              >> ? Huh? Since when does it always replicate the entire HttpSession?
              > We were
              >> ? told that it uses a hook in the setAttribute() call to determine
              >which
              >> ? attributes have changed and only replicates those attributes. I
              >know this to
              >> ? be the case because if I retrieve a previously stored attribute from
              >the
              >> ? HttpSession and modify it, my changes do not get replicated unless
              >I call
              >> ? setAttribute again...
              >> ?
              >> ? Robert
              >> ?
              >> ? Viresh Garg wrote:
              >> ?
              >> ? ? Servlet sessions don't work on diffs, so no matter what you do,
              >entire
              >> ? ? Hashtable will be replicated. If you want the optimization for
              >only
              >> ? ? replicating the diff ( the stuff that has changed between 2 updates)
              >,
              >> ? ? consider using stateful session bean and having hashtable part
              >of
              >> ? ? conversational state of stateful session bean.
              >> ? ?
              >> ? ? The solution that you suggested on your own for your problem is
              >not ugly
              >> ? ? as the same solution is used by many customers that I know of.
              >This is
              >> ? ? particularly a problem for people that use Java Beans and use the
              >set
              >> ? ? Property directive of Java Bean in JSP. There also in our auto
              >generated
              >> ? ? code, we put the JavaBean back in HTTP Session, when a setter is
              >called to
              >> ? ? enforce replication.
              >> ? ?
              >> ? ? Keep in mind that whatever we do for replication, we want to support
              >it
              >> ? ? using ONLY standard servlet API and we don't want to introduce
              >any WLS
              >> ? ? specific API to achieve this, and so putting value back in session
              >is the
              >> ? ? only way.
              >> ? ?
              >> ? ? Viresh Garg
              >> ? ? Principal Developer Relations Engineer
              >> ? ? BEA Systems
              >> ? ?
              >> ? ? Dave Javu wrote:
              >> ? ?
              >> ? ? ? WLS 5.1 SP8 - In memory replication of a stateful servlet.
              >Is
              >> ? ? ? there any way to flag data that has been, or is being, loaded
              >into
              >> ? ? ? a HTTP session so as to not be replicated ? It's a long story,
              >> ? ? ? but we have some data loaded into a hashtable, more specifically
              >> ? ? ? a Properties object, stored in our session. With the hastable
              >> ? ? ? already loaded into the HTTP session, weblogic does not detect
              >> ? ? ? when we add values to the table, and therefore does not replicate
              >> ? ? ? the changes. Which is ok since WLS is working as designed.
              >To
              >> ? ? ? get around this we load the hashtable back into the session everytime
              >> ? ? ? we add a value to the hashtable. Yup, I know that's ugly.
              >Anyway,
              >> ? ? ? what I'm trying to find out if is there is an attribute that
              >we
              >> ? ? ? can set to indicate, to not replicate this data or that data.
              >> ? ? ? Something along the lines of a attribute on a per hastable value
              >> ? ? ? basis. For example, I load value A into my hashtable, then
              >I
              >> ? ? ? need to put my hashtable into the session to get it replicated.
              >> ? ? ? Next I load value B into the hastable, and again to get it replicated
              >> ? ? ? I have to load the entire hashtable back into the session. The
              >> ? ? ? problem here is that the entire table gets replciated. Does
              >anyone
              >> ? ? ? know if I can set an attribute on value A, when I'm adding value
              >> ? ? ? B, so as to not replicate value A when I reload the table ?
              >Of
              >> ? ? ? course all goal is to not store so much data in the session,
              >but
              >> ? ? ? I'm trying to find a work around until that is completed.
              >> ? ? ? Thanks,
              >> ? ? ? David
              >
              

  • Can't save non http bookmarks in firefox

    Can't save non http bookmarks in firefox
    Amongst standard website favourites saved on my IE toolbar i have several html documents/pages of my own making. These obviously begin with a non-http address.
    Examples are pages that contain an array of favourite webcams on a single page, or a page that opens up several related sports sites each in their own tab, or a stormchasing swathe of tabbed windows covering live video chase, weather radar, emergency service scanners etc. etc.
    An address would take the format on the lines of
    "C:\Documents and Settings\USERNAME\My Documents\Football Results and Tables\UK.html"
    Firefox insists on adding 'http' before the C:\ (plus unlike IE it also adds the %20 for spaces.)
    Can anyone help to to get FF to accept a favourite that is not a website.

    I just verified that it still works for me in Firefox 18.0, using the "star" in the Location Bar.
    '''Try the Firefox SafeMode''' to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    [https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode#w_safe-mode-window_2 Troubleshoot Firefox issues using Firefox SafeMode]
    When in Safe Mode... <br />
    * The status of plug-ins is not affected.
    * Custom preferences are not affected.
    * All extensions are disabled.
    * The default theme is used, without a persona.
    * userChrome.css and userContent.css are ignored.
    * The default toolbar layout is used.
    * The JIT Javascript compiler is disabled.
    * Hardware acceleration is disabled.
    * You can open the Firefox 15.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Web contexts and http session

    Is there anyway to share a HTTP session between 2 web contexts?
    Both web contexts are running on the same server.
    I wanted to redirect a user from one web context to another and the share
    session so that
    i don't have ask the user to authenticate again and share the session
    content from the
    previous web context.
    Thanks
    /selvan
    Captura Software, Inc

    THanks for the info.
    I am using WLS 6.1 version.
    /selvan
    "Cameron Purdy" <[email protected]> wrote in message
    news:3ba0b484$[email protected]..
    Look at the J2EE / Servlet specs for "single sign on" discussions. I've
    never tried it specifically, and I know from others that various releases
    either did it by default or didn't seem to support it at all. What WL
    version are you using?
    Peace,
    Cameron Purdy
    Tangosol Inc.
    << Tangosol Server: How Weblogic applications are customized >>
    << Download now from http://www.tangosol.com/download.jsp >>
    "Selvan Ramasamy" <[email protected]> wrote in message
    news:[email protected]..
    Is there anyway to share a HTTP session between 2 web contexts?
    Both web contexts are running on the same server.
    I wanted to redirect a user from one web context to another and the
    share
    session so that
    i don't have ask the user to authenticate again and share the session
    content from the
    previous web context.
    Thanks
    /selvan
    Captura Software, Inc

  • Why can't I save Tab Groups from one session to the next? When I restart, tab groups are cleared.

    Why can't I save Tab Groups from one session to the next? Is there a way to save Tab Groups from the last session to the next time I start up?
    Mark Kipperman

    Yeah, if this is the way it's supposed to work its a useless and, dare I say, stupid "feature". Wouldn't the whole point of this be to have quick access to groups of pages. If I have to select them each time to create the group what is it doing for me?

  • I can't save and open .ai files.

    Hello.
    I can't save and open the file with special character in virtual drive(using communications). -> refer to this.. ( http://software.naver.com/software/summary.nhn?softwareId=MFS_105031 )
    *Special character I used is 黒(not 黑).
    If I rename the file name(黒.ai -> test.ai), the file is opend successfully.
    And when I save the file as "Illustrator ver.8 format", the file is saved well.
    This is the error message I have.
    - open : this file cannot be found.
    - save : The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.
    Please answer me~.
    Version :     Illustrator CS5
    OS :            Windows 7 32bits

    Firefox now always stores the old session, and you can access it by going to the History menu and selecting "Restore Previous Session"
    If you want Firefox to display the message to save the session, it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''

  • Forms6i Accessing HTTP Session Object in APache JServ

    I want to create an HTTP session object via a servlet in Apache JServ. This session object contains user profile data as well as session context information. The servlet will redirect the user to the forms6i listener servlet. Can the Forms servlet access the session object and retrieve/modify its values? Does Forms6i provide APIs to do this natively?

    Maybe the Java Importer is what you are looking for.
    You can use it to call the servlet from within forms and get the information you need.(But only after forms is running).
    look at the Java integration section on Forms section of otn.

  • Webvpn - can't save changes to applications

    Hi,
    I have Cisco 1940 router with IOS version 15.0(1)M4. I have configured WebVPN for access to my internal applications.
    From Chrome and Mozilla I can login to webvpn portal and than to applications, but I can't save changes (input) to applications .
    In IE application is not displayed at all, I get blank page.
    Also, some images in application are not loaded.
    I think that there is a problem with webvpn java script, which doesn't terminate lines with ";".
    In Java Console I get following errors:
    Uncaught SyntaxError: Unexpected token ; page.jsp:289
    Uncaught ReferenceError: EditDescriptionMessages is not defined page.ext:572
    Failed to load resource: the server responded with a status of 404 (Not Found) https://xxxx
    Uncaught ReferenceError: hideSelectionCursorIfNeeded is not defined
    Do you have any ideas or suggestions for my problem?
    Here is my configuration:
    interface GigabitEthernet0/0
    description eth0
    ip address y.y.y.y 255.255.255.0 secondary
    ip address x.x.x.x 255.255.255.252
    ip nat outside
    ip virtual-reassembly
    duplex auto
    speed auto
    hostname EXAMPLE
    ip domain name Example.com
    ip name-server z.z.z.z
    ip name-server n.n.n.n
    crypto pki trustpoint SSL
    enrollment selfsigned
    ip-address x.x.x.x
    subject-name CN=x.x.x.x
    revocation-check none
    rsakeypair SSL
    no ip http server
    ip http secure-server
    webvpn gateway EXAMPEGW
    ip address x.x.x.x port 443
    http-redirect port 80
    ssl trustpoint SSL
    inservice
    webvpn context cont1
    ssl authenticate verify all
    url-list "APPS"
       url-text "app1" url-value "http://192.168.1.1"
    policy group poli1
       url-list "APPS"
    default-group-policy poli1
    gateway EXAMPEGW
    inservice
    end
    * crypto key gen rsa label SSL [512]
    I will appreciate your help.
    Thank you in advance.

    Henk:
    I believe it's more a Leopard and permissions thing than iPhoto. Did you upgrade to leopard via the Archive and Install method? Try running ACL Fix on the iPhoto Library package and see if that makes a difference.
    Secondly, create a new test library inside the Shared folder and import some photos into it and see if it will operate OK. If it does you can use the paid version of iPhoto Library Manager to merge the old library into the new one and use it.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Where can i save the use's data of external application?

    where can i save the use's data of external application?and whether will it accumulate to some synchronic problem?
    The way i am doing by is to save the information in providersession by initSession() of ProviderInstance,then to get the information back by using session.getAttribute(),which is in jsp. is it right?and what problem will be caused?
    so i want to know what is the standard method to use the information in external application to page.

    Hi Alf,
    Please have a look at the POINT portlets. most of them are based on external apps. That could give you a fair enough idea of how to go about with your designs.
    http://www.oracle.com/technology/products/ias/portal/point.html
    thanks,
    Harsha

  • Why i can not save multi tabs in v4?

    i was downlod new firefox v4 but in new v i can not save my multi tabs how i can save it please? it only warning me but there is no option to save my multi tabs

    You can use:
    *Firefox (Tools) > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"
    You can set the warn prefs on the about:config page to true via the right-click context menu or toggle with a double left-click.
    * browser.showQuitWarning, see http://blog.zpao.com/post/3174360617/about-that-quit-dialog
    * browser.tabs.warnOnClose, see http://kb.mozillazine.org/About%3Aconfig_entries
    * browser.warnOnQuit , see http://kb.mozillazine.org/browser.warnOnQuit
    * browser.warnOnRestart , see http://kb.mozillazine.org/browser.warnOnRestart

  • How can i save my individual playlist on itunes on my external hard drive because i want to buy a laptop and install itunes and move all my music and playlist thats on my desktop to my laptop and almost all my music is from a bunch of cd's i own

    how can i save my individual playlist on itunes on my external hard drive because i want to buy a laptop and install itunes and move all my music and playlist thats on my desktop to my laptop and almost all of my music is from a bunch of cds i own

    Hello ryane84
    The easiest and most efficient way to copy your music is to follow the steps under the External drive section. Make sure that you have organized the iTunes library first before you copy it over. Then put the copied iTunes folder in the same Music folder on your computer.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Regards,
    -Norm G.

  • I have been trying to save a document in illustrator and every time I try to, a dialog box pops up and says the following- Can't save the illustration. You do not have enough access privileges. id: -5000....This has been happening ever since I switched to

    I have been trying to save a document in illustrator and every time I try to, a dialog box pops up and says the following- Can't save the illustration. You do not have enough access privileges. id: -5000....This has been happening ever since I switched to CC and whenever I try to save something in indesign, I get a dialog box that says that my file is corrupt. How do I fix this? I cannot get any work done !!!

    You should ask in Illustrator
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

Maybe you are looking for

  • ADF Table filter issue with OR or AND input value

    Hi all, adf:table filterable fields for OR or AND input value not works. Actually One of column is for State and it has "OR" value for -> OREGON State. and I tried using filterModel and queryListener for table attribute. But I am not getting exact cl

  • Front Row - DVD - Widescreen

    Hi All, I just bought a new Mac Mini (Intel Core Duo) and i am having trouble getting widescreen movies to play in widescreen in Front Row. I have managed (using the Video Zoom function) to get them to play in DVD Player, but even though I have saved

  • Create dynamic structure

    Is there any way to create a dynamic work-area, similar to cl_alv_table_create=>create_dynamic_table????

  • Upgrading enterprise manager 10.2.0.4 to oem 11g

    Hii.. I am a newbie to the oracle enterprise manager concept.I have been given a task to upgrade the existing oracle 10g oem to 11g.Could anyone please help me as to what are the steps involved in the same.The current oem 10g is running on aix 5l ver

  • How to maintain cluster table A016 -- Contract Item?

    Hello, I know Me11~ME13 can maintain info record for A017/A018, but how to maintain A016? Thanks a lot