Getting around the sync'ed drivermanager calls

hi
we have a problem with wl5.1 (sp10, jdk 1.3.1, sun 2.6) and jdbc
connections to a mssql server. the sql server sometimes hang in getting
the connection and than everything is hanging. caused by the synchronized
calls in the driver manager - exactly DriverManager.java:193.
i have already searched in the net and found some possible solutions. but
no appropriate which solves the problem, because everything is located in
the DriverManager class.
ok, upgrading to wl61 has not solved the problem. also setting some driver
manager timeouts and all other possible timeouts. also datasources does
not solve the problem!
so, if there is no real solution, so is there a way outside to solve the
problem? is it maybe possible (even if the performance is bad and not
really accepted for j2ee applications) to get the connection in a separate
thread and to set a timer which interupts the thread after X seconds?
would this really stop the blocking io call?
does anyone have any ideas? this is a rellay big problem for us because
we have to restart the server every few hours. the mssql server is really
a big piece of sh*t.
TIA
cu

Hi. There's an easy solution. Instantiate a Driver instance directly,
and use it to make connections, via the Driver.connect() call. That's
all DriverManager does, and it avoid's DriverManager's locks.
Are you using our pools, or the DBMS driver directly? If it's pools:
Driver d = (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
String myURL = "jdbc:weblogic:pool:myPoolName";
if it's EJB/UserTransactional,
Driver d = (Driver)Class.forName("weblogic.jdbc.jts.Driver").newInstance();
String myURL = "jdbc:weblogic:jts:myPoolName";
if it's a DBMS driver diectly,
Driver d = (Driver)Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
String myURL = "jdbc:weblogic:mssqlserver4:MYDBMSMACHINE";
In any case, do this once, and re-use all this stuff indefinitely.
Then do:
Properties p = new Properties(); // for pool or jts drivers, don't add any properties...
p.put("user", "sa" );
p.put("password", "secret");
and to connect:
Connection c = d.connect( myURL, p );
Joe Weinstein
Gottfried Szing wrote:
hi
we have a problem with wl5.1 (sp10, jdk 1.3.1, sun 2.6) and jdbc
connections to a mssql server. the sql server sometimes hang in getting
the connection and than everything is hanging. caused by the synchronized
calls in the driver manager - exactly DriverManager.java:193.
i have already searched in the net and found some possible solutions. but
no appropriate which solves the problem, because everything is located in
the DriverManager class.
ok, upgrading to wl61 has not solved the problem. also setting some driver
manager timeouts and all other possible timeouts. also datasources does
not solve the problem!
so, if there is no real solution, so is there a way outside to solve the
problem? is it maybe possible (even if the performance is bad and not
really accepted for j2ee applications) to get the connection in a separate
thread and to set a timer which interupts the thread after X seconds?
would this really stop the blocking io call?
does anyone have any ideas? this is a rellay big problem for us because
we have to restart the server every few hours. the mssql server is really
a big piece of sh*t.
TIA
cu

Similar Messages

  • My daughter forgot her password, any suggestions of how to get around the password without deleting everything she has on it?

    She has never synced her ipod touch to iTunes, any suggestions of how to get around the password without deleting everything she has on the device?  Apple support recommended recovery mode, but doesn't that erase everything on the ipod?

    You are out of luck but a Date Recovery company may be able to help if the iPod does not have iOS 8.
    If there is an iCloud backup you can restore from that.
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I spilled water on my laptop and my "i", "j" and "k" letters don't work on my laptop. However my main problem is that my password contains an "i" so i am locked out of my computer. Any ideas how I can get around the password and login.

    I spilled water on my laptop and my "i", "j" and "k" letters don't work on my laptop. However my main problem is that my password contains an "i" so i am locked out of my computer. Any ideas how I can get around the password and login. I tried the method where you go into single user mode and type in commands, however that method uses some of the letters that are not working on my laptop.

    You didn't mention which version of OS X your running but there are password reset utilities provided OS X: Changing or resetting an account password (Snow Leopard and earlier) - Apple Support  or  OS X: Changing or resetting an account password - Apple Support
    Alternately you can use an external keyboard to log in and change the password. Make a backup if you don't have one, it's likely that your problems aren't over. If that water continues to migrate downward and fries the logic board your macbook will be toast.

  • Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please

    Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please!

    What exactly are you trying to do?

  • I am unable to get beyond the "sync with iTunes" splash page after connecting my iPhone; every tab is grey. What gives?

    I am unable to get beyond the "sync with iTunes" splash page after connecting my iPhone; every tab is grey. What gives?

    Is the computer the one the device normally syncs with?
    If not, sync with the computer it normally syncs with.
    If it is, place the device in DFU mode (google it) and restore.

  • Living in Dubai where many apps are blocked. How can I get around ? Tried to create a new Id but my billing address in Dubai will not match the criteria for an account in the US. Help please to get around the censorship...thnaks

    Living in Dubai where many apps are blocked. How can I get around ? Tried to create a new Id but my billing address in Dubai will not match the criteria for an account in the US. Help please to get around the censorship...thanks

    The censorship in regards to certain apps not being available in your country is by your country, not by Apple.
    Due to various laws and licensing in each country, in order to have an iTunes store account in a particular country you must have a credit card with a billing address in that country. If this were up to Apple, there would be no such requirement and there would be only one iTunes store for the entire world, but various laws, regulations, and licensing issues in each country, this is required by Apple.

  • How do i get around the A12E1 error for installing application mgr

    how do I get around the A12E1 error

    Which operating system are you using?  Do you have any other Adobe Creative software installed?

  • How do I get around the "Master Password" window?

    Since I'm the only user at this sight, I don't think that I need a Master Password.
    So How do I get around the "Master Password" window so I can get some work done?
    The Box is not marked, but setup still refuses to go any further.

    Hi warp4dennis,
    Thank you for your question, I understand that you would like to get around the master password dialogue. [[Master Password]] specifically [https://support.mozilla.org/en-US/kb/use-master-password-protect-stored-logins#w_removing-the-master-password how to remove it]
    I hope this helps!

  • I purchased an iPhone5 at an unclaimed items police auction yesterday, but after I charged it and turned it on, it is asking me for the passcode which unfortunately I was not supplied with. Is there a way to get around the code or have I wasted my money?

    I purchased an iPhone5 at an unclaimed items police auction yesterday, but after I charged it and turned it on, it is asking me for the passcode which unfortunately I was not supplied with. Is there a way to get around the code or have I wasted my money?

    If the Phone is Running iOS 7... then it has Activation Lock Enabled.
    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    ShellyfromHunterValley wrote:
    ... have I wasted my money?
    More than likely... I believe ebay has an area where you may be able to sell it for parts.

  • I cannot access my voice mails.  I can't get to voice mail either through the phone app nor the viooice mail app.  When I try I get message the "can not complete call as dialed."t  Any ideas?

    I cannot access my voice mails.  I can't get to voice mail either through the phone app nor the viooice mail app.  When I try I get message the "can not complete call as dialed."t  Any ideas?

        backpack12,
    Voicemails are a vital part of having a working phone. We do suggest that you look at the contact and then the number to make sure that it is *86. If you are needing to get your voicemails until then, please dial *86.
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • How to know the progress of the Sync when I call PullAsync()

    Hi,
    I am developing a Windows 8.1 app, In that I am using offline data concept using Azure mobile services with JavaScript Backend.
    My questions is how can I show the status or progress of the Sync When I call PullAsync() method.... I want to show the number of records sync or how much percentage synced like that...
    private async void ButtonPull_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
    await todoTable.PullAsync();
    //How to know the progress of sync
    await RefreshTodoItems();

    Hi Narendra,
    I suggest you to check this information for more details.
    PullAsync() call can either pull all items from the remote table, or just pull a subset of the items. Only pulling some items from the table is often advisable, as stuffing everything from the (potentially large) remote database table into the (restricted by
    the device memory) local table may have some bad performance implications. You can pass an OData-formatted query to select which items to pull from the server, or you can also use the (more friendly) Linq expressions to determine the query of items to be pulled.
    var localTable = client.GetSyncTable<TodoItem>();
    var query = localTable.Where(t => !t.Complete);
    await localTable.PullAsync(query);
    var localItems =
    await localTable
        .Select(i => i.Text)
        .ToListAsync();
    AddToDebug("Items from the server (in the local table): {0}",
    string.Join(", ",
    localItems));
    One important thing to notice regarding pull operations – if there are items in the pending synchronization queue, those items are first pushed over to the server, then the pull operation takes place. That prevents a scenario where an update is done to a
    local item, but a pull operation would overwrite the changes locally and potentially leave the data in an inconsistent state. That’s one the first synchronization rule: a pull triggers a push. In the example below, the insert operation for the “Buy milk” item
    will first be pushed to the server, then the items will be pulled into the local table.
    await client.SyncContext.InitializeAsync(store);
    AddToDebug("Initialized the sync context");
    var localTable = client.GetSyncTable<TodoItem>();
    var item =
    newTodoItem { Text =
    "Buy milk", Complete =
    false };
    await localTable.InsertAsync(item);
    var query = localTable.Where(t => !t.Complete);
    await localTable.PullAsync(query);
    var localItems =
    await localTable
        .Select(i => i.Text)
        .ToListAsync();
    AddToDebug("Items from the server (in the local table): {0}",
    string.Join(", ",
    localItems));
    for us to better understand both Push() and pullasync() feature is used while querying from the Database.
    http://blogs.msdn.com/b/azuremobile/archive/2014/04/07/deep-dive-on-the-offline-support-in-the-managed-client-sdk.aspx
    Girish Prajwal

  • Using table partioning to get around the Linux ULIMIT

    Is this recommended? Or would it defeat the purpose of
    partioning.
    null

    Bob Tribit (guest) wrote:
    : Is this recommended? Or would it defeat the purpose of
    : partioning.
    In what particular way are you trying to get around the 2Gb
    filesize limit on 32-bit platforms?
    Tablespaces can be made of many separate files, and a table's
    extents can be spread in any pattern through a
    tablespace. Although it's not particularly neat to have a 10Gb
    tablespace made of 5 different files, it's not exactly difficult
    to deal with.
    Or do you want to import/export your data in neatly-sized
    chunks? Suck in 2Gb chunks and exchange them into a partitioned
    tabled?
    Be aware at, under 8.0 at least, partitioning is a cost-option
    (adding roughtly 1/3 to the cost of your base per-user license).
    You need to have a good reason to use it.
    Romours suggest that it's back to being a complementary feature
    in 8i.
    null

  • HT1212 My sons old iPad 1 is rarely used, but, when i charged it up the message was "iPad is disabled try again in 22,824,852 minutes"  sorry but thats a bit of a wait!  I have gone through all the various reset methods but can't get around the disabled s

    Hello,
    My sons old iPad 1 is rarely used, but, when i charged it up the message was;  "iPad is disabled try again in 22,824,852 minutes"  sorry but thats a bit of a wait! 
    I have gone through all the various reset methods but can't get around the disabled status??
    Can't see another way to reset it.
    Could it be for the bin.
    Only wanted to give the youngest daughter the iPad to take to school.
    Hope someone can help
    Thanks
    Jonny Burns.

    Is this how you do it?
    1. Turn off iPad. Press and hold the Sleep/Wake button for a few seconds until the red slider appears, slide to turn off.
    2. Connect USB cable to computer
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune (make sure you have the newest version of iTune)
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPad
    Note: You need to be patient and repeat the above many times to recover your iPad

  • HT1212 my ipad asks for a passcode but I never entered a passcode. this happened after the ipad battery went dead and i recharged.how do i get around the passocde prompt?

    My ipad battery went dead and after recharging and booting up the ipad, it is asking for a passcode. however, no one remembers ever entering a passcode in to this ipad, isnce it used by everyone in the house. how do i get around this passocde prompt?

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Verizon tech support for FIOS - how to get around the attitude.

    Most are helpful, but some are rather disdainful of macs or linux, or act surprised if you have more than one computer.
    A: Well, if I only had one computer, why would I need a router?
    Linux does not need any special support, and in fact runs quite beautifully on FiOS and the router without any setup at all. It recognizes the router and self-adjusts with DHCP auto. Actually it's much faster and less flawed than Windows.
    Linux doesn't have any recognized or known virus. At all. FUD is generated at various times during calls to FiOS support when I make the mistake of mentioning linux. They act like it's going to break their network.
    I'm an Admin from MSFT, and MSFT uses linux. Extensively. They just don't like to talk about it. "Seven" = NT 7.0. NT is MSFT's version of UNIX, which they licensed fom Novell.
    So, even microsoft contains unix code. Tada.  Lets' drop the operating system arguments for now though.
    I have three Dell servers, six Dell and HP desktops, and two laptops. All but two of them run linux full time, and only one is dual boot. Both laptops run linux exclusively and so do three of the desktops and ALL my servers. I've never in 12 years had a linux virus, and I never will. No, I don't even run a firewall, and there is no linux antivirus software accepted by the linux distributions, because it's useless. Not needed.
    All of these machines, XP, Vista, Ubuntu, Slackware, and Red Hat Server run on four brainless hubs, or switches. A switch is not capable of DHCP or DNS routing. They are passive devices which are not capable of blocking a router. They only stop working when they die. You can have switches [hubs] in ANY conceivable chain or configuration, and they still work the same, as they all take commands from whatever routers you have.
    The only router in my home is the verizon router. I have no need of others, but I've run dual and even triple routers before without a single problem. You set the extra routers to 192.168.2.1 instead of 1.1. Third router? 192.168.3.1. And so on. Painless.
    None of these devices have yet failed or ever blocked internet access, yet half the time when I call verizon FiOS, the tech people tell me to connect directly to the router with my laptop. I've always just TOLD them that I did, but I never ever did that. It's not necessary. If you can't connect to 192.168.1.1, the router is dead. checking hubs is an astoundingly simple task that only takes a second... you just go to any other computer on that hub, or plug in my laptop, and see if you can get through. I've had one hub fail in the last 8 years, and that didn't fool me for more than a minute. I replaced it and was back in biz without tech support help.
    ONLY in the instance where only ONE computer is down, does it make sense to isolate the router. Thus, the FiOS people are just trained to eliminate the obvious, but they also talk smack. MOCO? Why would I have a major OC24 type network connection in my home? I've been hit with just such questions. Wouldn't verizon know if I had a backbone connection through them???
    Here's the deal: Buy your own equipment, and get warranties. Unless the external box, ONT I believe they call it, has died, you're not likely to get a lot of support anyway - since verizon will not talk about anything other than their router and the ONT.  Save time and just be aware of your own eqiupment. I'm on my sixth day of having no FiOS since Verizon sent me a new also bad router and now I'm awaiting another replacement by the UPS people. Speed is not a hot button issue with verizon service apparently, but they are better than comcast.
    Good thing about verizon is that they don't appear to cap bandwidth, and for that I respect them no matter how much garbage I get from a few of the tech support staff. Even most of those people are pretty nice. One of them actually talked linux with me for a half hour, and that was a breath of fresh air.
    Verizon needs to realize that there are three to six times more linux operating systems in use now worldwide than all windows products combined. The US Army and US Navy have switched to linux systems and dumped windows. I'm shopping for another new desktop, and I'm only buying penguin computers. I won't buy "7" because I've seen the source code, and don't have a high opinion of it. Linux is more robust, and for whatever reason, MSFT still refuses to implement the System Five and UNIX security levels that are inherent to a safe Operating System, and a kernel component of unix. I don't see why not. NT is capable, but all suggestions to turn it 'on' are ignored.
    I want to see verizon get with the program and start to support linux. After all, it's fifteen times cheaper to maintain, and three times less expensive to develop for. Verizon would never have to deal with spyware and viruses from its users ever again. One day I hope verizon will wake up.
    In the meantime, it would be nice if the tech support at FiOS wouldn't misinform clients and customers about linux, macs, and having several computers in the home. There's nothing at all wrong with that. I just bought a netbook from you folks and I'm using that now to get online.

    All I have to say about that is, "People fear what they do not know." Everyone has a comfort zone. Some people's comfort zone is larger than others, or encompasses different aspects of life. Most Windows users aren't comfortable with Mac or Unix operating systems. Most English speakers aren't comfortable with foreign languages. Most two-year-olds aren't comfortable with spinach.
    C'est la vie.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

Maybe you are looking for

  • Error while creating function filter for SAP R3 destination

    Hi All, I am using SAP Portal Add-in 1.0 Patch 3 for Visual Studio 2003 with SAP Portal Runtime 1.0 Patch 3 for Microsoft .NET and SAPDotNetConnector2.0. Portal server is successfully added to my server explorer.SAP R3 system  destination is also add

  • "Windows Easy Transfer can't transfer your files and settings." Why?

    I saved my files and settings from a previous installation of windows 7 to an external hard drive using windows easy transfer. Now when I try to transfer those files and setting to my new installation I get the following message: Windows Easy Transfe

  • Mapping complex objects to DataGridColumn

    Hi there, I'm having some problems with my mapping to my datagrid. My list is filled with object of the type Address. Each Address object contains a property called city, which is an object of the type City. So, I'm mapping the column city of my Data

  • I am trying to install Elements12 but cannot find a valid serial number.

    I also tried the Redemption Code that was packaged in the box but this also was invalid. I purchased the item at a local Staples store and the cashier scanned the back of the box (he said it was to activate the product). This is a gift for my wife...

  • Location can't find clients

    In this Location is Reachable state and synchronizes seamlessly with the controllers. But do not get any client. The error that appears is as follows: 192.168.20.6: Internal error in location server. Error Message:Server response: [Solid JDBC 04.50.0