Applications starting randomly

Well, I had hoped the 1.1.4 update would fix that my applications are starting to open randomly. It actually caused me to make a phone call (which I didn't know about) because of that. My last iPhone started doing that in a big way and then it started calling numbers without any input from me. I did a couple restores on that one, then took it to the Genius Bar & they just gave me a new phone which had worked great until recently.
I'm getting ready to do a restore, but if anyone has any other suggestions - I'm open.
Thanks

Hello
Couple questions I have
1. Is the iPhone set to turn off within 1 min, If so does it still automatically dial people without your knowledge?
2. Are you using a Bluetooth Headset at all?
If might be possible when the Bluetooth is in your pocket or bag that pressure is pressing the call button thus dialing random numbers or random contacts without your knowledge. As far as launching Applications I do not believe the bluetooth headset would do this.
3. Are you using any other accessories or cases with your iPhone? Might be possible that one of these accessories is causing this. Try not using them for a couple days see if issue still occurs.
4. Clean the connector on bottom of the iPhone and the head jack, Blowing into it will at times blow out any dust or particles touching the connectors. Do the same with any accessories.
Next time you do a restore, Setup as new iPhone if you have not done so already. It might be possible that corrupt data from one of your files is causing an issue. Please only setup as new iPhone if your contacts, Calenders, etc are already on the PC/Mac and ready to go back via a Sync.
Post back if you need further assistance and to report results.

Similar Messages

  • Application Focus randomly changes

    Im about to go nuts... Even as I type this, Lion is doing this crazy thing.
    If I have a bunch of windows open, which I always do, the Application focus randomly changes.  To better describe, If I am typing something in the address bar in Safari, it will bring windows from other applications, but the cursor is still in Safari, typing the keys I hit.  I can't see what I am typing because it brings EVERYTHING to the front (Excel, Word, PPT, Skype, SFDC Chatter.. and the 10,000 other apps
    I end up having to having to minimize everything to the dock so that I can see what I am typing.. and to keep from pulling my hair out.
    This is a hard one to search discussions for, I hope it has been solved!
    Thanks for your help
    Frodo
    PS - This happens on my brand new MBP, 2 year old quad core iMac and second gen MBA.

    Well, I guess there's the standard troubleshooting stuff to try to see if we can't get a hint....
    Have you tried:
    -  Starting in Safe Mode (hold shift key during startup) and seeing if the behavior persists?
    -  Creating a new user (or using Guest) and seeing if the behavior persists for that user?
    charlie

  • Applications crash randomly

    I am having a problem with three of my applications crashing randomly. Mail, Safari and a game = Minions of Mirth.
    I spend most of my day using windows applications inside parallels. The I don't experience crashes while working with parallels, but when I start using these other three programs I start getting the crashes.
    Any ideas would be appreciated.
    Thanks,
    Kelldog

    I too had random crashes/sudden quits using Mail and Safari in Tiger (10.4.11 on aluminium iMac 24" - August 2007).
    Since updating to Leopard - (10.5/10.5.1) - all is well.

  • After ios 8 update has anyones ipad started randomly selecting everything? Even after ios 8.0.1 update it has still continued to do the same thing.

    After ios 8 update has anyones ipad started randomly selecting everything? Even after ios 8.0.1 update it has still continued to do the same thing making it immpossible to use ipad anymore. Has anyone had the same problem and/or knows how to fix this?

    Try a Reboot pess & hold power button & menu button hold both down until you see Apple Logo you will not lose any data This may help but the ipad 2 is a bit under powered for iOS 8 If you can a very good buy now is the iPad Air 32G Since they brought the new one out the price for this model Has come down by £120.00 That's the one I am using and it works great on iOS 8.1 Bsydd uk

  • How  can you load local server urls on application start?

    Background:
    I've been searching for close to two days for an answer to this question, it's full of gotchas and I can't quite get it figured out.
    I have an application which contains several web services. These services load up listeners when the services are invoked which makes them available for input. The user has the option of disabling automatic load of these services and invoking them manually by typing in the local url and starting the app. The can allow the autoload which uses a the or allowing the auto load to start. Currently the local url is hardcoded in a property file and this is how the services knows the local endpoint to envoke when it autostarts.
    <servlet id="AutoStart_01">
    <servlet-name>autoStart</servlet-name>
    <servlet-class>com.loadmy.StartupClass.Here</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    This works all fine and well until it's deployed onto a machine that runs a local weblogic cluster that has more than one jvm (and multiple ports) loading the application up.
    Problem
    The question is, how can you get the applicaton to recoginize the local url for the jvm that is running which can be on different ports? Here's what I've tried
    A - Using Inet.Address - This doesn't let you know what port your application is on
    B - Using the load servlet on start up ( Only the init() function is called and the request object hasn't been created and the request object is what contains ther protocol, server and port information)
    C - Loading a jsp page (READ... purposefully loading a jsp page) on application start. The thought here is that this contains a request object, but unfortunately on this doesn't work in my servlet container (currently tomcat 6 but the application is for a web logic machine)
    D - I thought about possibly using System.properties() but no luck there
    I'm at witts end on this one and I know there is something that can recoginze the local servlet container and extract the url and port from it.
    Any suggestions would be great.
    Flabergasted [sic]

    Hi,
    I had a simmilar requirement once, i also had to display some meaningful message with the busy mode icon, but i guess that comes directly from the WD Framework and is not possible to be changed. Refer the following thread, i raised that time.
    Web Dynpro ABAP
    Dont have much idea if somethig exists in portal for this.
    Regards,
    Runal

  • Drawing and some layout help for a simple control: thin lines and application start

    I am trying to create a new, simple control. The control should act as a grouping marker much like that found in the Mathematica notebook interface. It is designed to sit to the right of a node and draw a simple bracket. The look of the bracket changes depending on whether the node is logically marked open or closed.
    After looking at some blogs and searching, I tried setting the snapToPixels to true in the container holding the marker control as well as the strokewidth but I am still finding that the bracket line is too thick. I am trying to draw a thin line. Also, I am unable to get the layout to work when the test application is first opened. One of the outer brackets is cut-off. I hardcoded some numbers into the skin just to get something to work.
    Is there a better way to implement this control?
    How can I get the fine line drawn as well as the layout correct at application start?
    package org.notebook;
    import javafx.beans.property.BooleanProperty;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.scene.control.Control;
    * Provide a simple and thin bracket that changes
    * it appearance based on whether its closed or open.
    public class GroupingMarker extends Control {
      private final static String DEFAULT_STYLE_CLASS = "grouping-marker";
      private BooleanProperty open;
      private IntegerProperty depth;
      public BooleanProperty openProperty() { return open; }
      public IntegerProperty depthProperty() { return depth; }
      public GroupingMarker(boolean open) {
      this();
      setOpen(open);
      public GroupingMarker() {
      open = new SimpleBooleanProperty(true);
      depth = new SimpleIntegerProperty(0);
      getStyleClass().add(DEFAULT_STYLE_CLASS);
      // TODO: Change to use CSS directly
      setSkin(new GroupingMarkerSkin(this));
      public boolean isOpen() {
      return open.get();
      public void setOpen(boolean flag) {
      open.set(flag);
      public int getDepth() {
      return depth.get();
      public void setDepth(int depth) {
      this.depth.set(depth);
    package org.notebook;
    import javafx.scene.Group;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.FillRule;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import com.sun.javafx.scene.control.skin.SkinBase;
    * The skin draws some simple lines on the right hand side of
    * the control. The lines reflect whether the control is considered
    * open or closed. Since there is no content, there is no
    * content handling code needed.
    public class GroupingMarkerSkin extends SkinBase<GroupingMarker, GroupingMarkerBehavior> {
      GroupingMarker control;
      Color lineColor;
      double shelfLength;
      double thickness;
      private Group lines;
      public GroupingMarkerSkin(GroupingMarker control) {
      super(control, new GroupingMarkerBehavior(control));
      this.control = control;
      lineColor = Color.BLUE;
      shelfLength = 5.0;
      thickness = 1.0;
      init();
      * Attached listeners to the properties in the control.
      protected void init() {
      registerChangeListener(control.openProperty(), "OPEN");
      registerChangeListener(control.depthProperty(), "DEPTH");
      lines = new Group();
      repaint();
      @Override
      protected void handleControlPropertyChanged(String arg0) {
      super.handleControlPropertyChanged(arg0);
        @Override public final GroupingMarker getSkinnable() {
            return control;
        @Override public final void dispose() {
        super.dispose();
            control = null;
        @Override
        protected double computePrefHeight(double arg0) {
        System.out.println("ph: " + arg0);
        return super.computePrefHeight(arg0);
        @Override
        protected double computePrefWidth(double arg0) {
        System.out.println("pw: " + arg0);
        return super.computePrefWidth(40.0);
         * Call this if a property changes that affects the visible
         * control.
        public void repaint() {
        requestLayout();
        @Override
        protected void layoutChildren() {
        if(control.getScene() != null) {
        drawLines();
        getChildren().setAll(lines);
        super.layoutChildren();
        protected void drawLines() {
        lines.getChildren().clear();
        System.out.println("bounds local: " + control.getBoundsInLocal());
        System.out.println("bounds parent: " + control.getBoundsInParent());
        System.out.println("bounds layout: " + control.getLayoutBounds());
        System.out.println("pref wxh: " + control.getPrefWidth() + "x" + control.getPrefHeight());
        double width = Math.max(0, 20.0 - 2 * 2.0);
        double height = control.getPrefHeight() - 4.0;
        height = Math.max(0, control.getBoundsInLocal().getHeight()-4.0);
        System.out.println("w: " + width + ", h: " + height);
        double margin = 4.0;
        final Path VERTICAL = new Path();
        VERTICAL.setFillRule(FillRule.EVEN_ODD);
        VERTICAL.getElements().add(new MoveTo(margin, margin)); // start
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, margin)); // top horz line
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, height - margin)); // vert line
        if(control.isOpen()) {
        VERTICAL.getElements().add(new LineTo(margin, height - margin)); // bottom horz line
        } else {
        VERTICAL.getElements().add(new LineTo(margin, height-margin-4.0));
        //VERTICAL.getElements().add(new ClosePath());
        VERTICAL.setStrokeWidth(thickness);
        VERTICAL.setStroke(lineColor);
        lines.getChildren().addAll(VERTICAL);
        lines.setCache(true);
    package org.notebook;
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    public class GroupingMarkerBehavior extends BehaviorBase<GroupingMarker> {
      public GroupingMarkerBehavior(final GroupingMarker control) {
      super(control);
    package org.notebook;
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextArea;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestGroupingMarker extends Application {
      public static void main(String args[]) {
      launch(TestGroupingMarker.class, args);
      @Override
      public void start(Stage stage) throws Exception {
      VBox vbox = new VBox();
      BorderPane p = new BorderPane();
      VBox first = new VBox();
      first.getChildren().add(makeEntry("In[1]=", "my label", 200.0, true));
      first.getChildren().add(makeEntry("Out[1]=", "the output!", 200.0, true));
      p.setCenter(first);
      p.setRight(new GroupingMarker(true));
      vbox.getChildren().add(p);
      vbox.getChildren().add(makeEntry("In[2]=", "my label 2", 100.0, false));
      Scene scene = new Scene(vbox,500,700);
      scene.getStylesheets().add(TestGroupingMarker.class.getResource("main.css").toExternalForm());
      stage.setScene(scene);
      stage.setTitle("GroupingMarker test");
      stage.show();
      protected Node makeEntry(String io, String text, double height, boolean open) {
      BorderPane pane2 = new BorderPane();
      pane2.setSnapToPixel(true);
      Label label2 = new Label(io);
      label2.getStyleClass().add("io-label");
      pane2.setLeft(label2);
      TextArea area2 = new TextArea(text);
      area2.getStyleClass().add("io-content");
      area2.setPrefHeight(height);
      pane2.setCenter(area2);
      GroupingMarker marker2 = new GroupingMarker();
      marker2.setOpen(open);
      pane2.setRight(marker2);
      return pane2;

    The test interfaces are already defined for you - the 3rd party session bean remote/local interfaces.
    It is pretty trivial to create implementations of those interfaces to return the test data from your XML files.
    There are a number of ways to handle the switching, if you have used the service locator pattern, then I would personally slot the logic in to the service locator, to either look up the 3rd party bean or return a POJO test implementation of the interface according to configuration.
    Without the service locator, you are forced to do a little more work, you will have to implement your own test session beans to the same interfaces as the 3rd party session beans.
    You can then either deploy them instead of the 3rd party beans or you can deploy both the test and the 3rd party beans under different JNDI names,and use ejb-ref tags and allow you to switch between test and real versions by changing the ejb-link value.
    Hope this helps.
    Bob B.

  • Running a control on application start up

    Hi,
    I am using Weblogic workshop with the netui and controls framework.
    Does anyone know if there is a way to be able to access a control when the application starts. I need to initialise some static data on application startup.
    Normally I would just use a struts plugin to run some init routine, but because we are using DBControls to access the database I can't do this because I am unable to access controls from a POJO.
    Thanks for your help,
    Adrian

    Well two ideas (if ur on windows) u could try are -
    one, if you had a class file you could simply create a
    batch file on windows that says java <class> and then
    put that batch file in your startup so that the class
    is run at startup or else you could think of modifying
    the registry keys on windows to run this class at
    startup - whichever works for you.Or you could just jar the program up, adding a Main-Class indicator in the manifest, and then add a shortcut to the jar to the startup folder, as someone else stated. Theres little need to go messing around with DOS batch in modern windows.

  • Applications Start Page Profile Option Causing Issues

    Hello Oracle Gurus,
    I'm having an issue in a 12.1.3 instance that I think may be related to the "Applications Start Page" profile option.
    For testing purposes, we set the profile to a specific Self-Service page at the Site level. We eventually removed the Site level profile and added it at the user level just for specific users, but since the Site-level profile was set, every time we click the Home link in the upper right-hand navigation, we get an "unexpected error." If we attempt to log in as a user that does not have the Applications Start Page profile defined, we also get an unexpected error.
    After getting the error using either of the methods listed above, if we then try to navigate back to the login page, the instance throws a 500 Internal Error.
    If we close the browser and navigate to the instance again, we're able to log in without any issues with user accounts that have an Applications Start Page profile defined.
    Our "Self Service Personal Framework Mode" is set to "Framework Only" at the site level.
    Bouncing Apache seems to resolve the issue temporarily, but then it comes back again a few hours later...
    We've opened a Service Request, but has anyone else run into this before / have any ideas on how to fix it?
    Here are some related Metalink notes from 11.5.10:
    729375.1 (About the Applications Start Page profile option)
    331814.1 (Error on Personal Home Page when returning to 'Home' link)
    Thanks!
    Anne

    The issue is not specific to a responsibility or application.
    Here is the error:
    Fatal NI connect error 12170.
    VERSION INFORMATION:
         TNS for Linux: Version 11.1.0.7.0 - Production
         Unix Domain Socket IPC NT Protocol Adaptor for Linux: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
         TCP/IP NT Protocol Adapter for Linux: Version 11.1.0.7.0 - Production
    Time: 27-JAN-2011 09:46:02
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 110
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=172.30.31.107)(PORT=1502))
    Thu Jan 27 09:53:30 2011
    Incremental checkpoint up to RBA [0x42.e3635.0], current log tail at RBA [0x42.e37e1.0]
    Thu Jan 27 10:13:31 2011
    Incremental checkpoint up to RBA [0x42.e602b.0], current log tail at RBA [0x42.e6146.0]
    Thu Jan 27 10:33:33 2011
    Incremental checkpoint up to RBA [0x42.e7bc9.0], current log tail at RBA [0x42.e7d51.0]
    Thu Jan 27 10:53:35 2011
    Incremental checkpoint up to RBA [0x42.e995f.0], current log tail at RBA [0x42.e9ac9.0]
    Thu Jan 27 11:13:37 2011
    Incremental checkpoint up to RBA [0x42.ec163.0], current log tail at RBA [0x42.ec3f7.0]
    Thu Jan 27 11:23:48 2011
    Starting background process CJQ0
    Thu Jan 27 11:23:48 2011
    CJQ0 started with pid=8, OS id=17239
    Thu Jan 27 11:33:39 2011
    Incremental checkpoint up to RBA [0x42.ee08f.0], current log tail at RBA [0x42.ee216.0]
    Thu Jan 27 11:53:41 2011
    Incremental checkpoint up to RBA [0x42.efd07.0], current log tail at RBA [0x42.eff13.0]
    Thu Jan 27 11:54:02 2011
    Stopping background process CJQ0
    Thu Jan 27 12:13:43 2011
    Incremental checkpoint up to RBA [0x42.f25c0.0], current log tail at RBA [0x42.f2e4b.0]
    Thu Jan 27 12:33:45 2011
    Incremental checkpoint up to RBA [0x42.f4cae.0], current log tail at RBA [0x42.f4e4b.0]
    Thu Jan 27 12:53:47 2011
    Incremental checkpoint up to RBA [0x42.f6e8a.0], current log tail at RBA [0x42.f6fb7.0]
    Thu Jan 27 13:13:50 2011
    Incremental checkpoint up to RBA [0x42.fa3d0.0], current log tail at RBA [0x42.fa845.0]
    Thu Jan 27 13:33:52 2011
    Incremental checkpoint up to RBA [0x42.fc7d9.0], current log tail at RBA [0x42.fc989.0]
    Thu Jan 27 13:53:55 2011
    Incremental checkpoint up to RBA [0x42.fed4e.0], current log tail at RBA [0x42.ff12e.0]

  • Starting random apps and screen flicker when scrolling

    My Touch 2G suddenly started to launch random apps without me touching the screen. Besides starting random apps the screen flickers when scrolling. Any body have experienced the same? It started about 1 month ago and I have always taken good care of it. I have tried every possible thing I can think of when it comes to software. Full restore, jailbreak, full restore, back to factory, back to earlier versions of IOS, but no luck. It is pretty persistent. I am sure it is hardware related and don't mind paying to have it fixed. I tried two repairshops already and they  were not able to recover the reason for the malfunction.  I wonder whether there is anybody who has experienced the same or even knows what is wrong?

    Hey Kimwaldal,
    Thanks for using Apple Support Communities.
    Sounds like the devices are opening things on their own. You may want to follow this article to make sure the screens are working correctly.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Have a nice day,
    Mario

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.Not working in USA timezone.

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works fine in our side (Timezone,kolkata ,india even for Timezone,slvaniya,USA) but our USA client is telling that on changing the date it not starts from start-up sequence.Can anyone plz suggest the reason for it.

    This is the code which we have used.
    //////////Return if it is first time for the day or not//////////////
    + (BOOL)isFirstTimeToday {
    BOOL result = YES;
    NSDate *now = [[NSDate alloc] init];     /// represents the current time
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: now];
    NSDate *today = [gregorian dateFromComponents:components];
    [now release];
    [gregorian release];
    NSDate *savedDate = [[NSUserDefaults standardUserDefaults] objectForKey:LAST_TIME_VISITED];
    if (savedDate) {
    if ([today earlierDate:savedDate] == today) {
    result = NO;
    return result;
    ////////Stores the date/////////////
    + (void)userDidVisitReenforceScreenToday {
    [[NSUserDefaults standardUserDefaults] setObject:[NSDate todayAtMidnight] forKey:LAST_TIME_VISITED];
    ////////////What [NSDate todayAtMidnight] stores/////////////////////
    + (NSDate *)daysFromNowAtMidnight:(NSInteger)nOfDays {
    NSDate *date = [NSDate dateWithTimeIntervalSinceNow: (86400*nOfDays)];
    NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    NSDateComponents *components = [gregorian components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate: date];
    NSDate *dateAtMidnight = [gregorian dateFromComponents:components];
    [gregorian release];
    NSLog(@"dateAtMidnight : %@",dateAtMidnight);
    return dateAtMidnight;
    + (NSDate *)todayAtMidnight {
    return [self daysFromNowAtMidnight:0];
    Please Suggest..

  • I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    I created an application and in  that application if date is changed the application starts from splash screen on re-entering and if date is not changed and u re-enters the application then it open in page where u leaved.It works with iPod not with iPhone

    Try posting in the developer forums to see if you can get some assistance,you'll have to be a registered developer for access though.
    developer.apple.com

  • Macbook upgrade to Lion.. how do i minimize what applications start up from boot ?

    how do i minimize what applications start up from boot (start-up) ??
    excel, word, safari and mail are all opening
    takes too long

    Disable Resume...
    How To Disable Lion's 'Resume' Feature - MacRumors.com
    And if you restart your Mac from the Apple menu > Restart
    Deselect:   Reopen windows when logging back in

  • BI Publisher (Obiee 11g) Scheduled jobs start randomly after services restarting

    Hi everybody,
    I've a problem with scheduled jobs on BI Publisher that start randomly after server restarting.
    For example if there's a job scheduled every day at 8.00 am it works fine until the server is not restarted but when I restart it next job running start at 9.28 am (it is an example because the real start time is very unpredictable).
    In my case bi publisher is integrated with obiee 11g (11.1.1.6.2) and I've scheduled jobs with administrative user (weblogic). For this user I've set the Bi Publisher Preferences (report locale = Italiano-Italia, Report Time Zone = GMT +1:00) from obiee analytics user account preferencies.
    Can anyone have this problem too and help me?
    Thanks
    Annalisa

    These are not helpful. The first link is to OBIEE 10g and the second is just an install guide. I am having the same issue with BI Publisher returning java.lang.NullPointerException in OBIEE 11g. Any help would be appreciated. Thanks,
    Paul
    Edited by: pneedleman on Nov 17, 2010 10:15 AM

  • Pre-loading the Cache from Database during application start-up

    We are using Spring, Hibernate, Oracle Coherence 3.5.2 Weblogic Webservices
    Our requirement is to pre-load the cache during the application start-up most probably during Authentication/Authorization Service is invoked.
    We plan to load the data for other services from database into Coherence cache so that whenever user access that particular service he ends up hitting the Cache instead of database.
    We would greatly appreciate sample code snippets on how to write CacheInitializerBean with marker to demonstrate the state of cache.

    Hi Rob,
    Thanks for pointing to the article: Pre-Loading the Cache
    In fact i already looked at that article before posting. It just mentions how to load the data from database into Cache.
    What i am looking for is how to make this happen during application start-up. This is my first hurdle.
    The second one is as mentioned in the article http://coherence.oracle.com/display/COH35UG/Pre-Loading+the+Cache
    i wrote following code which never gets populated into cache. Not sure whats going wrong even though i see Hibernate loadAll() method loading all the objects in the console
    public   void populateCache() throws SQLException
        Map<Long, Object>  buffer = new HashMap<Long, Object>();
        int count = 0;
         List<Contract> contractList = this.getHibernateTemplate().loadAll(Contract.class);
         log.debug("contractList size="+contractList.size());
         for(Contract contract : contractList)
             Long key   = new Long(contract.getId());
             Object  value = contract;
             buffer.put(key, value);
             // this loads 1000 items at a time into the cache
             if ((count++ % 1000) == 0)
                  contractCache.putAll(buffer);
                 buffer.clear();
         if (!buffer.isEmpty())
              contractCache.putAll(buffer);
        }We would greatly appreciate your time in helping us resolving two hurdle blocks.

  • Pre-load the Cache during Application-Start Up

    Our requirement is to pre-load the cache during the application start-up most probably during Authentication/Authorization Service is invoked.
    We plan to load the data for other services from database into Coherence cache so that when user access that particular service he ends up hitting the Cache instead of database.
    Any pointers/suggestions on how to pre-load the cache during application start-up would be greatly appreciated. We are using Spring, Hibernate, Weblogic Web Services
    Regards,
    Bansi

    Hi Bansi,
    I were using following approach.
    First, we never use CacheFactory.getCache() in application code instead all instances of named cache were injected.
    On server side, I have an CacheInitializerBean which were starting cache preloading process (in separate thread). After preloading a special marker entry were put to the cache, indicating what data in the cache are consistent.
    When injecting named cache instance, we use a factory. This factory use CacheFactory.getCache() internally, but it check presence of marker object in cache an blocks until marker object will appear.
    Well in practice things are little more complicated but this is basic idea.
    Preload cache asynchronously and use marker to indicate completion of loading process.
    Hope this will help.
    Regards,
    Alexey

Maybe you are looking for

  • MSI 760GM-P34 (FX) and vishera

    So today came out the list of msi motherboards that will support the new vishera cpus. I was just wondering since i have the msi 760gm-p34 motherboard, why is it the only one that wont support the new cpus from the amd 700 chipset series? Every other

  • Substitute to be set

    Hi All, Our client has a requirement for approval of travel expenses. The employee's manager approves the travel request which is raised by the employee. 1.Just in case an employee's manager is absent, the provision for a substitution should be explo

  • Every thing that is wrong with the PRE's post!

    I tried looking through the forums but my phone is refusing to cooperate so I have to place this thread here. Please feel free to move it to the appropriate forum later. •The internet always seems to reload my pages making it impossible to hit the ba

  • Apprehensive

    I ordered SL but before I install it on my first gen Intel iMac, I want to ask about my software. I see a lot of problems mentioned here so I am even more apprehensive. I use Photoshop CS2. I am a writer and I have tons of Appleworks WP files from pa

  • IPhone, calls, and standby...

    I've noticed on occasion the following issue with my iPhone (which has the current firmware - 1.1.4). I start a call, and then push the button to lock the phone. Doing this occasionally drops my call. Anyone ever see this problem before? Thanks, Char