DB is only updated when my Application Exits

My DB is updated only when my Applicationstops running. How can i make this changes done while it's still runnig?
This is the flow of my application:
(1) opens a db connection to retrieve input data.
(2) Opens HttpUrlConnection, one per input request - this request will add records to the DB.
HttpURLConnection connection = (HttpURLConnection)((new URL( currentObject.getRequest() )).openConnection());
connection.setRequestMethod( "GET" );
connection.setUseCaches( false );
connection.connect();(3) waiting for DB to update after stage (2).
(4) Using the previous DB connection to retrieve the new records added before. the perfom more actions.
Statement dbStatement = con.createStatement();
dbStatement.execute( query );
ResultSet  rs = dbStatement.getResultSet();My problem is with step (4). when I try to get the new records from the DB I can only get 1 record back. Then - as soon as the application is done - all the records are inserted to the DB.
I tried closing and re-instansiating the DB connection, I tried closing the HttpUrlConnection objects, I also tried to extend the wait period untill the DB would be updated but nothing worked.
How can I get My DB Updated while my Application still running?
Thanks,
Caorla.

I'm using the HttpUrlConnection to use another component in my system that is only operated by HTTP requests.
That component is updating the DB, and then I use this generated data.
I'm using:
1) HttpUrlConnection to start a component that updates my DB.
2) java.sql.Connection to read Data from my DB.
thogh I have to send a URL to the other component, I'm not sure if HttpUrlConnection is the right object for me.
I'd be happy to get other suggestions.

