Will the Application Scope be shared across the cluster in a multi-node OC4

Hi,
I have the following requirement:
Users of the application can only have single (browser) session. When a user who already has a session connects again, he should no longer be allowed to access the older session.
My proposed implementation is:
-     After successful login – possibly using a Session Listener - an entry is made in a HashMap UserSessions that lives in the application scope. Key is the username, value is the session id (HttpSession.getId()).
-     For every request, using a ServletFilter, we check whether the session is still in the UserSessions HashMap for the current user. If a new session has been created for the same user, the session id for that new session is in the UserSessions map and the servletfilter will not find the session. In that case, the filter should invalidate the session and forward to the user to an error page.
However, the application will run on a multi-node OC4J cluster. I am starting to wonder:
Will the Application Scope be shared across the cluster in a multi-node OC4J environment?
I know session state can be shared. But what application state/scope?
Does anyone know? Do I have to do anything special in the cluster or the application to get this to work?
Thanks for your help.
Lucas

gday Lucas --
Application scope is not replicated across JVM boundaries with OC4J.
I'm sure this used to be described in the doc, but I can't find it now from a quick scan.
If you wanted to use this type of pattern, you could look to use a Coherence cache as distribution mechanism to share objects across multiple JVMs/nodes.
-steve-

Similar Messages

  • A struct in the application scope will be lost / damaged

    Hello,
    we have a strange problem with our CFMX 7,0,2, perhaps
    somebody can help?
    In the application.cfm a xml-file will be loaded, parsed and
    saved as a struct in an application variable. This will take place
    only if the struct isn't defined. We set the application variable
    exclusive by cflock. After some times, the struct or an element of
    the struct will be lost. At this time, we get "Null Pointer
    Exceptions".
    java.lang.NullPointerException
    at coldfusion.xml.XmlNodeMap.size(XmlNodeMap.java:656)
    at coldfusion.runtime.Struct.StructCount(Struct.java:172)
    at coldfusion.runtime.CFPage.StructCount(CFPage.java:4133)
    Some questions:
    - Why is the struct / the elements in the application scope
    are lost? The application timeout is set to 2days, and other
    application variables aren't lost.
    - Why will cftry / cfcatch not work in this case?
    What can we do?
    Kind regards
    Karl-Heinz

    you can use the isDefined function in the onRequestStart
    function in Application.cfc
    I have never had an application scoped variable / object get
    lost or damaged in the way that you're describing.
    are you loading it in the onApplicationStart function of
    Application.cfc ? that would be a good place to do it.
    oh, actually, I did have a contractor who assigned the
    application name dynamically, I think the name contained the
    current date so each time the date would change the application
    would change - you might want to make sure that is not happening to
    you.

  • What are the pros and cons of storing heavely used CFCs in the application scope?

    I've been storing all the required CFCs for a site in the application scope. During onApplicationStart I do something like this application.objSomeCfc =CreateObject('component', 'com.someCfc').init().
    Here is my reasoning.
    Get the CFCs initialized once and stored in memory for better performance.
    Using CreateObject several times on each page load can have a negative impact on performance.
    Having one place to create application scoped CFCs makes it easier to manage code.
    So is my thinking flawed? Are there any additional pros or cons for dealing with CFCs? Is there any docs, articles, blogs, videos, frameworks, ...... that I should check that may change my perspective on how I'm doing this?
    Thanks

    Your approach is fine, depending on how many and what type of CFCs you are talking about. If they are "singletons" - that is, only one instance of each CFC is needed to be in memory and can be reused/shared from multiple parts of your application - caching them in the application scope is common.  Just make sure they are thread safe ("var" or local.* all your method variables).
    You might consider taking advantage of a dependency injection framework, such as DI/1 (part of the FW/1 MVC framework), ColdSpring, or WireBox (a module of the ColdBox platform that can be used independently).  They have mechanisms for handling and caching singletons.  Then you wouldn't have to go to the application scope to get your CFC instances.
    -Carl V.

  • TS2972 I cannot seem to get all of my music shared across the network from my MacBook Pro to my iPad. This was not an issue a few days ago. Can anyone help?

    I cannot seem to get all of my music shared across the network from my MacBook Pro to my iPad. This was not an issue a few days ago. I can see all my songs if sorted that way, but if i sort by artist, only a few of them are present. Can anyone help or have any insight?

    Well I didn't think of it before, but I logged out of my apple ID othe iPad's home sharing. The I logged back in and it worked. It's a little weird, but I will take it. Thanks!

  • The guides all say when using the iCloud photos are shared across all devices. Why can't I see my photos from my iPhone on my iPad when it settings on both devices the iCloud for photos is on?

    The guides all say when using the iCloud photos are shared across all devices. Why can't I see my photos from my iPhone on my iPad when it settings on both devices the iCloud for photos is on?

    When you enable Photo Stream on your devices, only new photos you take or import to those devices will be automatically added to your Photo Stream. Existing photos won't.

  • New WIN7 System, FFox gives error "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory" - will not go to any site.

    New Windows 7 computer. After installing Firefox, every time I bring it up I get the following message:
    "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features."
    Then Firefox comes up, but will not function at all - can enter url address, but will not respond to ANY clicks, so can not go to any site.

    This link shows how to fix this - https://support.mozilla.com/kb/Could+not+initialize+the+browser+security+component

  • My husband(less technologically inclined than I am), decided to delete programs from our iMac, now it has a grey screen and won't get past it. If I insert the Application Install DVD, to repair the disk, will I loose all my pictures and music?

    My husband(less technologically inclined than I am), decided to delete programs from our iMac, he turned it off and now it has a grey screen and won't get past it. It won't start in safe mode and when I  If I insert the Application Install DVD, to repair the disk, will I loose all my pictures and music?

    With a corrupt disk, the install procedure is most likely going to fail.
    How old it the disk?
    You might be able to reformat it to fix the problem. Of course that means you lose all of your data.
    The other alternative is to get a new disk drive and put that in your Mac and install OS X
    Then put the old disk drive in an enclosure and see what can be recovered from it.
    Allan

  • Facing error as Not in an application scope - start Orion with the -userThr

    hi all,
    iam facing this error when an jsp which is in Oracle portal(emebedded in iframe code) is updating a flag in database through a datasource configured on portal side.
    Naming Service=Not in an application scope - start Orion with the -userThreads switch if using user-created threads
    regards,
    Ravi

    I encounter the same issues when using the TimerTask to access the JNDI tree. I have found success when I move my business logic to an EJB and call my EJB from my TimerTask. It's a bit more work, but not much. The EJB inherits it's identity based on it's configuration and has no trouble accessing the JNDI tree whenever it's called. Try this and see if your problem doesn't go away.
    Hope this helps,
    Perry Tew

  • Just updated my iMac to OS X Yosemite and my Photoshop will no longer open. Pop up message informing Some of the application components are missing from the Application directory. Please reinstall the application. I have the pay monthly package and don't

    Just updated my iMac to OS X Yosemite and my Photoshop will no longer open. Pop up message informing, Some of the application components are missing from the Application directory, Please reinstall the application. I have the pay monthly package and don't know where to start.

    Do as it says: Reinstall the program. Run the cleaner tool and let CC app do the magic.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • I downloaded and installed Production Premuim CS5 on my computer and when I try to open it out of the applications folder it bounces at the bottom and then disappears.

    I downloaded and installed Production Premuim CS5 on my computer and when I try to open it out of the applications folder it bounces at the bottom and then disappears. Does anyone know why this is? I've tried everything to open them but they will not open. Does anyone else have this problem?

    I have a mac osx version 10.9.2. I used to have the student version of creative cloud cs6 earlier this year. I cancelled my subscription several months ago and bought cs5 two weeks ago. I never had any problems with the cloud. I went through the entire download process for CS5, and they all showed up in my applications folder and appeared to have downloaded but every time I try to open them they bounce around next to the application manager icon and then disappear.

  • My screen opened, and with every click the page (letters/images) got bigger. I can not get it to return to normal image size. I have to use the slide bar to read across the page. What do i do to correct it back to normal size???

    Question
    My screen opened, and with every click the page (letters/images) got bigger. I can not get it to return to normal image size. I have to use the slide bar to read across the page. What do i do to correct it back to normal size???

    Hi jholzworth,
    It sounds like you might have accidentally hit the zoom button. Try hitting ''CTRL + 0'' to return it to normal size. Just so you are aware, ''CTRL'' and ''+'' will zoom in and ''CTRL'' and ''-'' will zoom out.
    Hopefully this helps!

  • How do I remove the application from your iPad at the same time and with the clouds?

    Hello,
    how can I remove the application from your iPad at the same time and with the clouds?
    I know you press the app icon until it starts shaking, then press the black cross in the upper left corner. This will remove it.
    But still I will come in to the store as a bookmark Purchated I see it with the symbol of a cloud. And I would like to remove it for good. Under iOS 5.1.1 somehow I managed to do that (at least hide it). In iOS 6 I can not do that.
    I greet

    The only transition you can add this way is default cross dissolve. If the images are in the timeline, move the playhead to the beginning of the images, select them all, and drag from the timeline to the canvas to overwrite with transition.

  • TS3376 the application is working good, but the location of my device has found was totally wrong. any idea?

    the application is working good, but the location of my device has found was totally wrong. any idea?

    That would be the issue here.
    The gateway is a modem/router that is in charge of your network.
    The AirPort sensed this during setup and configured itself to operate correctly and passively with an "upstream" router on the network.....so, the Airport is in Bridge Mode.
    The upside is that the AirPort is configured correctly to work with your gateway. The downside.....and Catch 22....is that the Guest Network will not operate correctly when the AirPort is in Bridge Mode. 
    The AirPort has to be the router "in charge" in order for the Guest Network feature to work correctly.
    If you want to try to break some basic networking rules, and have two devices both trying to perform routing chores on the network, that might be a workaround.  But, things get complicated to set this up.....and it will produce what is known as a Double NAT error on the network......which may allows things to work OK....or....cause problems.
    Double NAT errors are unpredictable. It will be one of those things where you will not know if things will work until you try. No guarantees possible.
    The network will have to be completely redone if you want to try this, and you will have to set up new Static IP addresses for devices that need them.
    In general, if you want to try this, the network layout must look like this:
    Internet Connection > SMC Gateway > AirPort Express > Ethernet Switch > Devices.
    With things set up the way that they are now......the simpler thing to do would be to use the SMC wireless for your "main" network and the AirPort Express wireless for "guests". 
    The downside....."guests" will be able to "see" devices on your "main" network with this type of setup.

  • I suddenly have this error message on FireFoxthis message pops up: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no re

    I suddenly encounter this error message from Fire Fox.
    Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features.
    I uninstalled the browser and download a new version but it does not resolve the issue.
    I know my hard disc has ample space. I do NOT know where to find the Profile directory to fix the read restriction box.
    == This happened ==
    Every time Firefox opened
    == After something about security add-on of Norton pop up by itself. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; MSN Optimized;US)

    This link shows things to check - https://support.mozilla.com/kb/Could+not+initialize+the+browser+security+component

  • PS CS4 64-bit (in Web Premium CS4) on Win 7 PC.  I did a duplicate file check on my hdd and deleted dup files. Now I get "Some of the application components are missing from the Application directory, Please reinstall.."

    PS CS4 64-bit (in Web Premium CS4) on Win 7 PC.  I did a duplicate file check on my hdd and deleted dup files. Now when I try to run PS 64-bit I get "Some of the application components are missing from the Application directory, Please reinstall the application." When I do this, it seems to install correctly until the very end, then it says "Installation Complete With Errors", and when I try to run I get the same 'component missing message'. What can I do? PS 32 bit runs fine. Some of the other applications ib Web Premium say the shortcut has been changed or removed. I appreciate your help...Thank you

    Best advice I can think of is to uninstall and run the Clean Script from here.
    Adobe - Adobe CS4 Clean Script

