How can i make my java app auto reconnect to Oracle.

Scenario:
when i am working with my java app if suddenly Oracle server connection unplugged. Then i got some problems regarding database.
When they replugged the connection, i need to restart my app again. Then it works fine.
Question:
When the database is replugged or restarted, then how can i reconnect to the DB automatically with out restart my app. Please letme know is there any auto reconnect process is there for Oracle.

If you want your application to reconnect, you would need to add logic that catches the exception that gets thrown when the connection is lost and tries to reconnect.
Justin

Similar Messages

  • How can i make a simple app?

    Hi,  i just became an apple develiper,  Im wondering how to make a simple app like a "flashlight" like app,  Can anybody help me out?  would i have to start from scratch or could i use someone else's start??

    Use your logon to the iOS Dev Center and see this links:
    iOS Human Interface Guidelines
    iOS Starting Point
    Start Developing iOS Apps Today
    App Development Overview
    App Store Review Guidelines for iOS Apps
    Your First iOS App

  • How can I make a loyalty app for small business

    I am experienced with Adobe Creative Cloud - no prior coding experience - however, I have assisted on a few websites that are Word-Press based.
    I am working with a small business that would like to have an app with basics like their menu and products - however they would like a loyalty card on the app.
    How can I use the CC to make this happen?
    Any feedback would be appreciated.

    Sorry, you can't. Design change with iOS 7.0. Tell Apple you don't like this here:
    http://www.apple.com/feedback/iphone.html

  • Web app: How can I make a web app input form post directly to a sub category

    Please, how can I go about this? Some of the ideas coming to my head is to  replace the section I require with the  generated webapp input form code with this:
    <input type="radio" name="CAT_Category" value="{module_category, ID} onclick="javascript: return false;" >2013 /> // Not tested because am not sure of the markup
    Am I on point ? Or is there any other way I can get this done.

    I Trickster, pardon me if am not clear enough. But this is it. I have many BC Categories setup for different web apps. If you use the module {module_categorylist} only. BC will populate all the categories on the BC site, instead of a specific category  relevant to the web app. If it is {module_categorylist, categoryID}, you are telling BC to use the the categories in a specific category.
    When you say that you want to assign a web app item to a sub-category... do you mean the built in BC categories . I want to do this via the web app input form not through the admin.
    Do you have a top-level category that contains all the relevant sub categories that the user could use to classify/categorize the web app item upon submission?  Yea I have a top category that the user could use. It is this top-level category ID, I have used with the categorylist module.
    If you don't want the user to choose the sub-category themselves, how do you plan to derive the sub-category anyway? Thanks again Trickster. You have provided the solution to that with the hidden input field code you shared earlier. The sub-category has been pre setup as usual in BC and the sub-category ID would be used as you instructed in the code. This is intended for another web app that won't require users selecting a category. This is the example you shared:
    <input type="hidden" name="CAT_Category" value="my category ID"/>
    Using my example above I was able to test and have it working (using {module_categorylist} with the SELECT element) on a web app input form and when I submitted the new web app item it was classified in the category I chose. Yes Trickster, it works for me too that way. the web app item was classified perfectly, but if you go to your the web app item submitted at the admin-end, you will discover in that the category the user selected in the front-end is not selected, even though the item was classified
    I have highlighted it here: http://screencast.com/t/dwiXzBFXp
    The option selected  by the user is not captured. It often defaults to the 2012, even when the user selected 2013 and the item has been classified as 2013.
    I hope am more clearer. Thanks for all the effort.

  • Without hard coding it how can I add a java app to my path variable

    I'm not sure how to phrase this but I wrote a quick utility program and I wrote a quick batch file to call the program. I put the batch file in a folder in the path variable and put the folder containing the classes in there as well. I was hoping that when I called the batch it would check the relative location and see the folder for the utility program and run it. However I got an error message acting like it couldn't find the class. I think it's checking the current directory I'm in, not the current directory of the batch file that's actually calling it. I don't want to hardcode the path into the batch file since it's mobile and could be run from different folders so I was wondering how can I fix this?

    I am assuming you got a ClassNotFoundException?
    echo the command your batch file is running to this forum and then I'll be able to help you

  • How can I make my iphone not auto open iphoto?

    I have an iphone 4 and I'm running Mac OS X Snow Leopard 10.6.7 on MacBook Pro.  My iphone is running iOS 4.3.3.
    My problem is, is that every time I plug my iphone in to my Mac it automatically opens iphoto 8.1.2 Vers.
    How do I make it stop?

    Go into iphoto preferences and tell it to do nothing when a digital camera is attached.
    It will not open when any camera is attached.

  • How can I make my java program double clickable?

    I want to make a shortcut on desktop for my java program, in other words, i want to make it double clickable.
    Can someone please give me a step by step instruction on how to do this?
    Thank you very much.

    [Creating executable jar files|http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html]
    [create a batch file |http://forums.sun.com/thread.jspa?threadID=5190624&messageID=9978734]

  • How can I make a Java program pyramid using for loops??

    Hi guys, so I'm stuck with my program here... I don't know how to make it work, and i've been trying really hard.. So now i give up and need some guidance.. Please help me here.
    Your job in this assignment is to write programs to solve each of these six problems.
    1. Write a GraphicsProgram subclass that draws a pyramid consisting of bricks
    arranged in horizontal rows, so that the number of bricks in each row decreases by
    one as you move up the pyramid, as shown in the following sample run:
    The pyramid should be centered at the bottom of the window and should use
    constants for the following parameters:
    BRICK_WIDTH The width of each brick (30 pixels)
    BRICK_HEIGHT The height of each brick (12 pixels)
    BRICKS_IN_BASE The number of bricks in the base (14)
    The numbers in parentheses show the values for this diagram, but you must be able
    to change those values in your program.
    * File: Pyramid.java
    * Name:
    * Section Leader:
    * This file is the starter file for the Pyramid problem.
    * It includes definitions of the constants that match the
    * sample run in the assignment, but you should make sure
    * that changing these values causes the generated display
    * to change accordingly.
    import acm.graphics.*;
    import acm.program.*;
    import java.awt.*;
    public class Pyramid extends GraphicsProgram {
    /** Width of each brick in pixels */
         private static final int BRICK_WIDTH = 30;
    /** Width of each brick in pixels */
         private static final int BRICK_HEIGHT = 12;
    /** Number of bricks in the base of the pyramid */
         private static final int BRICKS_IN_BASE = 14;
         public void run() {     
    }That's my problem.

    yo, so i figure out my for loop. my code is very very very very ugly, so dont laugh i know its ugly! just wanna ask for some tips
    public void run() {
              int initBrick = 30;
              int initPlacement = (getWidth() - BRICK_WIDTH) / 2;
              for (int i = 0; i < initBrick; i += 30)
                   int initX = i;
                   int x = initX + initPlacement;
                   GRect brick = new GRect(x, 0, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 60; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 15;
                   int y = 12;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 90; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 30;
                   int y = 24;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 120; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 45;
                   int y = 36;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 150; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 60;
                   int y = 48;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 180; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 75;
                   int y = 60;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 210; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 90;
                   int y = 72;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 240; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 105;
                   int y = 84;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 270; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 120;
                   int y = 96;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 300; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 135;
                   int y = 108;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 330; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 150;
                   int y = 120;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 360; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 165;
                   int y = 132;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 390; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 180;
                   int y = 144;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
              for (int i = 0; i < 420; i += 30)
                   int initX = i;
                   int x = (initX + initPlacement) - 195;
                   int y = 156;
                   GRect brick = new GRect(x, y, BRICK_WIDTH, BRICK_HEIGHT);
                   add(brick);
         }So yeah, it's very ugly. not general. BUT now; I know the logic of the program..
    I need to change 3 variables here.
    the Y var, the X variable, and the size of the loop test..
    so I need to make a one compact for loop that will change those 3 for every time the loop finish, or for every row the variable will change...
    Ill try to think again, ill head to the balcony, and squeeze my brain. YEAH it took me this long to figure this out, anyway im a noob YET. But i was working a while ago.
    ANYWAY, leave some tips please.. I NEED TIPS NOT SOLUTION

  • How can i make my ipad apps work again?

    i have this iPad2 wifi+3g  for like five months now but iv never tried sync it on my laptop. Just yesterday i decided to try sync but im frightened when a pop up window appears said that syncing will erase all the data i had on my iPad including my favorite movies and apps.It's been two days now that i've been tinkering my iPad apps.My 1st problem now is i lost all my movies that my friend installed on my iPad and i dont know how to retrieve it. 2) i foldered my apps and sync it and also  update it to iOs5   but after the update and syncing my apps doesnt work now like my bookworm  and few other games doesn't work but it's still there on my folder.
    Can someone help me please...  a detailed instruction is immensely appreciated .

    If the movies that your friend installed on your iPad were not bought with your Apple ID or are not in your iTunes library - they are gone - unless he reinstalls them or you sync again with iTunes (if they are in your library).
    If you bought the movies with your ID and you live in the U.S., you can download many movies again for free using the purchased tab in iTunes.
    If your third party apps no longer work, try downloading another app on your iPad - any free app is fine. That will reset your iTunes authorization and should reset the other apps.

  • How can I make the 'remote' app work across a routed network?

    So, I have trusted and guest networks, with iTunes running on a Mac on the trusted network. I'd like iOS devices on the guest network to be able to use the 'remote' app, specifically the DJ function.
    I think there will be two components:
    -- service discovery. Apple likes mDNS (Bonjour), so possibly can be done like this: https://discussions.apple.com/thread/2751128?start=0&tstart=0 but one would need to figure out what service discovery records remote is looking for.
    -- traffic. Appropriate traffic would need to be allowed between the two networks.
    Has anyone looked at the wire traffic for remote, or gotten this to work?
    Thanks,
    Heath

    Welcome to the Apple Community Dylan.
    There is no way to set up home sharing on the Apple TV without the original remote from Apple, you will need to purchase a new remote from the Apple Store.
    If you already have homesharing set up on the Apple TV, you merely need to set it up in the remote app settings.

  • How can i make my own app?

    I would like to make an app for my small business, not to sell to the public. Our sales people (only 4 of them) have iPads and I would like to make a catalog of our products into an app so it's easier to sync and use for the sales team. I've found several online companies that will help me but not sure who to go with or the best option...or if there's something I've overlooked. I've tried Dropbox and Goodreader and while that works...an app to me sounds better. The catalog would consist of pictures, product descriptions, some video.
    Thanks!

    You could start out with Apple's iWork apps like Pages for word processing and Numbers for spreadsheets (or something similar from the App Store). These apps allow you to embed photos and videos, or links to your own YouTube videos.  And you could use iCloud or DropBox for sharing and collaboration between your teammates. 
    Experimenting with these off-the-shelf apps may give you some ideas for custom solutions that better meet your business needs.  Good luck!

  • How can I make my iPhone 4S auto-push my email?

    As a student in college, I constantly email my professors back and forth but waiting 15 minute intervals until my mail refreshes is ridiculous.  I can't seem to find a way around this... I have just switch to the iphone from a blackberry which automatically pushed my email on its arrive to the server, so this is extremely annoying that I have to wait or manually push my mail. I mainly use my college email account which is not associated with g-mail, hotmail, yahoo etc. incase that might be an issue. 

    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How can I make an app with xcode that works like a news app? So that I can post articles on the app. Do I have to use a database or can I connect the app directly with my mac?

    How can I make an iphone app with xcode that worrks like a newspaper? So that I can post articles on the app while it is on appstore. Can I directly connect the app with my mac or do I have to connect it to a database?  Thanks

    Funny, I was thinking you'd want to use the prescribed deployment that Apple went to all the trouble to provide so you wouldn't trot down the garden path with some other implementation, only to find your app rejected with the admonition to use Newsstand after all...
    If you're all hot to ignore all that & DIY, why are you even asking...why not just go for it...

  • How can I make an ant file that launches an AS project app in a debug flash player that traces to the flex console?

    How can I make an ant file that launches an AS project app in a debug flash player that traces to the flex console?
    Basically I like the control over the compiling process that I get by using Ant - but I really want traces to come up immediately without having to switch contexts.
    I have an ant file that successfully launches a swf in the flashplayer - but I don't know how to make the flex console start displaying the trace output. I assume that I will have to point it to the appropriate trace output file - but I am not sure how to have ant even address the console.  Is this possible?
    Here is the the target node from my ANT file:
        <target name="launch">
            <exec executable="${FLASHPLAYER_EXE}" errorproperty="trace.output">
                <arg line="'${DEPLOY_DIR}\test.swf'" />
            </exec>
        </target>
    Thanks for any thoughts, or alternatives!

    For the record, I ended up using Logwatcher - it worked perfectly.
    http://graysky.sourceforge.net/

  • How can I make a filter in number app

    How can I make a filter in a row in number apps? Sometimes i need to filter my name in a list from an excel sheet. What I need is to know if I van use data filtering in number app.

    It's best to never move iTunes media around in Finder. Add it to the Library through the iTunes interface by dragging them into the window. Once they've been added to the library, you can try using Get Info on the files in iTunes and change the tag info to make them group together. (A unique album name should do this.) If you want them to be included with TV Shows, you can try using Get Info to set the Kind to TV Show (found under the Options tab in Get Info), but I'm not sure if it will work. Otherwise, you could make a playlist and drag them into to access them all in one convenient spot.
    If you add the items as noted above and they still do not appear in your library, it's probably because they are not a compatible format.
    Message was edited by: Diane Wordsmith

Maybe you are looking for