Tricky problem-any solutions???

Our project is its final stages, but our client has requested for migrating to DB2 DB. The problem with DB2 is that it has only one connection. Bcause of this when i click on submit repeatedly..the system hangs. What is happening is the first connection is in process and comes in the second connection... and the process hangs.
What i tried doing is made my connection a global static object. And when ever a connection is needed, before returning a new connection,i check for any existing connection and if it is not null, i make it null and close the connection. But when click many times and if the system is slow it is still happenning.
By the way i am using j2ee1.3 and tomcat 4.1.
Is there any method in j2ee to know if the request has completed its process or something like that???.
Any suggestions how to deal with this prob.
Your help is most needed..
Thanks

Sorry i think you got me wrong.
Let me explain it clearly
Currently we are migrating from db2 to db2e.
db2e allows only one database connection.(limitation of db2e)
ie i have to close the current connection object before
getting the new Connection object.
I have many links on my home page where every link
needs the connection object to do some database operations.
As i can have only one database connection, when i click
on the links repeatedly or when i play around with the links,
i get exceptions saying that i cannot have more than one connection
and results in a blank page or error page.
Currently my application has to handle this situation,
ie even if the user clicks continuosly on all the links or plays
around with the links it has take the last request into account
and display accordingly
I have a databaseConnection class which returns me a Connection object
To achieve the above funtionality i tried making the Connection object as static, so whenever i call the function to get the Connection object i check whether the current connection object is open or is not null.
if it is open i close and make it null and return the new connection object.
This seems to be working to some extent but not stable.
Iam not sure how does the server process when many requests are made and only one connection object is available at any point of the time.
Iam not sure how to get it working and stable.
One more solution i can think of is to declare a global variable
which tells us whether a request has been made.depending on this
variable i can restrict the user by clicking on the links reapeatedly.
but this is very tedious and also i have a time constraint.
any advice
I hope you understand my problem.
tks in advance

