How to get status of windows services

Hi ,
can i use java to get the status of services running under windows (the services that we get on running "services.msc" in run). i want to monitor the status of a service.
Thanks.

JoachimSauer wrote:
That's not possible in pure Java, because it's a operating-system dependent operation.
You'll have to call some OS components somehow. Either execute an external executable using ProcessBuilder or use JNI/JNA to call some native APIs to do that.At this point, though, it's worth asking yourself "Should I even bother writing the front-end in Java?"

Similar Messages

  • CRM document - how to get status duration?

    Dear all,
    I extract data CRM -> BI  using standard datasources: 0CRM_SRV_PROCESS_H, 0CRM_COMPLAINTS_I, etc
    I need build a report with status duration of documents
    For example, if document was processed 4 days in statuses OPEN > IN PROCESS > VALIDATION > CLOSED report should be following:
    OPEN - 1 day
    IN PROCESS - 2 days
    VALIDATION - 1 day
    Each CRM datasource has start date and last change date of the document
    But there is no fields which stores date or duration of intermediate status change
    Could you please give an advice - how to get status duration?
    Thanks in advance

    Hi Oleg,
    Please check whether following standard datasources could meet your requirements:
    0CRM_TSS_DTRACK  CRM Tracking of Document Processing Lifecycles
    0CRM_TSS_PKYF       Timestamp Service: Performance Key Figures
    You can find the documents in transaction code SBIW, through IMG path
       Settings for Application-Specific DataSources (CRM)
           -> Settings for Extracting CRM Objects
                 ->  Define Extraction to Track the Document Processing Life Cycle   
                  -> Define Performance Key Figures for Time Stamp Service Analysis
    Best Regards,
    York

  • Subject: How to get a rolling window  query of last 12 months?

    Subject: How to get a rolling window of last 12 months?
    I am developing a report on 0TCT_C21. I want to compare process chain execution time for every month for last twelve months to see a trending report.
    How can I determine this information dynamically, i.e., when report is run, let us say in Dec 2009, it will show me 12 columns: Jan to Dec 2009, but if report was run in Dec 2010, it will show   12 columns results from Jan to Dec 2010.
    Any information will be greatly appreciated.

    Hi,
    Keep offset value-1, -2, -3, ... -11 for 0Calmonth.

  • How to get the parent window in sub-child controller class in javafx?

    how to get the parent window in sub-child controller class in javafx?

    You can get the window in which a node is contained with
    Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
    If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
    Window owner = null ;
    if (window instanceof Stage) {
      Stage stage = (Stage) window ;
      owner = stage.getOwner();
    }

  • How can get the console window name of the current form?

    How can get the console window name of the current form?

    Try the various get methods of the viewObject such as getQuery:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/

  • How to get Folder or document service permissions  by using  KM API's

    Hi,
    Any help how to get Folder or document service permissions  by using  KM API's  
    Any help or hint is greatly appreciated.
    Thanks,
    Costa.

    Hi,
    I have tested it here and it works for me (this code lists the service permissions settings for folder /documents/temp/):
        RID rid = RID.getRID("/documents/temp");
        try {
          IUser user = (IUser) request.getUser().getUser();
          IResourceContext context = new ResourceContext(user);
          IResource res = ResourceFactory.getInstance().getResource(rid, context);
          IResourceFactory resourceFactory = ResourceFactory.getInstance();
          IRepositoryServiceFactory serviceFactory = resourceFactory.getServiceFactory();
          IAclService aclService = (IAclService) serviceFactory.getRepositoryService(res, IWcmConst.ACL_SERVICE);
          IResourceAclManager aclResourceManager = aclService.getAclManager();
          IResourceAcl resourceAcl = aclResourceManager.getAcl(res);
          boolean inheritedAcl = false;
          if (resourceAcl == null) {
            resourceAcl = aclResourceManager.getInheritedAcl(res);
            inheritedAcl = true;
          response.write("<strong>SERVICE PERMISSION OWNERS</strong><br>");
          IUMPrincipalList ownerList = resourceAcl.getOwners();
          IUMPrincipalListIterator ownerListIt = ownerList.iterator();
          while (ownerListIt.hasNext()) {
            IUMPrincipal ownerPrincipal = ownerListIt.next();
            String strPrincipal = ownerPrincipal.getId();
            response.write(strPrincipal + "<br/>");
          response.write("<br><strong>SERVICE PERMISSIONS</strong><br>");
          IResourceAclEntryList el = resourceAcl.getEntries();
          IResourceAclEntryListIterator it = el.iterator();
          while (it.hasNext()) {
            IResourceAclEntry entry = it.next();
            String strEntryPerm = entry.getPermission().getDescription();
            String strPrincipal = entry.getPrincipal().getId();
            response.write("<strong>" + strEntryPerm + "</strong> - principal: " + strPrincipal + "<br/>");
            IAclPermissionList plList = entry.getPermission().getMembers();
            IAclPermissionListIterator plListIterator = plList.iterator();
            while (plListIterator.hasNext()) {
              IAclPermission perm = plListIterator.next();
              response.write(perm.getDescription() + "<br/>");
        } catch (Exception e) {
          response.write(LogWriter.extractCallStack(e));
          LogWriter.traceSevere(LogWrapper.trace, e, LogWriter.extractCallStack(e), true);
    Romano

  • How to get status of transaction

    Hi Gurus,
    can anyone tell me how to get status of the transaction in crm.
    regards,

    hi vijay,
    what kind of transaction did you want to get the status ?
    for order, complaint, activity, and task, you can used function modul 'CRM_ORDER_READ' for getting status of the document.
    hopes it helps
    cheers

  • How to get icloud on windows vista 32 bit?

    How to get Icloud on Window Vista 32 bit PC?

    Try using the installer from the following download location at Apple:
    iCloud Control Panel 2.1.3 for Windows Vista

  • How to get PAID from Windows Phone Store?

    I have more than 300 USD app proceeds in my Windows Phone Dev Account. But I am not getting paid. How to get paid?
    I have also a Windows Store Dev Account. Last month, it reached 200 USD and I got paid. But I am confused about the
    Windows Phone Dev account. It crossed the threshold amount 2 months ago. But I am not seeing any chance to get paid. Is this only happening to me? Or do I have to earn more app proceeds?
    Kindly reply me as soon as possible. Thank you!

    Hello Shahriar,
    To open up a Service Request ticket you can click this link below and then click “Select your type of problem here”. Follow the steps on the next few screens and once
    you have the Service Request number you can post it back into this thread and we can make sure it’s being looked after. The Service Request number should look similar to SRX127xxxxx.
    Where to open up a Service Request ticket
    http://dev.windows.com/en-us/community/support
    Best Regards,
    Joe
    Windows Developer Support
    Send us your feedback about the Windows Platform

  • How to get current PopUp Window

    Dear All,
    I am using NetWeaver 7.1 sp1 and facing a problem. Actually I want to show a view in popup window. The popup window works fine but i want to get currently popup window. How can i get it in View and controller ??
    I found a solution : wdContext.currentPopupElement().getWindowInstacnce();
    but in wdContext there is no method like .currentPopupElement(). plz help.

    Hi
    wdContext.currentPopupElement().getWindowInstacnce();
      Here PopupElement is a attribute of IWDWindow type where u have to put the window instances (say For close or life control of that popup)
    For further plz go through these doc
    1. [Dialog|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1&overridelayout=true]
    2. [Popup Window|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a04870c5-749b-2b10-06ba-d25515ef39e3&overridelayout=true]
    Best Regards
    Satish Kumar

  • How to Get the Login Window and/or Bypass Login Items?

    Greetings, folks!
    This is a silly question, but the old standby of “hold down the shift key” doesn’t work in 10.6.1:
    What key(s) need to be pressed to get the LogIn window and then after LogIn, to bypass LogIn Items?
    Thanks!!
    Richard Fairbanks

    Not here, on a fresh (erased) install.
    Pressed either before or after the initial gray Mac appears, the shift key does not access the LogIn screen. It is possible to bypass the account’s LogIn items by holding down the shift key after the LogIn screen has been called and successfully commenced, but how does one call the Login screen when the Mac is normally set up for automatic login?
    It used to be the shift key . . . 
    Thanks!

  • How to get status codes of field?

    For every document type or status field which we can see on front end, there is code which is finally stored in table.
    e:g: Go to transaction /nme53n
            Select any purchase req.
            Select status tab from item.
            See – processing status field.
            These processing status saves as N,B, etc in table.
    I know there is way to see these codes followed by full description on front end screen itself. I think using personal settings, but dont know how to set this. Please let me know how to see status codes + description on front end.

    You gui status should be implemented in the main screen which the subscreen resides, all function codes should be handled at that level. I believe you will need to set the F2 funciton code in your gui status, set the function code to PICK and then handle this function code in your PAI user command module. Should work.
    subscreen cannothave their own pf-status.....so create a pf-status for a screen in which ur subscreen is called...include 'pick' or f2 as onre of the functions code for the choose option.
    to differentiate the field u have to use get cursor field fldname.
    if it is a table control field u have to use
    get cursor field <fldaname> line <n> value <fval>

  • How to get imei on window Mobile???

    Hi All,
    I want to get IMEI number on Window Mobile using J2ME , how to get it?
    Thanks.

    Not covered in the general CLDC and MIDP API. Check the manufacturer's developer area, they may have a proprietary API that allows this.
    Any solution would certainly be manufacturer dependent, and may also be model dependent. A proprietary API is by its very nature supported only on certain models.
    db

  • How to configure XMLP as Windows service

    I installed XMLP on Windows Server 2003. It works fine when I login in and start the server directly. How can I configure the server so that it start when the server is rebooted without having to lgoin as a user and start it directly? I work mostly in linux, and my windows support folks are baffled. <sigh>

    Im being lazeee here and have not had time to test this but I found
    http://radio.weblogs.com/0132383/stories/2004/04/28/oc4jAsAWindowsService.html
    The XMLP server runs inside the OC4J J2EE container so it should work. If you try it please let us know how you get on?
    Regards, Tim

  • How to run application as Windows Service

    I have developed an appl using Java Swing. I want to run the application as Windows Service. How can I do that? Along with that, I also want to start Tomcat Server as a separate Windows service. Kindly Suggest some solutino to this!!

    There is a version of Tomcat that runs as a service. (1.4 for windows?)
    As for your own app, there are several free service launchers around (Google for java service etc.) Not sure about a service with a user interface though - services are usually headless. You may have to paritiotn your app into a headless service and a user interface app which communicaes by RMI, sockets or some other RPC mechanism.

Maybe you are looking for

  • 10.6.3 to 10.6.8

    I have just upgraded to OS 10.6.3 but I needed 10.6.8. I tried software update and have downloaded the relevant software as advised but I got the following messages. Anyway to resolve this? I needed to upgrade to 10.6.8 to install Itune 11 for my new

  • Error [..\..\src\Command.cpp-2519]

    Hi, when I try to apply any of the presets to my source files I get this error. For instance, I can't use "MPEG2 1080p 24fps High Quality" to render my videos. I heard it might have something to do with my processor. Hope not. Help! Thanks.

  • Resolution of screenshots in PDF

    Hi, I am creating an 8.5x11 PDF document that contains a screenshot. My workflow is take screen caputure > paste in Photoshop (resize/sharpen/trialerror) > save .png > drag .png into InDesign and set it to 100%. I cannot get the screen shot to not lo

  • Jsp - php integration

    Hi all, First up all I am very new to java. I have a web application developed on php. I also have a CRM (customer relation management) delevoped on jsp.So I want to pass some values from php to java so that a popup window showing details of customer

  • I have a Mac OSX 10.8.3 but there isn't a category for it?

    I want to ask a question but am having trouble finding the place to do that.  My particular Mac OSX isn't on the list. My Question?  Where has the satellite Radio option gone on my iTunes?  I used to find it on the left column.  The options list is n