Maybe you are looking for

  • IBM cognos TM1 Executive viewer is not working on direct Access

    Hi, We are implementing DirectAccess in our environment and testing applications in test lab. It has been observed that executive viewer is not working on Direct Access but working fine over VPN mobile checkpoint. When DA client click on open view bu

  • Fullscreen apps forget their state

    If I have an application in fullscreen (Safari, Mail, iCal etc) and close its windows without quitting the application two things happen: 1     the Menubar disappears. 2     if I then open the application again from the Application Switcher or the Do

  • Import 2 separate audio tracks

    If I import into FCP off of a camera that recorded two separate audio tracks, why aren't they separate? On Ch2 I used the nat sound mic and I used a separate mic on Ch1 to record interviews. They were definately different when I was listening on my h

  • JavaBean/Mapping or Serializer not specified

    Hello! I use as Deployment Platform: Oracle J2EE Web Services. I get the following errormessage: "The following JavaBean parameters have property descriptors using types that do not have an XML Schema mapping and / or serializer specified". My class

  • [UCCE 7.5.1] Logger installation error

    Hi alls, I'm trying to install a UCCE lab with ICM 7.1(0) and SQL Server 2005 but fail at the Logger setup. The installation log show me this: 04/03/2011 02:46:24 4-3-2011 at 02:46:24, Beginning component setup. 04/03/2011 02:46:24 Version:   7.5.1.0