Similar Messages

  • Sudden Crippling Airport Problems, Any Solutions?

    I installed 10.5.3 quite a while ago & after some initial downturns in the connection speeds things were back to normal (a constant full 4 bars in the airport signal strength)
    Now, suddenly the airport strength is plummeting to 2 & 1 bars for no reason. The internet is frankly becoming unusabley slow. Pages taking over a minute to render, its unbearable!
    I updated to the latest Airport Utility to see if that would change things but no joy.
    I wonder if anyone can shed any light on the Console massages i have been getting & if their are any solutions to this problem.
    Thanks.
    12/09/2008 11:22:48 Error: airportd MIG failed = 1 ((os/kern) invalid address) (port = 71939)
    12/09/2008 11:22:55 LNT MakeTCPConnection: bad address/port 192.168.1.1:0
    12/09/2008 11:22:55 Legacy NAT Traversal - unmap request failed with error -65549
    12/09/2008 11:23:30 AirPort: Roam (Beacons Lost)
    Thanks again.

    Hi, heres a few suggestions:-
    (1) completely delete your wireless details from your mac & Reboot
    (2) Reboot BOTH Modem & Router
    (3) Your Mac should pick up your wireless signal & all you will need to do is enter your key.
    (4) Make sure you are using Interference Robust""
    (5) Make sure your Modem & Router are a far apart as possible.
    (6) If none of the above helps call your ISP.
    (7) You may have to completely reset your router, go to the manufacturers website for How To..
    Keep us informed.........L

  • WRT55AG v2 lockup problem -- any solution?

    Has any solution or workaround ever been found for the "random lockup" problem with the WRT55AG v2? (That is, the problem where the box goes completely unresponsive and can be revived only by power-cycling?)
    The latest word I've managed to find has been that no solution exists -- that Linksys won't acknowledge the problem, no firmware update is available from Linksys to address the issue, and the version-2 hardware platform is not supported by any third-party firmware. But I'd be overjoyed if it should happen to turn out that anything has improved in this regard.

    My router is already running the last firmware from Linksys (version 1.79, released in 2007).
    Sorry to have to differ with you, but this lockup problem with the WRT55AG has been reported many times on the net -- including reports from people confirming they were running the latest firmware.  Go to Google and search for the following words (no quotes):  wrt55ag lockup (I got 1,790 hits on this just now) -- or:  wrt55ag lockup 1.79 (four hits) if you're not willing to credit any report that doesn't explicitly identify the firmware version in use.

  • MSI cycling fan problem, any solution in sight?

    Have msi wind top ae 2430 non 3d, fully updated. Problem: At startup or wakeup the fan starts cycling, revs up to vacuumcleaning level and then dies down to a stop, then revs up again. This annoying behaviour continues for some 5-10 minutes before it settles down at normal almost silent noise level. Seems not to have with high temperatures to do as its settles when warm. Cant find any bios setting regarding fans or temperatures. Tried other fan control software, but no fanspeeds/temperatures/volt settings are reported. How do you get control over the built in fan? How was it controlled at delivery? Seen others with this problem, but never any solution. My whole family wakes up when the kitchen windtop does its thing in the middle of the night. Some loose fan control cable inside?
    I previously got the answer that the fan can not be controlled, its automatic.
    So today I came across a long forum thread about the same problem with MSI laptops, the GE60. ( https://forum-en.msi.com/index.php?topic=162459.0  )
    Is the solution, the EC-reset descibed there applicable for other MSI systems as well? Is there really no way to control the fan?

    MGW wrote:
    The Community Hosts have fixed the problem, you should be able to stay logged in as long as the browser you use stays open, once you close it, you will be logged out.
    That's not the case here. I've been logged out three times this afternoon already, without my having closed Firefox 3.6.19 under Tiger 10.4.11.  I'm within roughly 100 miles of Apple Headquarters in Cupertino.
    Please don't interpret this as a complaint against Apple or the forums.  I'm familiar with the miserable performance of Jive software. 
    CORRECTED: Firefox 3.6.19
    Message was edited by: Ramón G Castañeda

  • Illustrator CS6 64-bit dvaui.dll and msvcr100.dll crashing problem, any solution?

    First things first, trying to find a tech support Email address or phone number has been infuriating.  The "3-step support wizard" which results in "go to the forums" is also infuriating and insulting.
    I have a Windows 7 64-bit PC running CS6 64-bit (updated/current), and it's crashing at random (2-3 times per day).  I see events recorded in the event log showing dvaui.dll and msvcr100.dll as the source.  Other people have raised this as an issue, and all I see are guesses.  Does Adobe have a credible solution for this yet?
    I've tried running as a domain admin, which did not help.
    Illustrator CS6 32-bit seems to be working perfectly (4 days straight, no crashing).
    It seems to currently affect only one computer (5 others are fine).  It's not repeatable, and has no discernible cause.
    Also, format and reinstall is neither a solution nor an option.
    To be honest, I'm looking for Adobe to address this directly: do you know why this is happening, and how long until it is solved?  If an Adobe tech support will open a case, I have a file that the designer (I'm not the designer) was using during one of the crashes.  I don't know if the crashing will be related (to the file), but I have the file just in case.
    David.

    Hi Larry,
    Thank you for responding.
    > CS6 is current in that it is still available for purchase and in the CC but it is now two versions behind.
    I'm not quite sure what you are trying to say.  Can you be explicit, please?
    > As to your problem have you tried downloading the .dll files from Microsoft and reinstalling them?
    I have copied and re-registered the DLL files from a known-good machine (that is to say that the machine doesn't exhibit any of the symptoms as the above machine), which did not help.
    I'm really interested in having Adobe respond directly to this issue.  I know they are aware of it.
    It's clear that Adobe doesn't actually want to support this program, but people rely on it for their economic success.  Both my client and his employees need this program to function properly and reliably, and I think anyone would agree that it's reasonable to expect that a problem like this (that affects more than just us) be, at a minimum, addressed.  Adobe has my client's money, they had no problem accepting it.  With that acceptance comes a duty to be responsive.
    Thanks,
    David.

  • MacKeeper Ads, Popup Windows problem - Any Solution?

    Hi,
    I have a problem with 'MacKeeper'.
    It opens popup windows, shows link ads on any webpage I visit, distorts google search results etc.
    This happens not only on Safari, but also on Chrome & Firefox.
    I have tried to clear any spam-looking files from the /Library folder (there's nothing with the name mackeeper, zeobit etc.), also have cleared the cache of Safari, Chrome & Firefox.
    I do not know how to find and remove this unwanted app, program or extension or whatever you may call it from my mac.
    Can anyone suggest a solution?
    Note: I have never installed MacKeeper, so I can not uninstall it.
    Thank you,
    Leo

    You installed the "VSearch" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    This trojan is distributed on illegal websites that traffic in pirated content. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that this Internet criminal has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • GH2 Raw has red tinted problem, any solution?

    I am using GH2 to shoot raw format photos. when I import to aperture. all photos turn red tint.
    Anyone facing the same problem and has the solution?

    Thanks Lennart.
    The fix you suggested does not fix my Ghost Folder problem.
    That said, I finally did find a fix for this problem:
    Here's the fix I found, which simply involves selecting Photoshop as an Additional External Editor:
    a) go in your LR2 preferences
    b) under the External Editor tab, under "additional external editor", click on the button CHOOSE and navigate to your Adobe Photoshop folder. Select Photoshop.exe .
    c) ignore LR2 warning that says Photoshop is already configured as your external editor.
    d) now, every time you wish to open a photo in PS from LR, right-click on the photo, select EDIT IN PHOTOSHOP.EXE instead of the first choice (edit in photoshop cs3).
    This method will now create a duplicate PSD file right away of your photo in the correct folder. No more Ghost Folder problem. OF course, this means that every time you open a photo in PS, you now have a PSD file in your folder (as opposed to LR2's feature which allows you (normally) to open a photo in PS, and it won't appear as a PSD in your folder until you actually save the file in PS). So we could say this "fix" behaves pretty much the same way LR1.x used to handle opening files in PS.

  • N80:: Old wireless problem ANY solution for me ?

    Just bought a Nokia N80 mainly because it has WiFi
    Surprisingly or not it just doesnt work
    Ive been reding this forum for a solution but nothing suits my case
    What happens is that when Im searching for networks I can only see 1 Wlan (not mine) from about 10 available around
    SO long story cut short cant see my wireless with my N80
    Had a N97 not long ago and everything worked great
    Please dont make me change any settings on my router cause thats not a solution for me
    Just wondering what the hell is wrong with this phone???
    I assume its a frimware issue so I need to sell it back

    If you have a N80IE rather than N80 this post may have been of interest to you:
    /t5/Connectivity/WLAN-Tx-power-level-too-low-on-N80/m-p/142973/highlight/true#M9062
    Happy to have helped forum with a Support Ratio = 42.5

  • Generate Index causes problems - any solution yet?

    Hi all,
    I searched the forum and knowledgebase, but i'm totally puzzled.
    What is the best solution to avoid Indesign CS3 (5.0.3) from crashing when generating an index from a book with multiple documents containing references?
    Is it the script from Ole to convert the book to one document?
    Is it updating preview on each document (updating preview also crashes)?
    Is it something else? Or is there a plug-in i could use?
    As I said before, i have Indesign CS3 version 5.0.3.
    Many thanks in advance,
    Glen Bal

    Netflix are dropping Silverlight, they have already done so for Internet Explorer 11, and will do the same for Safari in Yosemite.
    They are using the new HTML5 Premium Video feature of Safari in Yosemite which signficantly improves battery life.
    See http://techblog.netflix.com/2014/06/html5-video-in-safari-on-os-x-yosemite.html
    (Personally I think the reason Netflix are doing this is nothing to do with battery life but down to the fact Premium Video Extensions includes DRM support ugh! for the first time in HTML5 and the fact that Silverlight is gradually being adbandoned by Microsoft. See http://gigaom.com/2010/10/29/microsoft-giving-up-on-silverlight-joining-html5-pa rty/)

  • HT1414 when i facetime somebody they cant hear me, and also when i record a video the sound is muffled. there isnt a problem when making a phone call. any solutions?

    when i facetime someone they cant hear me, and also when i record a video there is no sound, however when i make a phone call there is no problem. any solutions?

    When I try to make a call it will go through and I can hear the other person but they cannot hear me, is there a setting that disables the speaker when using the headphones to try to make a call, also speakerphone automatically goes on when I start a call which I do not like, any suggestions how to fix this?
    I also have this problem...........

  • As soon as I open iTunes a  message pops up to say a problem has stopped it from working and I have to close it. Any solutions?

    As soon as I open iTunes a  message pops up to say a problem has stopped it from working and I have to close it. Any solutions?

    Start with the third box in  Troubleshooting issues with iTunes for Windows updates.
    If that doesn't work, use the steps in the second box to repair your iTunes installation. Your library should be unaffected by these steps but there is backup advice elsewhere in the user tip.
    tt2

  • Using IOS 7.1.2 on Safari when I leave the focus on a input on my webpage and rotate my device from Horizontal to vertical, I see a black space on the right and the page is not displayed properly. Any solutions to this problem?

    iOS Version: 7.1.2
    Browser: Safari
    I have a sample log-in page with two input fields and a submit button. When I focus on any of the input fields in landscape mode and rotate my phone and come to the portrait mode I see a weird black space towards the right of my page. Screenshots attached below:
    My page code below:
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
        <title>IOS Test</title>
        <style type="text/css">
            a, abbr, acronym, address, applet, article, aside, audio, b, blockquote, big, body, center, canvas, caption, cite, code, command, datalist, dd, del, details, dfn, dl, div, dt, em, embed, fieldset, figcaption, figure, font, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, keygen, label, legend, li, meter, nav, object, ol, output, p, pre, progress, q, s, samp, section, small, span, source, strike, strong, sub, sup, table, tbody, tfoot, thead, th, tr, tdvideo, tt, u, ul, var
                background: transparent;
                border: 0 none;
                font-size: 100%;
                margin: 0;
                padding: 0;
                border: 0;
                outline: 0;
                vertical-align: top;
            ol, ul
                list-style: none;
            blockquote, q
                quotes: none;
            table, table td
                padding: 0;
                border: none;
                border-collapse: collapse;
            img
                vertical-align: top;
            embed
                vertical-align: top;
            article, aside, audio, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, meter, nav, output, progress, section, source, video, div
                display: block;
            mark, rp, rt, ruby, summary, time
                display: inline;
            input, textarea
                border: 0;
                padding: 0;
                margin: 0;
                outline: 0;
            iframe
                border: 0;
                margin: 0;
                padding: 0;
            input, textarea, select
                margin: 0;
                padding: 0;
            body
                font-family: Arial, Myriad Pro, Trebuchet MS, sans-serif;
                font-size: 100%;
                background: #F5F5F5;
            a
                text-decoration: none;
            a:hover
                text-decoration: none;
            img, object, embed, video
                max-width: 100% !important;
            .clear
                display: block !important;
                width: 100% !important;
                clear: both !important;
            .body
                position: fixed;
                width: 100%;
                top: 0;
                left: 0;
                overflow-y: scroll;
                -ms-overflow-style: -ms-autohiding-scrollbar;
                -webkit-overflow-scrolling: touch;
                -ms-touch-action: pan-y;
                -ms-user-select: none;
                z-index: 0;
            .body > *
                -webkit-transform: translateZ(0px);
            .header
                background: #fff;
                text-align: center;
                border-bottom: #45A116 solid 8px;
                padding: 5% 10%;
            .content
                width: 70%;
                position: relative;
                margin: 20% auto 10% auto;
                text-align: center;
            .content input
                display: block;
                background: #E6E6E6;
                border-radius: 15px;
                border-bottom: #A8A8A8 solid 3px;
                margin-bottom: 5%;
                width: 96%;
                padding: 4% 2%;
                text-align: center;
                color: #595959;
            .content a
                display: inline-block;
                padding: 2% 10%;
                color: #fff;
                background: #45A116;
                margin-top: 5%;
                border-radius: 5px;
                border-bottom: #2C690E solid 3px;
                -webkit-transition: all 0.1s linear;
                -moz-transition: all 0.1s linear;
                -ms-transition: all 0.1s linear;
                -o-transition: all 0.1s linear;
            .content a:active
                background:#368011;
        </style>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            function adjustBody() {
                var wh = $(window).height();
                $(".body").css({
                    "height": wh + "px"
            $(document).ready(function () {
                adjustBody();
                $(window).resize(function () {
                    adjustBody();
        </script>
    </head>
    <body>
        <div class="body">
            <div class="header">
                <img src="sampleImage.png" alt="Sample Logo" />
            </div>
            <form action="" method="get" id="sampleForm">
            <div class="content">
                <input type="email" value="User Name" onblur="if($(this)[0].value == ''){$(this)[0].value = 'User Name';}"
                    onfocus="if($(this)[0].value != '' && $(this)[0].value == 'User Name'){$(this)[0].value = ''};" />
                <input type="password" value="Password" onblur="if($(this)[0].value == ''){$(this)[0].value = 'Password';}"
                    onfocus="if($(this)[0].value != '' && $(this)[0].value == 'Password'){$(this)[0].value = ''};" />
                <a href="javascript:void(0);" onclick="$('#sampleForm').submit();">Login</a>
            </div>
            </form>
        </div>
    </body>
    </html>
    Does anyone have any solutions to this problem?
    Regards,
    Mayank Tripathi

    ALWAYS SAVE YOUR idevice USING ICLOUD !!!! IT SAVES ... ALL !! (includings apps data, but the apps themselves ! USE IT ! i done this...)

  • Ive tried multiple times on my computer and my internet is fast and perfect but my ipod touch 4th gen will not get past "backing up ipod" it sits there of course itunes 10.5 any solutions ive heard lots of people are having this problem across the board

    My ipod touch 4th gen will not update to IOS5 i believe the problem is itunes10.5
    ive been trying to update since friday my internet is perfect [speedtest.net] itunes just wont get past [backing up ipod[ i hope they fix this soon and i just wanted to see if anybody else was also having this problem because i want the new features coming with ios but its just not working and it took all night just to get roughly to about 20% completion of backing up ipod then when i got home it said "could not restore ipod its still on firmware 4.3.3 so i dont know why it said could not restore i did click "update" but anyway im having this problem and wondering if anyone else is {i think everybodys having problems itunes10.5 right now

    I am having the same problem (lost in back-up purgatory) on both my iPhone 4 and my iPad2.  I am running Windows XP.
    I have tried everything I've seen suggested on various support communities, with no success.
    I have gotten used to having to find a windows workaround everytime Apple updates iTunes, and this time it is especially frustrating.  
    I don't have any solutions, and I am responding to all of these types of messages in hopes of finding something that will work for me.
    One person was able to work through it by deleting all of the previous iTunes backup files.  I'm trying that now.  4 hours into it, and it does not seem to be working......

  • How im suppose to fix the auto shutdown problem in my iphone 3gs after updating to ios 5.1.1 this problem has made me a mobile ****** in my house and an loser in thing care so if any solution to this problem let me know

    how im suppose to fix the auto shutdown problem in my iphone 3gs after updating to ios 5.1.1 this problem has made me a mobile ****** in my house and an loser in thing care so if any solution to this problem let me know

    What "auto shutdown problem" are you talking about?

  • I have a MacBook Pro 2008 with 17 inch screen. Experiencing a lock up when turning on power to boot up. While booting up it goes to gray screen with Apple logo and disc spinning icon running and doesn't go to my desktop. Any solutions to the problem?

    I have an early 2009 17 inch MacBook Pro that just went on the fritz. When turning on the power it will go into boot up mode to the gray screen with the apple logo, then the disc icon will be running and will continue running, not allowing to proceed to my desk top screen. It's pretty much locked up at this point where I have to do a forced shut down by holding down the power button. I've tried everything that I know of such as taking battery out and pressing power button for 5 seconds and then reinstalling battery. I've cleaned inside of computer with compressed air duster in can as well as other key commands for resets. I've read that this is a common problem with the earlier MacBook Pros. Is this a problem that I can fix or does it have to be taken in for service? Any solutions to the problem would be greatly appreciated. Thanks!

    This could be a software/state problem or a hardware problem.  Here are steps to resolve the former.
    http://support.apple.com/kb/TS2570
    https://discussions.apple.com/docs/DOC-5282

Maybe you are looking for