How to ensure singleton behavior across cluster and session?

I need a class that loads up properties from a file and keeps those properties loaded after the first load? The code that will do the loading is being invoked by jsp. I have defined all the methods and variables as static and have a static flag to check if loaded. Is that sufficient?

You could scope such info to the application scope - some info is provided here: http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html
"application - You can use the Bean from any JSP page in the same application as the JSP page that created the Bean. The Bean exists across an entire JSP application, and any page in the application can use the Bean."

Similar Messages

  • How Does The Playcount Sync Across iTunes and Multiple iPhones/iPods?

    Okay, this is more of a lazy question, because I don't feel like investigating myself...
    So I have an iPhone with all of my music on it. I also have an iTouch with all of my music. Occasionally I will play music on my iPhone, but primarily it's only used as an iPod when I'm driving and can plug it in.
    However, the iTouch is being used more and more to play music on the go.
    Both have the exact same library on them. They also have three smart playlists (which yes, I know they only update when synced with iTunes, since something is goofy with the smart lists) which rely on the playcount.
    I was wondering how the playcount works when synced across the iPhone to and from the iTouch and iTunes.
    Here's what I'm asking....
    I have songs A, B, C and D.
    On the iTouch, I play song A 5 times.
    On the iPhone, I play song B 5 times.
    On BOTH, I play song C 5 times.
    On my computer, I play song D 5 times.
    Now, how are they all going to sync? If I plug the iTouch in first, will it show that I played song A and C 5 times, and iTunes will update song D on the iTouch, but when I plug in the iPhone, it'll show that I didn't play song A, so it'll modify the playlist? Or when I sync the iPhone, will it update song C twice, one for the iTouch, one for the iPhone, so it'll show that I played it 10 times (correct)? Or will it only see that song C was played on one device?
    My main reason is that I want to know how I should expect my smart lists to function when being spread out over three devices...

    Play counts are updated in iTunes when you sync the device, and should then propagate. So, for song A which was played only on the iPod Touch, after those 5 plays if you sync the iPod Touch that will change the iTunes count to 5, then if you sync the iPhone after that, song A will have a play count of 5 for the iPhone's smart playlist (since syncing the iPhone will update the smart playlist at that time).

  • How to ensure singleton classes no longer exist

    hi all not sure if this is the right forum....
    I am writting an application that integrates another, I wish to stop and then restart the integrated application but it seems that the singleton classes of which there are quite a few ( each being statically initalised) do not disappear when I try to shut them dowm. (if I am shutting them down that is ...)
    is there a way to ensure these instances are terminated so I can restart the integrated application inside my application?
    is there a way to see what instances exist so I can see if in fact I am disposing of any?
    thanks for ur help

    is there a way to ensure these instances are
    terminated so I can restart the integrated application
    inside my application?
    is there a way to see what instances exist so I can
    see if in fact I am disposing of any?
    What exactly are you trying to achieve?
    Do these hold on to resources which you must clean first? Then you must have a clean/dispose method. There is no other option. You can use a registration class to make this easier.
    Do you simply want to reinitialize them? Then you could use a class loader but it probably going to take less time to simply do the same as above and add a reinit method to each. Again you can use a registration class to make this easier.

  • How to build a query across parent and child object fields?

    As a part of an Integration Requirement, I need to query Opportunity records that have been Modified after a specific date and time?
    Now, Opportunity has a child object called ProductRevenue with a one to many relationship. Is there anyway I can construct a querypage that will fetch records whose Opportunity fields 'OR' its child ProductRevenue's fields have been modified after a specific date and time?
    I have tried using the SearchSpec argument, but it does not let me query across child object fields.
    For eg:-
    ObjOpptyQueryPageInput.ListOfOpportunity.Opportunity.searchspec = "([ModifiedDate] > '01/01/2013 00:00:00') OR ([ProductRevenueData.ModifiedDate] >= '01/01/2013 00:00:00')";
    [This above code written in C# thew me an error saying - The object Opportunity does not have an integration component called - ProductRevenueData.ModifiedDate.]
    Any help will be greatly appreciated. Thank you.

    Hi,
    As far as I know this can't be done at once because you have to consider :
    - Every Opportunity and their time-limited ProductRevenues
    AND
    - Time-limited Opportunities
    If you want to achieve this, you have to consider the 2 datasets separately and make your first query :
    ObjOpptyQueryPageInput.ListOfOpportunity.Opportunity.searchspec = "([ModifiedDate] >= '01/01/2013 00:00:00')";
    but also another query with the restriction on the ProductRevenue Searchspec.
    This shouldn't be too hard because the searchspec functionality is present at each level :
    - ListOfOpportunity -> Opportunity (the top-level that you used for your query)
    - ListOfOpportunity -> Opportunity -> ListOfProductRevenue -> ProductRevenue (the sub-level that you should use for the second query)
    Then in your C# code, you merge the 2 datasets and you end up with your expected result.
    Hope this helps,
    Charles.
    http://www.dubant.com

  • Cluster and Session EJB replication

              I have a dedicated Weblogic 5.1 box running with SP 6 serving up JSP and Servlets.
              The Servlets do look ups for session EJBs, which are hosted on a separate box behind
              a firewall. My question is:
              If I implement clustering of the JSP/Servlet Weblogic Instance so that I have four machines in a cluster,
              does Weblogic 5.1 or 6.0 replicate the handle to the session EJB's stub only so that in case server 1 crashes,
              Server 2 will be able to retrieve a handle to the session EJBs?
              Thanks,
              Paul Richardson
              

    If the handle is in the HttpSession, then the handle will be replicated. If
              the EJB server fails over in WL 5.1, the stateful session EJBs will be lost.
              WL 6.0 supports statefull session EJB replication for failover, but I
              suggest that you not use it unless you have a specific architectural reason
              to.
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Paul Richardson" <[email protected]> wrote in message
              news:[email protected]..
              >
              > I have a dedicated Weblogic 5.1 box running with SP 6 serving up JSP and
              Servlets.
              > The Servlets do look ups for session EJBs, which are hosted on a separate
              box behind
              > a firewall. My question is:
              >
              > If I implement clustering of the JSP/Servlet Weblogic Instance so that I
              have four machines in a cluster,
              > does Weblogic 5.1 or 6.0 replicate the handle to the session EJB's stub
              only so that in case server 1 crashes,
              > Server 2 will be able to retrieve a handle to the session EJBs?
              >
              >
              > Thanks,
              > Paul Richardson
              

  • Oracle 11g: How to ensure the same transaction across several BPEL calls?

    How to ensure transaction semantics across invocations of several BPEL services with a Database operations (Insert, update)? We are using transaction REQUIRED property in all of our BPELs. We are using webserive and JCA to access and modify the same row. Our code uses a combination of JCA, Spring bean, enity services, EJBs in these BPELs. The code can be more efficient, but, at this point, we have no option but to fix the transaction issue in this code. So, our question is how to ensure the same transaction context is used in all these BPELs to inser/update the same row? We have tried to set the GetUnitOfWork in the JCA Adapter but it did not provide any solution. Apaert from setting transaction in BPEL to REQUIRED and the JCA Adapter to use Unit of work, we are out of ideas. Any help is much apprecited. We are using Oracle SOA Suite 11g 11.1.1.5 version. --chary

    Hi,
    I can help you if you can describe the processes.
    There can be some difficulties when you try to use the same transaction especially when you use many DB transactions & BPEL processes.
    Using unit of work only ,might not be enough.
    Thanks
    Arik

  • Singleton Service in Cluster

    Has anybody created the singleton servince in cluster and migrated once the server goes down. If so can you please share the sameple and steps for the migration.
    Thanks,

    Here is an example on how to create a singleton service: http://middlewaremagic.com/weblogic/?p=5799
    Example on configuring migration can be found here: http://middlewaremagic.com/weblogic/?p=7188

  • How to co-ordinate changes in database and fmx if signature of package is changed?

    hi all,
    A fmx is changes because of change in signature of called procedure? How to ensure coordinated change in database and fmx. Can we manage it in 24X7 running system? how?
    Regards,
    Rajiv

    There is a database parameter that define the dependency model of changes in stored procedures. I don't remember its name though.
    One of its setting will let you run your form without the need to recompile if the stored procedure changed.

  • Decision between call transaction and session method:BDC

    Hi,
    Kindly guide how to take decision between call transaction and session method?
    Thanks,
    Sanjay

    Hello Sanjay,
    here are some links which discuss the difference between them:
    http://scn.sap.com/thread/721344
    http://scn.sap.com/thread/166845
    Best regards,
    Laszlo

  • How much info about the cache-cluster does the client have and What would you recommend about putting the cluster behind virtual ip

    Hi,
    I will appreciate if someone can point me to some documentation as to how app-fabric client library accesses the app-fabric cluster.
    What I have found so far is that the list of hosts provided in the client configuration are used as an entry point into the Cache-Cluster. By connecting to one of hosts, the client will download information about all the hosts constituting the cluster.
    Since a named cache is distributed across the entire cluster, and the data can be stored on any node. How does the client decide which node it should connect to, to get the data from. Does the client have enough information to know which host has the data
    or the client will connect to one of the nodes, if the node has data, it will serve it otherwise redirect the client to the node that has the data.
    I also would like to know what do you say about the idea that we would like to put our cache-cluster behind a virtual ip, so that if needed, we can take down nodes or add more nodes. In fact the virtual ip will that of a load balancer, but we don't plan to
    use it for load balancing purposes but the idea is that the client will have the virtual ip address and we can repoint this IP address, if we need to take out a node for maintenance reason. 

    I'm not sure about the reason for putting the cache servers in a VIP, but one of the reasons why the cache servers should be made known to the servers is because of auto load balancing and throughput
    Imagine i have 10 cache servers running on 1G ethernet links, theoretically i have 10G usable bandwidth and the clients will be able to manage and load balance if any of the cache server fails or have performance issues
    Now if all these were parked behind a VIP
    1. The LB now does the load balancing, which may not be optimal
    2. The LB may not have 10G upstream and 10G downstream, even if it has, this is quite a waste of resource\

  • 18000 and 200gb of iCloud storage how do i up load to iCloud and view them across my iPhone iPad and apple tv?

    I have 18000 photos and i have to signed up to 200gb of iCloud storage how do i up load to iCloud and see them across my iPhone iPad and apple tv?
    I have dragged my entire library over to the iCloud icon on the left side menu bar on my iMac iPhotos.
    i have also signed into iCloud.com but can only see recent few photos taken today on my iPhone and when i have gone to import i can not import for my iPhotos app?
    How do i get these to the cloud to view across my devices?
    What settings do i need to use on my iPhone and iPad?
    Or is iCloud not the best way to store and view my library?
    Thanks Spud

    You are a bit early.
    Wait for a few month.  iCloud Photo Library (Beta) and the Photos.app for Mac are being beta tested now and will be available soon on your Mac. Then you can store your photo library in iCloud and keep optimised versions of your photos on your Mac locally, with the full sized versions in iCloud. And all your devices will be able to access the photos in iCloud.
    See Apple's preview of the new Photos for Mac:  http://www.apple.com/osx/photos-preview/
    Fill your library, not your device.
    iCloud Photo Library can help you make the most of the space on your devices. When you choose "Optimize Mac Storage", it stores all your full-resolution photos and videos in iCloud in their original formats, while keeping storage-saving versions on each device. When you make an edit, the original image will download automatically. You get 5GB of free storage in iCloud — and as your library grows, you have the option to choose a plan for up to 1TB.
    and also:  Photos for the Mac Is Clean, Fast, Connected — and Unfinished
    The iPads and iPhones can already do it, but the Mac can only access this library using the web interface,  see:  iCloud Photo Library beta FAQ
    Use the time, till Photos will be released, to consolidate your photo library. Get all places and faces tagged, all keywords, titles,  and ratings ready, duplicates removed, events and albums well structured, and when Photos will be released, you can simply let it migrate the iPhoto or Aperture library to iCloud Photo Library.  Enable "Optimize Storage" and you will be able to have the bulk of your photos in iCloud.

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • How to Configure MS Exchange 2007 CCR and SCC Cluster in a single system

    Hi i want to configure ms-exchange 2007 server for both SCC and CCR. i have two Windows Server 2008 on running on my hyper-v. by using cluster on both hyper v i want to install MS-Exchange 2007 for both SCC and CCR. ideally one windows server 2008 has
    Active Nodes and another one has passive nodes. please guide me as i am new in the field

    Duplicate of
    http://social.technet.microsoft.com/Forums/exchange/en-US/edea43a1-59b4-4d26-9b41-76d0f4677095/how-to-configure-ms-exchange-2007-ccr-and-scc-cluster-in-a-single-system?forum=exchangesvrgenerallegacy#c6e08365-c01a-40aa-a8bc-94219757ef13
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Hi I am a new iPad user and would like to know how to ensure I am on wifi at my home instead of my providers network using up time. At the top of my iPad it says my providers name  and shows a signal strenght

    Hi I am a new iPad user and would like to know how to ensure I am using wifi instead of my network provider.  At the top of my screen it is showing my providers name and a signal strength. I have a router at home that I want it to use. I will also be traveling to Italy tomorrow and want to ensure it automatically hooks up to the wifi where we will be staying. Any help would be much appreciated.

    I copied this from another thread. I made the important line bold. Make sure that WiFi is turned on if you want to use WiFi first.
    After successfully connecting to a wireless network, the network and network settings are saved on your iPad. If wi-fi access is on, when returning within range of a wireless network you have successfully connected your iPad with, your iPad will automatically connect to the wireless network, or it should. If 3G access is on, when leaving the range of an available wi-fi network you have access to, it will switch to AT&T's cellular network automatically. If both are on, your iPad should switch between the two automatically and seamlessly. Your iPad will always connect to the fastest wireless connection available at the time as long both options are enabled. Between an available wi-fi network that you have access to and are in range of and AT&T's cellular network, it will or should be the wi-fi network.
    Here is the thread.
    https://discussions.apple.com/thread/2419363?start=0&tstart=0

  • TS4009 I have had to delete my icloud account and open up another because it would not verify. In the meantime I have lost my storage which was attached to the previous email account. I would like to know how I can transfer it across to my existing accoun

    I have had to delete my icloud account and open up another because it would not verify. In the meantime I have lost my storage which was attached to the previous email account. I would like to know how I can transfer it across to my existing account?

    Thanks randers4. Reading through other discussion points, other people have similar problems. I thought and still do, that the easiest option was to delete and open up another. That worked fine except I remembered that I had some storage attached to that icloud address. I live in New Zealand.

Maybe you are looking for

  • IPOD TOUCH can't be undisabled due to having a passcode!!

    I had been away for awhile and just got home. My IPOD touch had been disabled and when I turn it on it says "IPOD IS DISABLED: connect to ITUNES". Well, I connect to Itunes on my windows XP and the ITUNES says "ITUNES could not connect to the IPOD "x

  • Device Switch Wizard Copies Messenger Contacts??​? CURVE 8900

    Hi there I got a curve 8900 and it was slightly faulty so i got another one and got told that the device switch wizard copies pretty much everything to phonebook, messages, calender dates etc HOWEVER does it also copy my messenger contacts?  Also doe

  • Automatic generation of JSP Project from tables

    JDeveloper had a feature in earlier versions (probably 9i) that automatically creates a JSP/Struts based project that can Add/Edit/Delete from a database table. I couldn't find it in the JDeveloper 10.1.3. Has this feature been taken out or its my in

  • HRMD_A PA30 to HRMD_A IDOC, what is missing?

    I am trying to get IDOCs generated automatically for HRMD_A.  I can manually generate the IDOCS.  I have the change pointer active in BD50.  RPUAUD00 shows logged changes for infotype 0002.  There seems to be a configuration gap between the logged ch

  • First Item In Adobe Exchange

    So excited to have my first product in Adobe Exchange.. http://bit.ly/14WCsBR Have a couple more free ones I need to get processed.