How can I interrupt the blocking call when call timeout?

Hi,Guys
I wrote an application server(daemon process) to talk with oracle server
continuous which used oracle9 OCCI lib, each 5 min it executes the procedure
on the DB server.
Now I have come cross a problem:
If the network is blocked, app server will blocked at occi call and would
never pass, and no exception was catched :-(
for e.g.
1. Oracle server reboot without shutdown oracle process
2. udp broadcast message storm blocked the connection between app server and
oracle DB.
I consider maybe it's because OCCI using the blocking mode of connection
that caused this problem.
How can I interrupt the blocking call when call timeout?

Manage the timeout using a separate thread. When the timeout happens, issue a break on the OCCI connection. There is no direct way as of now. You need to do this to break a OCCI connection.
retrieve the OCI handle from the OCCI handle (e.g. using Connection::getOCIServer or Connection::getOCIServiceContext methods) and issue a OCIBreak on it. Do not forget to allocate a error handle which should be passed to OCIBreak call.

Similar Messages

  • How can I remove the blocked contacts from skype h...

    Peace be upon you
    How can I remove the blocked contacts from skype home and all skype features?

    I found this solution and it worked.
    Paul B. Adams
    Re: safari 6.0 flash problem (blocked plug in) 
    Jul 26, 2012 7:39 AM (in response to defconnect5)
    I have a new MacBook Pro and I followed these instructions, downlonading and installing the new Flash plugin. But when I looked in "/Library/Internet Plugins" there was no folder called "Disabled Plugins".
    However, I did see two versions of Flash:
    _Flash Player.plugin with old date
    Flash Player.plugin with todays date
    I deleted _Flash Player.plugin and this fixed the problem.

  • How can I stop the intro voice when I play a genius mix

    HOw can I stop the intro voice when I play a genius mix?

    Hi Diavonex. Yes I was aware of this option.
    Subsequently I have done a litle research and downloaded a music app called "Track 8" which has a much clearer interface (larger type) and the abillity to change the background colour to dark or light.
    This is much more readable in the car in bright light, and much better at night too.
    You can also turn off auto-lock within the application, which is great, as it doesn't affect other apps.
    Although this app is really only an interface sitting on top of the music app, it offers a much better experience
    in my opinion that the stock player which seems to have devolved rather than evolved.

  • I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    I disabled my Macbook  Hard Disk and lock the settings, after i try to reboot, the system wouldn't come up. It refuses to read instructions from the hard disk. How can i enable the hard disk when the system wouldn't come up?

    How do you disabled it if running the same?

  • HOW CAN I GET THE LOCATION OF MY CALLER

    HOW CAN I GET THE LOCATION OF MY CALLER pls its urgent

    HOW CAN I GET THE LOCATION OF MY CALLER pls its urgent

  • How can I change the install location when installing an App (i.e. Lightroom) from Creative Cloud?

    How can I change the install location when installing an App (i.e. Lightroom) from Creative Cloud?

    Rolfjuelg I am sorry but Lightroom does not support custom installation locations through the Creative Cloud.  You can find more details at Lightroom and Creative Cloud FAQ.

  • How can I open the taps(now) when I open the firefox next time?

    How can I open the taps(now) when I open the firefox next time?

    There is no way to programitically bring up the dialog window for the timestamp control. I recommend building your own dialog window VI that will work by opening when you want the user to set the time and when it closes, it can programatically update the timestamp control. It will not be as pretty but it will be just as functional.

  • How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    Any image can only be as large as the Original. With a program like Photoshop you can UpRes an image and get it to a bigger size, larger files size as well, but the actual quality of the image will be degraded, depending on the UpRes system and the original quality of the image.
    iPhoto is not the program to be doing that in and I don't think it even has that option.
    So I suspect the image you are trying to send isn't much bigger than what you are getting. You can also try Exporting it from iPhoto to yopur desktop and see what size you end up with. If it is still that 209KB +/- file size then that is the size of the original image.

  • HT203200 How can i solve the -50 error when downloading video from itunes??

    How can I solve the -50 error when downloading video from itunes.   The apple support people cannot even figure it out!??

    The 2330 error often means some sort of damage to the filing system as might happen if the battery fell out while the disk was in use.
    Try running a disk check to see if it finds and fixes any errors.
    http://support.microsoft.com/?kbid=315265

  • How can i cancel the using of "Only calls for emergency?"

    How can I cancel the using of "only calls for emergency?"

    In the USA, you cannot.  I believe it is an FCC requirement that all cell phones be enabled to dial 911, even if they do not have an active contract or prepaid service assigned to them.

  • How can I change the settings so when I delete an email from my iPhone it will also delete from my iPad.....very sick of deleting the same emails two times

    How can I change the settings wit mail so that when I delete my Verizon email from my iPhone it will also delete from my iPad too.... Seems like I shouldn't have to delete my email in three places...iPhone ..iPad ...and desktop

    Don't know which email host you are using, but if this is a POP account, you can't do it. If IMAP, then deleting one email should delete it on all other devices.

  • How can I make the data persistent when using plist ?

    I have a UITableView table1. And when I touch any cell in the table a new UIViewController appears and it have two UITextField's name and description. After entering the data in both the text fields I used the save button to save them. In save method I wrote the code for the data to be stored in plist.
    -(void)save:(id)sender
    indexOfDataArray = temp;
    NSString *string1 = [[NSString alloc]init];
    NSString *string2 = [[NSString alloc]init];
    string1 = nameField.text;
    string2 = descriptionField.text;
    NSDictionary *myDict = [[NSDictionary alloc] initWithObjectsAndKeys:string2, string1, nil];
    [myArray addObject:myDict];
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"VideoData.plist"];
    [myArray writeToFile:path atomically:YES];
    UIAlertView *alertMesage = [[UIAlertView alloc] initWithTitle: @"Save Alert" message:@"The data entered is saved" delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles:nil] ;
    [alertMesage show];
    [alertMesage release];
    [myArray retain];
    But the problem is every time I restart my application the data in the plist is deleted. How can I retain the data in the plist name I specified ?

    I think yes, I am specifying only one file name to store in the path. I understood my where I am wrong.
    If I added data in plist for two items(item1 and item2). And again I need to add next two items(item3 and item4) . How can I make item3 and item 4 do not replace item1 and item2 ?
    Thank You.

  • How can I include the Frame Number  when using "Export Frame"?

    Im using the button at the bottom right of the Playback Control Panel called "Export Frame".  This does exactly what I need but I have a lot of frames that need single frame exporting. How can I get the file name to automaticly include the frame number at the end of the file name? 
    For example, instead of it displaying "Sequence 01.Still001"  by default.  I would like for it to display "Sequence 01_0001"   Letting me know that is frame 0001.
    This is possible, correct?

    Well what about in the export option using CTRL + M?  I saw a coworker using this method in an older version of Premiere, but we can't enable it on CS5.5.  Being able to export a single frame as a bmp that has the frame number at the end of the file name.
    Example:
    Output Name: Sequence 01_0001.bmp
    Under Video Basic Setting is:
    Export As Sequence UNCHECKED
    Field Type: Progressive
    Frame number still doesn't show at end of file name.  What are we missing?

  • How can I find the program which is calling my SAPscript??

    How can I find the program(std/Custom) which is calling my SAPscript form??
    Regards,
    Shashank.

    Hi
    check in NACE transaction or TNAPR table
    reward points to all helpful answers
    kiran.M

  • How can I control the windows behavior when the user hits "Windows key +d"?

    Hi,
    I have an application with 2 top-level windows. Both windows may be open at the same time. One window is a win32 window, and the other is a wpf window. When both windows are open, the wpf window should always be before the win32 window. When the user hits
    "Windows key +d" twice (show desktop and restore all windows), the windows are occasionally restored in a different order.
    How can I force the wpf window to always be before the win32 window?
    Which Windows messages/events are sent when the desktop is restored?
    Yoel

    Hi,
    I tried set the Topmost property on the Wpf window. It didn't help - for some reason, the win32 window still get in front of the Wpf window.
    I was able to get some win32 messages that change the win32 window position. I tried then to bring the Wpf window to the front (using SetActiveWindow, SetForegroundWindow, SetWindowPos) but i does not work as expected.
    Yoel
    Hi Yoelp,
    >> tried set the Topmost property on the Wpf window. It didn't help - for some reason, the win32 window still get in front of the Wpf window.
    It worked well on my side, could you please tell us more details about these two window? What have you done on the WIn32 Window? We need to know the reason
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Web services with multiple elements in the results

    We are using ASP.Net and LiveCycle Forms with LiveCycle Designer 7.0. LiveCycle forms is running on JBOSS (turnkey installation). Our problem is that if the web service returns multiple results e.g.       £12.99       Widget       £0.99       Grommet

  • How can I get the list of all canvas in the forms programatically?

    I want an exemple of how to do it. I really need it to put in a template.

  • NI 9223 at 1Mhz on a cRIO-9024

    Hi All, I'm trying to use the 9223 module to sample at 1Mhz using User-Controlled IO Sampling. The 9223 should be able to simultaneously sample 4 channels at 1Mhz (that's why I bought it), but I can't get it above 500khz. I'm using the "NI 9223 User-

  • Is SP 2013 Service Pack1 mandatory for my portal

     hi, Our application is still in UAT env. and NOT deployed in the prod. farm.  But my customer's IT team has created few webapplns on the already provisioned prod.farm. Currenty there is no SP2013 SP1 installed on the prod.farm. Now in my dev and UAT

  • Creating a button in the bookmark bar

    Hi all, I want to create a button in the Bookmarks bar. Instead of going to view->text Encoding->UTF-8, that button can change the encoding to UTF-8 directly. Is it possible in Safari? Regards, Omar