Extending PlainSocketImpl's functionality

Hi,
I'm trying to achieve the following. Make JDBC drivers use a "somewhat" customized socket implementation. In particular, I want them to use sockets where I can control the SO_TIMEOUT.
This kinda rules out extending the Socket class because I don't want to have to modify the JDBC driver code to now instantiate the extended Socket.
My other option is to then extend SocketImpl and implement a SocketImplFactory to return the extended SocketImpl with the SO_TIMEOUT set. Well this is undesirable either because then I have to re-implement all the functionality from scratch.
I can try extending PlainSocketImpl and return the extended PlainSocketImpl from the factory but PlainSocketImpl is in java.net and has default package access. In order to extend it I have to be in java.net. Which means I have to run my app with -Xbootclasspath. From what I've read this has some licensing implications. Now I can also copy the code from PlainSocketImpl into my own class which is outside of java.net. I assume that has the same licensing implication as using -Xbootclasspath.
Is there a reasonably easy way to do this without getting into the licensing issue?
Thanks
Budyanto

You don't have to do this. Any JDBC driver that doesn't already use a socket timeout, or provide a way for you to set it, should be returned to the vendor with a loud complaint.

Similar Messages

  • Extending the existing functional locations to a new plant?

    Hi Sapiens,
    The following is my concern:
    Q1) I have a set of functional locations(roughly around 5000 records) assigned to say Plant A.
    I would like to extend these existing functional locations to Plant B. I am not permitted to do this using LSMW. I should execute this operation in one shot.
    How to accomplish this?
    Q2) After attaching all the functional locations to Plant B, i should replace the first 4 characters of the functional location structure with the Plant Code itself. Again not through an lsmw. How to accomplish this in one shot?
    Please let me know the procedure of doing it with some guidelines.
    Thanks in Advance,
    Vijaya

    Hi
    1. You can extentd to the other plant with SCAT ,BDC etc
    2. But You can not replace the first four letters from the FL with the New plant code.Remember this is a master data
    Regardas
    Jignesh

  • Extend XSLT sort function

    Is there a way to extend the sort function provided by XSLT? I am using XALAN. Basically, the elements that I need to sort need a more specific sort than just text or number.
    thanks

    well the default sorts are on number or text. But say I want to sort on network addresses, such as 1.2.3.4 ....text and number dont work here, I need my own sorting (like i would do with a Comparator)..
    so if i had
    1.2.3.4
    170.1.3.3
    2.4.3.2
    I would want the sort to be like
    1.2.3.4
    2.4.3.2
    170.1.3.3
    ...however (number wont work) and text sort does
    1.2.3.4
    170.1.3.3
    2.4.3.2
    see what i mean?

  • Pdf form created in Acrobat 9 Pro Extended does not function properly when viewed by Reader

    Hello all-
    I have created a form in Acrobat 9 Pro Extended and have an issue because when others view the form in Adobe Reader some of the functions do not work- such as the attach a file button I created, or the save, print buttons (all are execute a menu item). These work on my Acrobat 9 Pro Extended but not on Reader.
    I have tried saving many different versions- with security (password) and made sure to allow printing and commenting, editing, digital signatures etc...
    Without any security...
    Even tried extending features in Adobe Reader!
    The response from others is that it all works, except the ATTACH A FILE button- when they click on it it compresses, but, nothing happens!
    I don't know what else to do! (I guess people could just attach things to the e-mail that is generated from the submit button, but worried people might forget at that step once they are past that section on the form and they jump to email to submit).
    Help please!
    A.

    I've already extended the rights and made sure to save to activate that... as well as password protected the docs etc... still nothing...
    I am aware that those with Basic Adobe Reader need rights extended to be able to use functions available to Adobe Pro.

  • Extend Password Change Functionality

    Is there a way to extend the Password Change functionality in Access Manager to envorce a more complicated password scheme - upper case, lower case, special characters, etc? The password policy appears to not allow specifying more complicated password enforcement schemes.
    Thanks,

    This needs a small modification to the JSP and/or the action class.
    The usual effort estimate is 2-4 days for a resource with experience on how to do this. 2-4 weeks for a resource that hasn't done it before.
    Best regards
    /Martin

  • Extend vendor - partner function

    Hi,
    when we extend the vendor in XK01 using reference function from pur org A to pur org B, can the partner function such as the additional remit to will be copy to extended pur org as well?
    I try to do that, but it can't.
    Anyone has any idea?

    Dear Janice,
    check out u have config as per blw
    The procedure for setting partner functions:
    Step 1
    Vendor Account Group
    IMG->LOGISTICS GENERAL->BUSINESS PARTNER->VENDOR->CONTROL ->DEFINE
    ACCOUNT GROUPS AND FIELD SELECTION
    Step 2
    Defining Partner Schemas
    IMG->MATERIALS MANAGEMENT->PURCHASING->PARTNER -> DETERMINATION -
    PARNER SETTINGS IN VENDOR MASTER RECORD
    ->DEFINE PARTNER SCHEMAS
    Step 3
    Assign Partner Schema
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER DETERMINATION->PARTNER
    SETTINGS IN VENDOR MASTER RECORD->DEFINE PARTNER SCHEMA
    u201E« THEN ASSIGN PARTNER SCHEMA
    Step 4
    Define Permissible Partner Role Per Account Group
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER DETERMINATION -
    PARTNER ROLES ->DEFINE PERMISSION PARTNER ROLES
    If you want a partner schema for your own document type then define your partner schema and assign to document type using the below mentioned path.
    IMG->MATERIAL MANAGEMENT->PURCHASING->PARTNER ->DETERMINATION -
    PARTNER SETTINGS IN PURCHASING DOCUMENTS ->DEFINE PERMISSION
    PARTNER SCHEMAS
    And then
    ASSIGN PARTNER SCHEMAS TO DOCUMENT TYPE
    Once you have this configuration then you change your vendor in easy access menu (XK02-select partner function) define the partner roles
    rgds,
    nanthakumar

  • How can i extend the filter function to also include an option to select which column to filter on?

    Hi.
    I have built an spry test-page (testing it on my localhost  so i cannot give you direct access to it) here i have an XML file that i show in an dynamic/ repeat table with 5 columns.
    I hvae included an spry filter function to easy filter out records, but the code only allows me to filter on one of the columns.
    I would like to add an extra "select-menu" to define which column the filter should be active for, how can i do that
    Here is the filter code and also the html code for the select-menu and the box to type in what to filter.
    The bold parts is the important parts, i would like the options values from the select menu to be inserted in the filterData function to be able to define which column to do the filtering on.
    var ds1 = new Spry.Data.XMLDataSet("report3.xml", "orders/order", {sortOnLoad: "@id", sortOrderOnLoad: "descending"});
    ds1.setColumnType("date", "date");
    ds1.setColumnType("BUTIKNR", "number");
    ds1.setColumnType("EXTRAFRAKT", "number");
    ds1.setColumnType("job/@idx", "number");
    var jobs = new Spry.Data.NestedXMLDataSet(ds1, "job");
    function FilterData()
        var tf = document.getElementById("filterTF");
        var menu = document.getElementById("searchIdent");
        if (!tf.value)
            // If the text field is empty, remove any filter
            // that is set on the data set.
            ds1.filter(null);
            return;
        // Set a filter on the data set that matches any row
        // that begins with the string in the text field.
        var regExpStr = tf.value;
        if (!document.getElementById("containsCB").checked)
            regExpStr = "^" + regExpStr;
        var regExp = new RegExp(regExpStr, "i");
        var filterFunc = function(ds, row, rowNumber)
            var str = row["@id"];
            if (str && str.search(regExp) != -1)
                return row;
            return null;
        ds1.filter(filterFunc);
    function StartFilterTimer()
        if (StartFilterTimer.timerID)
            clearTimeout(StartFilterTimer.timerID);
        StartFilterTimer.timerID = setTimeout(function() { StartFilterTimer.timerID = null; FilterData(); }, 100);
    html:
                <select name="searchIdent" size="1" id="searchIdent">
                    <option value="@id" selected="selected">ID</option>
                    <option value="date">DATUM</option>
                    <option value="time">TID</option>
                    <option value="BUTIKNR">BUTIK</option>
                    <option value="REF">REFERENS</option>
                  </select>
              <input type="text" id="filterTF" onkeyup="StartFilterTimer();" />
    Contains:
      <input type="checkbox" id="containsCB" /></td>
    Thanks in advance.
    //Rickard H

    Now it works, i had to do it like this:
        var filterFunc = function(ds, row, rowNumber)
            var str = row["@id"];
            if (str && str.search(regExp) != -1)
                return row;
            var str1 = row["date"];
            if (str1 && str1.search(regExp) != -1)
                return row;
            var str2 = row["time"];
            if (str2 && str2.search(regExp) != -1)
                return row;
            var str3 = row["BUTIKNR"];
            if (str3 && str3.search(regExp) != -1)
                return row;
            var str4 = row["REF"];
            if (str4 && str4.search(regExp) != -1)
                return row;
            return null;
    I also had to remove the line "ds1.setColumnType("BUTIKNR", "number");" from the code, otherwise it would not search at all (only searches string types?).

  • How to extend/add additional functionality (to) an InDesign class like Cell

    Hello,
    I am trying to add some extra functionality to every instance of e.g. the Cell 'class' of InDesign using Javascript. I started doing something like this:
    Cell.prototype.newFunction = function() { ....... }
    which works fine: it is now possible to call newFunction() on every instance of Cell.
    But now I would like to let this function (that I've added to the prototype chain of Cell like shown above and thus is also available for an 'instance' of Cell) use a 'variable' that is specific for every Cell instance, e.g.:
    Cell.prototype.getSuperValue = function ()
    if (this._cachedValue === undefined)
    this._cachedValue = 3; // doing some incredible calculations that take some time
    return this._cachedValue;
    The this._cachedValue should be a attribute of the Cell instance. So if I take to cells from a Table and I call getSuperValue() on them I can get two different values that are specific for every instance of Cell.
    Thanks a lot in advance!
    P.S. although I am quite new to Javascript I know there are no classes in Javascript and that Cell is an object. But I thought explaining it like this would make it more clear?

    Hi John, Harbs and Marc,
    Thanks a lot for the helpful information!
    One of the things I was trying to do is give the 'instance of Cell' extra functionality like obtaining geometric information of that cell, e.g. getInsideArea which would return a rectangle containing the position and size of that cell. I wanted to give the cell a reference to an Javascript object that contained geometric information of the Table the cell is in. This geometric information is used by me to obtain the cell geometric information.
    Again thanks a lot!

  • Photoshop CS6 Extended Download not Functioning

    Hi all. I have attempted to download Photoshop CS6 Extended trial, however, once the install is completed, it's just the standard version. WHERE can I download the Extended Version??? Thank you!

    Wow, what a geeky package that cleaner tool is...  It starts out by prompting for English or Japanese, then dumps an entire EULA to the CMD window, which scrolls off the top and can't possibly be read, then just asks ''yes or no''.  I assume that question is asking whether you agree to the EULA.  After that the prompts are pretty straightforward.
    Looks like it did a pretty thorough job, leaving nothing in the Photoshop install areas or a few other places I looked. 
    Notably the installer still knew my Adobe ID and saved password during the reinstall.  Fortunately the reinstall took only a few moments.
    In answer to your question:  It seems to have worked just fine.  I still have the same amount of time left in the trial as before the uninstall.
    -Noel

  • Need to extend iOS core functionality

    I'm working on part of onboard computer software for cars, related to interoperation with iPhones and iPads. Right now my task is to figure out, if it is possible to install a DAEMON on iPhone, which will implement VNC-like server, which will interact ONLY with car's onboard computer. This software may or may not comply with appstore requirements, depending on Apple position.
    I understand than this question should be addressed to apple tech specialists, but I cannot figure out how to contact them using Apple site.
    I would appreciate it if somebody can tell me how to contact an Apple specialist, who can help me to solve the following problem:
    My company needs some API for the following tasks:
    catch screen updates and capture the updated rectangle without polling
    be able to enumerate, scroll, push and drag visible NSViews of applications who agree to be remotely controlled(if allowed)
    override iPhone screen orientation to that of the remote screen when connected(if allowed).
    if possible, accept incoming calls and enforce sound redirection to airplay(to the car audio system for example)
    Do all these tasks in background as a system service or as some part of system libraries(maybe using LD_PRELOAD)
    iPhone or iPad must login via cable to avoid remote attacks on car's machinery, but after login it must be accessible via Wifi or bluetooth(maybe passengers on the back seats would play angry birds or to tell the car's owner "hey dude i'm your car being stolen!" while she/he/it is away). That means the (privileged) application must be able to establish WiFi connection on it's own
    To sum it all, we need something like "veency" does, but without jailbreaking, with proprietary protocol, covered by NDAs and compatible only to car's onboard computer. It is OK if this the "server" will not allow to control all applications(due to security reasons, for example). Also, no data will be uploaded to iPhone or downloaded to car computer, except video materials available via AirPlay, screenshots or control messages.
    Most of this functionality can be emulated using AirPlay, specialized app-store-compatible application, some of it is optional(WiFi connection), and some can be emulated by implementing yet another music/video player(not a good idea). However, I believe this extra functionality will be very useful not only for interoperation with iCar hardware, but for iHomes, iOffices and so on.
    If there are Apple engineers on this forum, or anybody can give me an advice how to contact them, please reply here or to [email protected]
    Thanks in advance,
    Dmitry

    There is no intent to modify the OS. There is possibility to modify core libraries on jailbroken iPhone using LD_PRELOAD functionality to hook some functions. But this is not a good option.
    There are some tasks, like automatic integration of car sound system with iPhone, or interaction with music player/receiving calls while driving. I see no possibility to achieve this without remote control. The remote control may be implemented as set of named "buttons"(play,stop,send list of songs) - just like multimedia keyboard keys

  • CS3 Extended and Non functioning Clone/Healing tools

    I have installed Photoshop CS3 Extended on my PC (Pentium 4, 3 Ghz, 1GB RAM). The program loads fine and I can use the adjustments (levels, hue, filters, etc). When I attempt to use the Clone stamp tool, It does not work. If I push the "Alt" key and click the mouse, I get the cross-hairs like you are supposed to, but when I release the "Alt" key, it does not clone anything. The circle and the + signs follow the mouse, but no cloning is done. Also, with the Healing brush, it goes thru the motions (round paint brush), but does not leave the dark trace when the mouse is clicked and held. So when released, no healing is done. I have Photoshop Elements 6.0 on the same computer and it works properly. I have tried un-installing/re-installing; deactivate and repair, all with no luck.

    just some general observations...
    check that you are cloning both from and to the layers/areas you're expecting if you're working with a multi-layer document. check the options bar to see if 'use all layers' is selected, if that's what you want. also make sure that if you have a selection, you're not trying to clone outside of that selection.
    usually when this happens to me, i've forgotten about a selection somewhere. try hitting ctrl-d (deselect) in case you have one hidden...

  • Help Needed With "Extend Marker" Function Not Working

    I have several Clips and used the "DV Start/Stop Detect" function to find the time code breaks, which seems to work well. I've now got a clip full of Segment markers.
    The problem arises when I try to use Extent Markers "Option + `" to make subclips. When I put the play head on a subsequent marker, the Marker/Extend function is grayed out.
    Extending a marker that I have created using the M key works perfectly.
    Why can I not use the Extend function on Segment Markers?
    Any help on this is greatly appreciated. I have 30 odd clips that I need to set up segments for, and doing it manually will add hours to my workload.
    Thanks
    Gary
    Dual G5 2.5 GHz Dual Core, 2.5 GB RAM, 500 GB HDD   Mac OS X (10.4.3)   Final Cut Studio FCP 5.0.4

    Thanks for the reply.
    I am completely aware of items 1 through 3, and never Extend markers in the Timeline. Only the Viewer.
    To perform an Extend Marker and avoid headaches, load the captured clip - the one with the video icon in the Browser - into the Viewer. Then, as you scrub along in the Viewer, Option-` as needed.
    That is precisely what I am doing.
    To Extend the marker I first double click the clip to load the entire clip into the Viewer, where all the Section markers are displayed. I then check Mark>Markers>Extend and the function is grayed out. However, if I move the playhead one frame prior to the Section marker, the previous Section marker extends to the frame prior to the new play head position.
    If I do this with manually entered markers (using the M key, creating Marker 1, 2, 3.... in sequence on the Viewer timeline), then the Previous marker is extended to the frame immediately prior the the current play head position - i.e. from Marker 1 to Marker 2. I do not have to move off the Marker 2 position to be able to extend Marker 1.
    Also, simply selecting all your Markers and either dragging them to another bin (or pressing Command-U) does not produce the needed subclips?
    Of this I am also aware. I find the Command-U process just confuses the issue, creating more clips to manage (others may disagree). I prefer to simply drag the "Subclips" directly from the Main clip into a Timeline.
    Because you're doing all this to get subclips, right? Or wrong?
    If I understand your reply correctly, I think you misunderstood my problem. I have been using subclips for several years, and find them VERY useful, especially with multi-camera shoots. So, I am quite familiar with creating and extending markers.
    I just started experimenting with the Detect feature and find it works quit well (most of the time). My problem is that the Segment markers created by the Detect process, do not perform the same as manually place markers, as far as the Extend marker function is concerned, anyway.
    BTW - By using the TC display in my Panasonic PV-GS400 Camera, and sending the FCP video via Firewire to the camera, the camera displays the TC on the captured clip, which I then rename the marker to for TC reference. As long as the Date/Time on the cameras are properly synced, syncing clips in the Timeline is a breeze!!
    Anyway, to clarify, my process is as follows:
    1. Capture a clip.
    2. Display the clip in the Viewer
    3. Select "DV Start/Stop Detect" and watch as the section markers appear in the Viewer.
    4. In Viewer, place play head on the first Section marker
    5. Press the M key to Edit Marker.
    6. Change the Name of the marker to the timecode of the Marker now displayed in the Camcorder window.
    7. Use Shift-Down Arrow to move to the next Section Marker
    8. Press Option+` to Extend the previous marker - which does not work and is grayed out in the Mark>Markers>Extend menu.
    9. Back to step 5.
    This process works perfectly with manually created markers. Because the Extend works if I move the play head one frame prior to the current Section marker, this tells me there is something "special" about the Section marker that disables the Extend function, unlike a manually created marker.
    BTW - If I delete the Section marker, and create a manual marker at the same frame, the Extend marker function works again. Again, indicating that Section markers are different somehow from manual Markers.
    Hopefully, this wordy explanation of my process clarifies my problem.
    Aside: The clips are supplied to me by a customer on a 500GB FW800 drive. FCP5 was used to capture the clips from the original Tapes (which I do not have access to). I am the editor for the project.
    Thanks again for the reply. It is greatly appreciated. If there is any other info that I have missed that will help figure this out, please let me know and I will post a response a quickly as possible.
    Gary

  • Feature Request: Extend Environments & Function Contexts to called functions.

    As it stands, calling a function with an envrionment doesn't extend to called functions. Likewise setting a failure handler for a function context doesn't extend to called functions. However most of the work takes place in called functions, so it seems not too useful.

    1. You already have feature in SQL management studio to search for objects using full names or patterns through object explorer
    See
    http://visakhm.blogspot.in/2013/02/object-filtering-using-ssms-object.html
    2. For this you can use the catalog view sys.sql_modules and fire a query on it
    see
    http://visakhm.blogspot.in/2012/03/advantages-of-using-syssqlmodules-view.html
    http://visakhm.blogspot.in/2013/01/systemsqlmodules-and-allsql-modules.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • What happens to the function keys when i unplug the extended keyboard?

    i use my laptop (12 function keys) with a wired apple aluminum extended keyboard (19 function keys). i assigned a few functions (screen shots mostly) to the upper function keys on the keyboard... f16-f19. but when i unplug the keyboard i'm not sure how to get those functions on the laptop keyboard.
    what happens to those functions when the keyboard is unplugged? is there a way to map those functions to the keyboard so that they are re-assigned when it's unplugged?

    wilyliang wrote:
    question still remains: do f16, etc., exist or can they be re-invented once the USB keyboard is removed (besides having to re-map the shortcuts each time)?
    I haven't found a way, though there might be.
    or even: is it possible to assign two different key combos/function keys to a single command/shortcut?
    Now that depends on the application that's assigning the shortcuts. Some Microsoft and Adobe apps allow multiple shortcuts per function, I've taken advantage of those a few times myself. But cheaper apps often cut you off at one shortcut.

  • Payment order are not defined for extended withholding  tax

    Hi Gurus,
    Would you please help me with the message below. It appears on F110 when I try to pay a vendor open item with extended withholding tax:
    Message FZ626 -Payment orders are not defined for extended withholding tax
    In my company payment orders are created in F110 for accounts payable, as we use another ERP system (Baan) to perform the local accounts payments, and now I've just activated Extended withholding tax functionality With accumulation (necessary in Brazil) but I get this error.
    Is it not possible to user payment order with extended withholding tax + accumulation? I find it hard to believe...
    I've tried to unflag the payment order only for the payment method I'm using in FBZP t.code, but then no payment order were created but instead a payment document were posted with the withholding tax accumulation, but this is not the way we are working, and nothing is sent to Baan
    any help is welcome

    The payment method "Y" the option "payment order only" was marked?
    For a withholding tax type with accumulation in a company code with extended withholding tax payment
    methods that create only payment orders can´t be used. Payment orders can only be created only if there are
    no tax types with accumulation involved in the paid items of the payment run.
    The functionality extended withholding tax works fine for Brazil
    however, you can´t use the payment order with this functionality.
    Please, review your customizing for payment method 'Y" in transaction
    FBZP.
    Best regards,
    Leonardo Vedovelli
    FI Support Engineer
    SAP Active Global Support

Maybe you are looking for