How to make a callable object daemon

Hi Gurus,
I have a class which implements Callable interface and I am using thread execution framework to execute this object. My requirement is to make this thread a daemon thread. I would like to know how can i do this because setDeamon(True) doesnt exist in Callable interface.
Thanks

If you know that a method from your object is being called in the thread which you want to make daemon, try
Thread.currentThread().setDaemon(true);

Similar Messages

  • How connect a webdynpro callable object to bapi?

    hi all,
    I need to make a webdynpro callable object that connects to a bapi, to extract and modify data. I understand that this is done through a CAF. How can I make the connection?
    Thanks!

    in webdynpro callable object you can use models to connect BAPI/RFC
    Please read the following document
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks and Regards
    shanto aloor

  • How to make look an object like a piece of metal?

    hellow guys....i have a question...im kind of new in illustrator and would like to make a plane object to look like a shinning piece of metal with 3D effect....can any one tell me how to achive this? thanks in advance!

    You apply gradients of all sorts using the normal gradient tool, gradient meshes, blends and combine it with other effects like edge bevels.
    Mylenium

  • How to debug WebDynpro callable Objects?

    Hi Colleagues,
    how can i debug a webdnpro callable object? The NWDS debug wizard always would have an "application" to start a debug session.
    Best regards,
    Patrick
    http://www.mindsquare.de

    Hi,
    I haven´t tried with Callable objects, but with CAF applications. I followed the instructions on the following link and I could debug my applications:
    http://help.sap.com/saphelp_nwce10/helpdata/en/44/c707c053550f2ce10000000a1553f7/frameset.htm
    (Under the features title, Enabling Debugging)
    or directly
    http://help.sap.com/saphelp_nwce10/helpdata/en/44/f7c90118762460e10000000a1553f7/content.htm
    Best regards,
    v s

  • How to make a Graphics2D object from a Graphics object?

    Hallo !
    Graphics g = pj.getGraphics();
    Graphics2D g2 = (Graphics2D) g;I get an Exception as follows:
    java.lang.ClassCastException: sun.awt.windows.WPrintGraphicsWrapper
    Is there an other possibility to to make a Graphics2D Object ? Or can I repair the error on an other way?
    Thank you Wolfgang

    Yes JBuilder makes a reference to this line.
    pj is a PrintJob.
    The only lines in this method for test are
    PrintJob pj = Toolkit.getDefaultToolkit().getPrintJob(p,"PrintWindow",null);
    Graphics g = pj.getGraphics();
    Graphics2D g2 = (Graphics2D) g;
    pj.end();Exception occurred during event dispatching:
    java.lang.ClassCastException: sun.awt.windows.WPrintGraphicsWrapper
    Wolfgang

  • How to make "check for Objects" YES

    Hi I am trying to create installation scripts for supporting objects.
    When i click on app builder- app- supporting objects. I see check for supporting objects is "NO" i need to make it "YES" Please let me know how it should be done
    Thanks

    You would have to enforce this at the application level. You can get the IP address of the current client from the framework - IF_WD_APPLICATION method GET_REMOTE_ADDRESS.
    You could write an entry with the IP address into a temporary table during WDDOINIT.  You could clear the entry in the WDDOEXIT.  Also during the WDDOINIT, check to see if there is already an entry for this IP address.  If so, then fire an exit nagivation plug to a static MIME object or BSP page that explains why the user can only be logged in once.

  • How to make a Window object Transparent

    hi all,
    how can i make an object of Window Class transparent.
    please help me out friends.

    This is a transparent window with an orange in it:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.peer.*;
    public class Tw extends JWindow implements FocusListener, MouseMotionListener, MouseListener
         Image     img,tim;
         Graphics  tig;
         Point     mp;
         Robot     r;
    public Tw()
         setBounds(170,170,100,100);
         try
              r = new Robot();
         catch(AWTException awe)
              System.out.println("robot excepton occurred");
         capture();
         addMouseMotionListener(this);
         addMouseListener(this);
         addFocusListener(this);
         setVisible(true);
    public void mouseDragged(MouseEvent m)
         if (mp == null) return;
         Point p = m.getPoint();
         int x = getX()+p.x-mp.x;
         int y = getY()+p.y-mp.y;
         setLocation(x,y);
         paintP(getGraphics());
    public void mouseMoved(MouseEvent m)
    public void mouseClicked(MouseEvent m){}
    public void mouseEntered(MouseEvent m){}
    public void mouseExited(MouseEvent m) {}
    public void mouseReleased(MouseEvent m)
         mp = null;
    public void mousePressed(MouseEvent m)
         mp = m.getPoint();
    public void focusGained(FocusEvent fe)
         setSize(0,0);
         capture();
         setSize(100,100);
    public void focusLost(FocusEvent fe)
    public void capture()
         Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
         img = r.createScreenCapture(new Rectangle(0,0,d.width,d.height));
    public void captureX()
         Rectangle rect = getBounds();
         setVisible(false);
         Thread.yield();
         Image xmg = r.createScreenCapture(rect);
         img.getGraphics().drawImage(xmg,rect.x,rect.y,rect.width,rect.height,null);     
         setLocation(rect.x,rect.y);
         setVisible(true);
    public void paint(Graphics g)
         Rectangle rect = g.getClipBounds();
         if (tim == null)
              tim = createImage(getWidth(),getHeight());
              tig = tim.getGraphics();
         if (!rect.getSize().equals(getSize())) captureX();
              else                               paintP(g);
    public void paintP(Graphics g)
        tig.drawImage(img,0,0,getWidth(),getHeight(),
                           getX(),getY(),getX()+getWidth(),getY()+getHeight(),null);
         tig.setColor(Color.orange);
         tig.fillOval(10,20,70,80);
         tig.setColor(Color.green);
         tig.fillOval(21,16,20,10);
         tig.fillOval(40,02,11,21);
         g.drawImage(tim,0,0,null);
    public void update(Graphics g)
         this.paint(g);
    public static void main (String[] args) 
         new Tw();
    }Noah

  • How to make a flat object look round?

    I have a round logo for a company. I want to make it look like it is painted on to a christmas tree ornament.. so it almost needs to look 3D. Can I do this in photoshop or illustrator or something? Any thoughts?

    And for the lights/shadows one can often achieve good effects just with brushing in black and white on either two Solid Color-layers or two Gradient-Adjustment Layers Clipping Masked to the content-layer.
    Or, if one has CS4, one can use the small 3D-objects-library under 3D – New Shape From Layer, map the content onto that and light it according to one’s taste.

  • How to make a photographed object free standing

    Hi.
    For a client I photographed a bottle of wine (in a white tent with a couple of softboxes, got a nice photograph). Now the client want the bottle free standing without background for easy use on his website etc. How can I do that using CS4 or do I need other software. I tried to use  the magnetic lasso but I'm not satisfied. Anyone with a suggestion/solution? Thanks. BO

    I'd still use the pen tool.  If you are going for translucency, then there is a tendency for the back light to wrap round the bottle leaving a very indistinct border between the edge of the bottle and the background, and Refine Edge is not going to do well with that.  The trick — if you know you are going to cut out the bottles — is to have the backlight _just_ wide enough, or to be careful to manage the exposure.  Then there is the cap — no one uses corks here anymore — which has super fine edge detail, and is going to look horrible with anything other than a clean selection using the Pen tool.
    Dark field is even more problematic, for a lot of people as they just don’t seem to understand the angles, and have way too big a light source placed too close behind the dark background.  Plus everyone I see seems to want to overexpose the rim light.  You can get translucency with dark field by placing a bottle shaped cut-out behind the bottle at 45° to the lens axis, and fire a snooted strobe in from the side.
    Light tents make life easy, but you don’t have the control with them.  Having said that, I did resort to a light tent for a bottle of Rosé recently that was proving super difficult to photograph, but I still ended up faking a lot of it in Photoshop.

  • How to make a draggable object snap into place?

    I'm new to Flash (sort of - I used it a bit back in 1999-2000, but it's changed a LOT since then). I'm making an educational game for my company that involves dragging labels from a word-bank to their correct position on a diagram. I want the kids to be able to drag any one of the five labels and move them to any one of five marked positions on the diagram. I'm using Flash CS5 with Actionscript 3. I used code snippets, so that each individual label has the following code associated with it:
    movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
    movieClip_1.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
    movieClip_1.stopDrag();
    Is there any code that I could add in there to make the objects then snap into positions when dragged near them? Note that there are five possible positions for them to snap to. The coordinates for those are:
    X
    Y
    299.75
    235.90
    775.40
    244.65
    421.15
    447.45
    804.15
    484.85
    437.15
    599.60
    Here is a screenshot of the area of the game that this is concerning to give you an idea of what I'm talking about:
    Thanks for any help you can give me.

    It might help if I give ALL of my code for this project. Here it is:
    movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
    function fl_ClickToDrag(event:MouseEvent):void
         movieClip_1.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
    function fl_ReleaseToDrop(event:MouseEvent):void
         movieClip_1.stopDrag();
    movieClip_2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_2);
    function fl_ClickToDrag_2(event:MouseEvent):void
         movieClip_2.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_2);
    function fl_ReleaseToDrop_2(event:MouseEvent):void
         movieClip_2.stopDrag();
    movieClip_3.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_3);
    function fl_ClickToDrag_3(event:MouseEvent):void
         movieClip_3.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_3);
    function fl_ReleaseToDrop_3(event:MouseEvent):void
         movieClip_3.stopDrag();
    movieClip_4.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_4);
    function fl_ClickToDrag_4(event:MouseEvent):void
         movieClip_4.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_4);
    function fl_ReleaseToDrop_4(event:MouseEvent):void
         movieClip_4.stopDrag();
    movieClip_5.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_5);
    function fl_ClickToDrag_5(event:MouseEvent):void
         movieClip_5.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop_5);
    function fl_ReleaseToDrop_5(event:MouseEvent):void
         movieClip_5.stopDrag();
    answers_but.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    function fl_ClickToPosition(event:MouseEvent):void
         answersflyin.x = 230.00;
         answersflyin.y = 187.50;
    hide_but.addEventListener(MouseEvent.CLICK, fl_ClickToPosition_2);
    function fl_ClickToPosition_2(event:MouseEvent):void
         answersflyin.x = 693;
         answersflyin.y = 865.8;
    clear_but.addEventListener(MouseEvent.CLICK, fl_ClickToPosition_3);
    function fl_ClickToPosition_3(event:MouseEvent):void
         movieClip_1.x = 112;
         movieClip_1.y = 246.55;
         movieClip_2.x = 112;
         movieClip_2.y = 327.85;
         movieClip_3.x = 112;
         movieClip_3.y = 415.55;
         movieClip_4.x = 112;
         movieClip_4.y = 495.5;
         movieClip_5.x = 112;
         movieClip_5.y = 578.25;
         answersflyin.x = 693;
         answersflyin.y = 865.8;
    stop();
    That all works really well, too, except that the objects don't snap into place. Other than that, I'm able to drag each of the 5 movie-clips onto the board, arrange them as I like, click one button to show correct answers, another to hide answers, and another to sweep the board clean.

  • How to make a some object or picture got to a color

    hi i am VERY new at adobe flash an i am trying to get a layer or a symbol or something (im not sure what the objects in flash are called) to go to a given color does anyone know how to do this? im trying to track motion from a webcam feed with a person wereing a blue colored shirt. thanks.

    you can use the draw() method of the bitmapdata class to create a bitmap of the camera input and then loop through the bitmapdata's pixels using getPixel() or getPixel32() to find the x,y of the pixels that meet your criteria.

  • How to make a class object  from a string representation of the same

    i have the name of a class whose object i want to make in the form of a string i.e. String s="S1"; i get this name after some prosessing. so what i want to do is to create an object of S1 which is actually one class that i have implemented.plz hlp. it is urgent.thnx in advance.

    reflection api...
    see java.lang.Class. Read the api docs.
    mostly, u need to do the following:
    Class myClass = Class.forName(s1);
    Object x = myClass.newInstance();
    reg
    s giri

  • How to make a custom object function the same as the Competitor and Partner

    Would like to use a custom object to function the same way the Competitor and Partner objects work in CRM. I have not be able to accomplish this. Do you know if it is possible? Can the specialized functionality of the account relationships fields and layouts be leverage with a custom object?

    Hi Peter. Thanks for the reply.
    I assumed that if I used the project style sheet during the export, Word would convert the style so that it looked the same as in the HTML. Is that a bad assumption? I'm currently not mapping to any template equivalent for these message box styles. I did try it as one of my attempts, but I couldn't figure it out. It never seemed to take the style in the .dot.
    Anyway, if I use just 1 style, such as just the MsgBox, I obviously don't get the white paragraph between the title and message. That white paragraph comes from the first <p> tag in the MsgBox style. But I need to have the <p> tags in there because they're better for our localization process than line breaks.
    I did do some tweaks that made it look better. Basically I structured it so that the MsgBoxTitle div is now inside the MsgBox div. Something like this:
    <div class="MsgBox">
        <div class="MsgBoxTitle">PC-DMIS MESSAGE: </div>
        <p>Please do the following steps in the indicated order.</p>
        <p>1. Remove the current SH-1/2/3 stylus.</p>
        <p>2. Attach the SHSP (Stylus Holder Setting Piece).</p>
        <p>3. Jog the probe to a safe location with a clear line of approach
         to the port(s) being calibrated.</p>
        <p>4. Then click OK.</p>
        <p>After you click OK the machine will begin DCC measurement.</p>
    </div>
    And then I adjusted my styles borders, padding, and thickness. That helped it look more connected, but still doesn't look quite right:
    Would love to get rid of that white space after the title.
    If you have time, I would be interested in a more detailed example of how you did it.

  • How to make List.contains(Object) work when you write your own .equals func

    I have a list of objcts of a class defined by me. I want to use the List.contains(String name) function to tell me if it contains an object of that name. I have overriden the .equals function as shown in [1]. I then use the code at [2] to to test it, with a bit of debugger output as shown in [3]. It is not working, my overriden method is not getting called by List.contains(String name).
    Can anyone tell me how to get this to work?
    [1]     @Override public boolean equals(Object esId) {
            if(esId.getClass().isAssignableFrom(String.class)) {
                System.out.println("object name " + this.eslimId + " compare to " + esId + " = " + this.eslimId.equals(esId));
                return this.eslimId.equals(esId);
            } else {
                System.out.println("wrong class");
                return super.equals(esId);
        }[2] graphics.getProcedures() returns private List<ProcedureGraphicSet> procedures;
    System.out.println( " graphics.getProcedures().get(0).equals(\"ESLIM_009\")= " + graphics.getProcedures().get(0).equals("ESLIM_009"));
    System.out.println( " graphics.getProcedures().contains(\"ESLIM_009\")= " + graphics.getProcedures().contains("ESLIM_009"));[3]
    object name ESLIM_009 compare to ESLIM_009 = true
    graphics.getProcedures().get(0).equals("ESLIM_009")= true
    graphics.getProcedures().contains("ESLIM_009")= false

    This is a gross violation of the contract for the equals method, and you are basically getting bitten by that. The equals method must be symmetric, meaning this must hold for all objects A and B:
    A.equals(B) == B.equals(A)This does not hold for your equals method because for any string A and custom object B:
    A.equals(B) == falseAnd, apparently, the List.contains() method is choosing to compare objects that way.
    You must iterate through the list and check the names yourself, or use some sort of functional package which provides a List.contains() type method which takes a Predicate object of some sort.
    Edited by: jtahlborn on Feb 11, 2008 11:03 AM
    Edited by: jtahlborn on Feb 11, 2008 11:03 AM

  • How to make a 3d object of 2d image

    Hello everyone,
    I have this image of a robot - crude, 
    I would like to place this within another image (the map) and move it around according to the movements of the robot. I believe the best way to do this is by making a 3d object and placing the texture on it.
    However, I am having difficulty editing the examples from the NI site (community zone) to achieve this. This also includes configuring the camera to effectively remove the 3rd dimension but still show the whole map (which is a blank 512 by 512 pixel image. The robot image is 40 by 40 pixels.
    An example in LabVIEW 8.6 (open-able) would be really helpful in aiding me to learn the use of these powerful 3d picture controls.
    Regards,
    James  
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!
    Solved!
    Go to Solution.

    Hi Daniel,
    Thanks for your post. But, I am likely to have many more robots in the environment and other meshes. I wondered if a 3D picture control using objects would provide greater flexibility?  But yes, I would like the 3D image flat (2d).
    What do you think?
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

Maybe you are looking for