Similar Messages

  • I have comcast email why is it not automatically updating on my phone and alerting me I received an email?  It only updates when I open the email folder.

    I have comcast email why is it not automatically updating on my phone and alerting me I received an email?  It only updates when I open the email folder.

    So I will just have to keep checking my mail folder?  That's crazy, I did not have a problem with my Android. Is there a way to get around this?  I have been waiting on an email alert and I keep forgetting to check my mail folder, this is very frustrating.
    Thank you for your help

  • How can I have apps such as Words With Friends only update when on WiFi?

    After only having my iPhone for 5 days I have used 65% of my data, and I believe most of it is due to words with friends and chess with friends and hanging with friends.  How can I have apps such as those only update when on Wifi, or only update when I tell them to?
    I appreciate all feedback.

    Hold down the app till it jiggles then a minus sign will appear, tap the sign and the app is gone

  • Problem is not updated when converting applications account

    When converting Apple Store account from state to state that does not show you the applications that need to be updated

    ????????????????????????????????

  • My mail only updated when I open it up

    I have gmail and I would like my phone to let me know when I get a new email. But it only opens new messages when I open the mail up

    It has to be set up for push, or fetch at a certain interval. The only way for push is if it is set up as an Exchange account, and I believe that cannot be done anymore. They have stopped support for new active sync accounts.

  • Yahoo IM only updates when I unlock my Palm Pre (1.3.5.1)

    In the messenging app, any IMs I get to my yahoo account will queue and not notify until I unlock (with password) my phone.
    This means that I need to repeatedly lock and unlock my phone to stay current in the conversation.. obviously annoying...
    anyone else having this issue? palm, are you fixing this?

    What type of data connection are you trying this with? I know 1.3.5.2 adds the ability to update
    "over a 2G (1xRTT , GPRS , EDGE ) data connection"
    I suppose if you have one of those data connections with 1.3.1 it will not allow it to update? Not sure if thats the  message it will give in that case, just speculating. 

  • Smart Collections : Without Keywords does not update when removing items

    I removed a folder from Lightroom 4 (Beta1)
    Smart Collections : Without Keywords shows 325,
    But there are only 8 photos in my entire catalog.
    It appears the number of Pictures without keywords is not updating after importing or removing photos
    Lightroom 4 (Beta 1) x64 Windows
    Windows 7 x64

    had another go today
    It appears its only updates when openeing or closing LR4, or if you add/remove a keyword

  • Whcih function to use to cleanup/release resources before application exit?

    I need to release system resources and cleanup etc before my JavaFX application exits?
    Where should I write the code?

    In [javafx.lang.FX|http://java.sun.com/javafx/1.2/docs/api/javafx.lang/javafx.lang.FX.html] class, there is the static function addShutdownAction() which is called when the application exits.
    You can register several functions.
    But some people report issues, like being unable to do an HTTP request to save parameters on server in these callback functions (the application exists before completion).

  • After installing the newest update, when I try to open a saved page Firefox only opens the homepage. Reset didn't help.

    I am a web designer. I have saved pages that I update and upload to websites all the time. Now, after the latest updates, when I try to open these saved pages it only opens Firefox and loads the homepage. The saved page does not open. If I'm to keep using Firefox, which I would prefer, I need this functionality back.

    ''jscher2000 [[#answer-670981|said]]''
    <blockquote>
    What do you have set up as the default application for .html files? Or are you opening another kind of file that isn't normally/automatically associated with Firefox?
    If you drag and drop the file onto a tab (which normally would replace the page there with the local file), what happens?
    </blockquote>
    I had tried all the suggestions. None of they helped. I can open the files by browsing for they after Firefox is open. I was able to spend some more time troubleshooting the issue yesterday afternoon. The issue has to do with the 64-bit file system. When I right click and select open with and then point it to the installation folder in the Program Files (x86) folder, it still won't open the file just opens to my home page. I did notice that when I was browsing for Firefox.exe that it defaulted to the Program Files folder not the Program Files (x86) folder. So I renamed the exe to LittleFox.exe and browsed for that exe and Firefox would then open the files as expected. So my guess is that it is a registry setting that is all the headache. I don't have time to run that problem down but will just use my workaround by renaming a copy of the exe and use that with my file association.
    Thanks

  • How do i uninstall iphoto? it was preinstalled on my macbook pro when I bought it used and I can only update with the previous owners password.

    how do i uninstall iphoto? it was preinstalled on my macbook pro when I bought it used and I can only update with the previous owners password.

    Do you have the current MacOS X version 10.10.2?
    Then you can simply move iPhoto from the Applications folder to the Trash,
    sign into the App Store with your own AppleID
    reload the "Featured" main page of the AppStore with ⌘R,
    then download iPhoto with your own AppleID.
    Make a backup of your iPhoto Library, before your launch the new iPhoto the first time,
    If your current system is not Yosemite, you can only buy a boxed iLife 11 version of iPhoto to install it independent of the previous owner.

  • Update issues. says cannot connect to net but it is? Access itunes fine but wont connect for update, only occured when i did update to itunes on computer...help!

    Installe dnew copy of itunes, now cannot update when propmted after plugging in ipod, says not connected to internet. then trie to go itunes, which was fine. computer is connected to net ....
    Microsoft Windows XP Home Edition Service Pack 3 (Build 2600)
    System manufacturer System Product Name
    iTunes 10.3.1.55
    QuickTime 7.6.9
    FairPlay 1.11.17
    Apple Application Support 1.5.2
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 3.4.1.2
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 2.0.5.0 (214.3)
    Gracenote SDK 1.8.2.457
    Gracenote MusicID 1.8.2.89
    Gracenote Submit 1.8.2.123
    Gracenote DSP 1.8.2.34
    iTunes Serial Number 0012AC880C0FDE28
    Current user is an administrator.
    The current local date and time is 2011-07-06 01:02:01.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    NVIDIA GeForce 7025 / NVIDIA nForce 630a
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: f3716be92491fd1a33f7e647a889bf41
    iPodService 10.3.1.55 is currently running.
    iTunesHelper 10.3.1.55 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name: {BDA8D3FD-3CCE-4BCF-A357-0A51184CF67C}
    Description: NVIDIA nForce Networking Controller - Packet Scheduler Miniport
    IP Address: 192.168.1.3
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.1.1
    DHCP Enabled: Yes
    DHCP Server: 192.168.1.1
    Lease Obtained: Wed Jul 06 00:38:07 2011
    Lease Expires: Thu Jul 07 00:38:07 2011
    DNS Servers: 192.168.1.1
    Active Connection: (none)
    Connected: No
    Online: No
    Using Modem: No
    Using LAN: No
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Enabled
    Firewall Information
    Windows Firewall is off.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was successful.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-07-06 00:56:50.
    diagnostic report. no windows firewall, norton security 2011

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1.3. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
     Cheers, Tom

  • App crashes when I click button but only in a tabbed application.

    Hi.
    I have a tab bar controller and on the first view controller there is a button and an output label. Pressing the button takes you to a second view via a modul segue and this view contains a pickerview with an output label and a Done button. The selected row in pickerview is displayed in the output label and when you press the Done button I want the selection to be displayed in the output label on the initial view controller.
    However, when I click the done button, the app crashes. This only happens when built as part of a tabbed application, if I use the exact same code in a seperate application using just the 2 view controllers it works perfectly.
    Hmm, as soon as I can work out how to copy and paste my code here I will post it.

    I too get the same error:
    Faulting application name: wwahost.exe, version: 6.3.9600.17031, time stamp: 0x53085927
    Faulting module name: atidxx64.dll, version: 8.17.10.560, time stamp: 0x537ea1cf
    Exception code: 0xc0000005
    Fault offset: 0x000000000006f403
    Faulting process id: 0xa30
    Faulting application start time: 0x01cf8522d693203a
    Faulting application path: C:\Windows\system32\wwahost.exe
    Faulting module path: C:\Windows\system32\atidxx64.dll <-- PROBLEM RESIDES HERE!
    Report Id: 1ea5f7e2-f116-11e3-82a0-54271e32d2cb
    Faulting package full name: Microsoft.ZuneVideo_2.2.902.0_x64__8wekyb3d8bbwe
    Faulting package-relative application ID: Microsoft.ZuneVideo
    I have the latest Radeon graphics drivers, I've even tried beta drivers and it is looking like it is AMD's drivers which are at fault.
    Windows updates still have not resolved the issue, which has been going on since last December. the 13.2 Catalyst drivers work, but none of the new drivers work with modern apps =(
    When I switch over to the Intel 4600 graphics onboard, all apps work flawless. I have the latest Mobo driver, chipset drivers, windows up to date as of 15 minutes ago. Can some one send this to highest tier support and get on AMD's case about proper debugging
    of windows 8.1.1 drivers. =) Ty Rob Cruz

  • In ical, only since the update, when I look at the day view, I can no longer scroll down indefinitely; it stops at one day only

    Since the update, when I use ical , and am on the day view, I no longer can scroll down through multiple days; it stops at one day only. Seems like a poor design change. Any idea how to reverse this?

    cfromflorida,
    Try swiping left/right works for me.

  • Will applications update when downloaded with a different iTunes account?

    Here is my scenario:
    My girlfriend bought an iPhone. To sync her contacts I used iTunes on my computer, unknowlingly setting up her iPhone to have my iTunes account set up on it. Since I didn't realize my iTunes account was saved to her iPhone, she proceeded to download several free apps to her phone, all under my account.
    After realizing what had happened when we tried to sync the iPhone to her computer, I did some research on the web and figured out how to get her iTunes account on the iPhone (I accesse the store on her computer and then synced her iPhone to it - problem solved). To allow her to continue using the applications on her phone, I authorized her computer to use my iTunes account.
    My question: If her phone now has her iTunes account, but still has some applications originally downloaded under my account will the app store still check for updates for these applications?
    Also, are there any other considerations I should be aware of with this situation?
    Thanks for your help,
    George

    Free applications are easy to "re-purchase"
    Lets say you bought Travel Planning software for $39 under an appleID with your work email address. Then you got a mobileMe account for personal use and that of course is an appleID too. Well, good luck getting updates for your $39 purchase. You "can" do it...but it means you have to logon to the iTunes store as the old account get the updates, log back into the first account to get updates for the apps purchased with that account...and then sync to the iPhone. Lots of fun.

  • I added apps by syncing with a Mac.  It was under my husband's ACCT. When I tried to update apps on my iPad, it was his account.  How do I change this?  It only happens when I try to update apps

    I added apps by syncing with a Mac.  It was under my husband's ACCT. When I tried to update apps on my iPad, it was his account.  How do I change this?  It only happens when I try to update apps

    Apps will always be tied to the account from which they were purchased.
    If they were purchased from your husbands account, then they will have to update using that account.

Maybe you are looking for

  • Error when releasing credit memo to accounting

    Hi, When I try to release the credit memo to accounting the system throws the following error "Account type/account for invoice reference does not match item". Anyone know the reason please? Thanks, Shankar

  • Date "dd/MM/yyyy" / Internationalization BC4J

    I'm having troubles to use BC4J Data Tags of Date type in my native format, portuguese. I'm trying to use another mask, the default is "yyyy-MM-dd" and I need "dd/MM/yyyy". In JDeveloper, I make an entity called "EntX" with an attribute "data" of Dat

  • Error 'Unit ST is not created in language EN...' at conversion exit

    Hi When i try to load a flat file i have this error message : Error 'Unit ST is not created in language EN...' at conversion exit CONVERSION_EXIT_CUNIT_INPUT (field SALES_UNIT record 1, value ST) My source has unit field. in the field in have sometim

  • Trying to Import AVI file to iMovie - Error -8969

    Like some others before me, I too am having trouble importing .avi files to my iMovie version 4. Acccording to Command i, they are Motion JPEG OpenDML (they are .avi files from a Canon digital camera). They are viewable in QT. Several posts suggest t

  • Q10 business practices are hurting your best customers

    Its sad that you decided to sell this phone exclusivly with the big (highest priced) cell providers (at least in Canada) I am not a fan of Rogers or Bell but am a big supporter of blackberry products. I really wanted this phone and after waiting a mo