How to monitor a java service in windows environment

Hi all,
I have a 5 java services running on a windows box.
I want to monitor one of those. This service is called "appnew " and appnew interacts with the oracle database.
If it is running normally the application name as seen in the task manager is "appnew running" whenever there is some runtime exception the name changes to "appnew error".
now I want to develop some external tool which can send me alert emails when we get runtime exceptions and the service name changes to
"appnew error".
I appreciate your help.
Thanks in advance.

The code you are using to change the process name to "appnew error" is the place you want to put your call to an e-mail launch.

Similar Messages

  • I want to run java program on windows environment as background process

    Hi all
    I want to run java program on windows environment as background processSo command prompt return after executing java command and program on background In Linux we can do this easily �but I do not how to do this in windows
    for example look this programe
    import java.io.*;
    import java.util.*;
    public class TestClass {
         class ravi extends Thread{
              public void run(){
                   try {    
                        String target_file = "ravind.txt";
                        File targetfile = new File(target_file);
                        PrintWriter writer = new PrintWriter(new FileWriter(targetfile)) ;
                   for (int i =0 ; i < 100 ;i++ ){
                        Thread.sleep(10000);
                        writer.println(" ravindra shukla ");
              } catch (Exception e) {               
                             e.printStackTrace();
         public static void main(String[] args) {
              TestClass test1 = new TestClass();
              TestClass.ravi r1 = test1.new ravi();
              r1.start();          
    System.out.println(" return from main ");
    first i compile this
    javac TestClass.java
    then i run this by using this command
    java TestClass
    but becouse i put sleep on threads run function so it takes to much time to get return on command promt .... i want to run this programe as background process so command promt return as soon as i execute java command

    Thanks dude
    This solution �start java TestClass� works fine �. But it does not solve my problem
    It opens another black window and that black window persist till the life time of my program
    Is it possible application run on complete background without opening another black window �as in Linux

  • How to execute a java pgm thru Window service

    How can we execute a java pgm thru window service, now am executing thru a .bat file but want to change it as window service

    http://sourceforge.net/projects/wrapper/

  • How to monitor MySQL Server installed in Windows Server using Nagios

    You can do this via NSClient as Gary posted. The NSClient is a communications system that allows nagios to send commands to a target system over the nsclient protocol and they are executed on the remote system. You will still have to build some kind of vbscript or plugin to run on the target system to do the actual query to check on mysql.There are other options to. If you enable snmp on your target computer you can use a few nagios plugins to query the snmp agent on the target computer to see if a service is running. To do this via snmp you will need this plugin "check_snmp_process.pl" fromthis site.Your check command will look something like this:check_win_process:= check_snmp_process.pl -H $HOSTADDRESS$ -C "$USER6$" -n "$ARG1$" -w $ARG2$ -c $ARG3$The service definition will be like this:check_win_process!sqlservr!0!0This will check...

    I installed Nagios Core in my Ubuntu workstation 10.04 for me to learn something new in my craft. I use this now to monitor our Windows Server 2008 with MySQL server installed as well as our Datalink Switch (DGS-1210-24). I searched on google on how to monitor a MYSQL server installed in Windows server using Nagios Core but i could not seem to find any. Could anybody who's expert in Nagios give me steps on how to do so. Thanks. All i found in google were steps in monitoring mysql installed in linux and nothing in windows server.
    This topic first appeared in the Spiceworks Community

  • How to run a java program in windows 2003 server from unix server.

    Hi ,
    I want to run a java program in windows 2003 server from unix machine ..
    will RMI helps me to obtain this.
    Please tell me the procedure to do this.
    Thanks in advance,

    rmi,web services,corba,web 2.0,xml,xls,dtd,rss,ruby on rails,https,soap,tags,blog,podcast,google

  • How to publishing the Bonjour service in Windows ?

    i know how to publish a bonjour service in the Mac OS,but i didn't know how to do this work in windows.Can somebody help me,thanks.

    https://discussions.apple.com/thread/4213411

  • How to schedule a java application via Windows Scheduler

    I can't figure out how to schedule a java application using the Windows Scheduler. Do I schedule the java application with the .class file as a parameter? How do I pass arguments to it?
    To execute FileCopy.class, my best guess was:
    Start | Control Panel | Performance and Maintenance | Scheduled
    Tasks | Add Scheduled Task | Browse | Program Files | Java |
    jre1.5.0_06 | ... Advanced Properties
    Under the Task tab:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe"
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy
    FileCopy"
    This does not work. How do I schedule the FileCopy.class java application, and how can I pass arguments to it? Can this be done without specifying a password?
    TIA,
    John

    Suppose that your class is FileCopy (has no package name) and is located under MyDocuments\Eclipse_Workspace\Java_File_Copy folder, then you should have:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe" FileCopy
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy"
    And yes you must provide a user password to execute the task.
    Best way to do this is to create a special user (with password) for executing this task.
    Regards

  • How to use Remote Desktop Service in Windows Azure

    Good day
    Hi! im kinda newbie when it comes to windows azure, I would like to ask if how can we use the RDS CAL in windows azure?

    Hi,
    Please visit the URL below for detailed instructions on using/configuring RDS CAL.
    http://blogs.technet.com/b/keithmayer/archive/2013/09/04/step-by-step-remote-desktop-services-on-windows-azure-a-cost-effective-alternative-to-desktop-as-a-service-part-2.aspx
    Regards

  • How to monitor the cloud service without visiting management portal

    Hi,
    I have few very important cloud services which needs to be monitored and report immediately by mail when the service state becomes unhealthy. Is there any tool from Microsoft (not any third party) which helps me do this? Is there any tools from Microsoft
    System Center?
    Thanks in advance.

    Hi,
    You can receive an alert based on monitoring metrics for your Azure services. An
    alert rule enables you to monitor a Azure service based on a metric value. When the value of a specified metric violates the threshold assigned for a rule, the alert rule becomes active and registers an alert
    Refer to the Following Article :
    How to: Receive Alert Notifications and Manage Alert Rules in Azure
    https://msdn.microsoft.com/en-us/library/azure/dn306638.aspx
    Regards,
    Nithin Rathnakar

  • How to recover oracle 9i services in windows xp

    i had my registry corrupted so i had to restore it from an old registry bakup tht i had made
    the problem now is that the bakup was taken before i installed oracle
    so now i have oracle installed without any registry entries so i had to install it all over again but it asked for a different database name.when i entered my old name it showed me an error that it already exists so i intalled it with a new database name. now everything is working but i cannot start my old database since there is no service available to start it in services
    how can i create a service for my old database

    You can find it in ORACLE_HOME\bin, where ORACLE_HOME may be your C:\oracle\ora92\bin.
    Utility name is oradim
    following command will create the service.
    oradim -new -sid %ORACLE_SID% -pfile c:\path\to\some\init.ora
    where %ORACLE_SID% is your old sid name.
    Thanks

  • How to install EPM Provider services on windows.

    Hello all,
    I downloaded the EPM 3 packs and the EPM installer as well. My aim is to install the SmartView for Office and work with OBIEE from MS office components through the SmartView features.
    When trying to install the EPM, it shows the "shared services" and "SmartView" as the installable things on my laptop. There are neither other components called "Provider Services" nor it allows to install anything other than the two listed above.
    Can anyone guide me how to install these Provider services and how to connect to OBIEE from MS-Office tools using SmartOffice client?
    Any suggestions are highly appreciated.
    Thank you
    Narasimha

    Hi,
    Provider Services is part of the essbase server installation, you will need to download "Oracle Essbase Server Release 11.1.1.0.0" and install the server element of provider services.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to set the java service to "Core"

    Hi,
    I would like to set one of the java service to "core" but the check box is not editable. Can any one let me know if there is a way to make it core?
    Thank you.

    Hi Hareesh,
    Hope you are doing good.
    Thats great.
    The application startup mode is set to decrease the initial load on the J2EE Engine and to minimize its startup time at each restart. The default value is "lazy" and you should use the most appropriate startup modes for your applications. This is because all WD applications are designed started lazily and they should be all stopped and get only started when they are triggered for the first time (i.e. by first invoke of the given WD application). The decision was taken that way because SAP wanted to prevent start-up time problems when Web Dynpro applications were started right with the server. This is why they always start upon first request.
    So you can change the "StartUp" for the application you deem fit. 1 equals to manual, 2 equals to lazy and 3 equals to always (using configtool as mentioned earlier).
    Specifying the Application Startup Mode
    http://help.sap.com/saphelp_nw73/helpdata/en/25/0c08f3981343609d4045f8acaa0a76/frameset.htm
    Thank you!
    Kind Regards,
    Hemanth

  • To launch a java application in Windows environment

    hello,
    I need to distribute one stand alone application, that I made using NetBeans, for sale it.
    I know that this is not a so simple problem, because delivering the program to one client you cannot simlpy say him to launch the jar file....
    I saw that, in the Windows environment, program like eclipse or netBeans run thruogth an .exe file, that I think is a program that its purpose is to define the java environment for the application in the particular host operative environment .
    Perhaps they are corporations like InstallShield (now Macrovision) that sale programs to solve this type of problems..., and I already used this type of programs to install some my
    applications that I coded in languages different than java.
    But before to look for one of them, I should like have more informations how this problem fits in java language, knowing that java is different to other languages because use JRE and have proper tools, how JWS and JNPL, that concern with this problem.
    ...Looking in the forum I had not much help..., but I saw that someone uses to write launchers program in different language, like C, as well I had not so much detailled instructions about how to do it.
    In order to solve my problem I should like have, from some one that already made it, some general information about how he realized the commercial installation of java applications in the most used Operatve Systems (particullary Windows), and possibly to have links to web sites for good explanations, including advantages to buy apposite commercials installation programs too.
    thank you very much
    tonyMrsangelo

    You can distribute it as an executable JAR so users will run it by double clicking. The would be required to have JRE installed.
    You can distribute it online via WebStart. Users need JRE but it's easier to manage updates and distribution of new versions.
    You can distribute it with AjaxSwing, a product that deploys Swing applications as AJAX websites so you don't need JRE at all.
    You can create EXE files using many of the products available. Google for it and you'll get lots of hits.

  • Can I run my java program in windows environment?

    How can i make my compiled java program run into windows environment?
    What program will i use to be able to do that?

    1. Install the JRE.
    2. Go to the command line.
    3. Type something like java myClass or java -jar myJar.jar.
    You could also use one of the many java2exe (java to executable) programs floating out there.

  • Refresing the Printer Services (in Windows Environment)

    Hi,
    We implemented a service which shows the list of the printers to the end user. But the list of printers does not get refreshed when we add or remove a printer from the windows machine where this application is running.
    Does PrintServices get refreshed when a new printer is added or deleted ?
    In JDK 1.6 they implemented some logic to refresh the list of printers based on windows notification event *"FindFirstPrinterChangeNotification"*
    But i don't know for what events the java api updates the list of printers?
    There is a piece of native code WPrinterJob.cpp which gives the list of events... but that piece of code is commented for some reason...
    Does any body have a solution or a workaround for this problem?
    Here is the piece of code from WPritnerJob.cpp
    JNIEXPORT jlong JNICALL
    Java_sun_print_Win32PrintServiceLookup_notifyFirstPrinterChange(JNIEnv *env,
    jobject peer,
    jstring printer) {
    HANDLE hPrinter;
    LPTSTR printerName = NULL;
    if (printer != NULL) {
    printerName = (LPTSTR)JNU_GetStringPlatformChars(env,
    printer,
    NULL);
    JNU_ReleaseStringPlatformChars(env, printer, printerName);
    // printerName - "Win NT/2K/XP: If NULL, it indicates the local printer
    // server" - MSDN. Win9x : OpenPrinter returns 0.
    BOOL ret = OpenPrinter(printerName, &hPrinter, NULL);
    if (!ret) {
    return (jlong)-1;
    // PRINTER_CHANGE_PRINTER = PRINTER_CHANGE_ADD_PRINTER |
    // PRINTER_CHANGE_SET_PRINTER |
    // PRINTER_CHANGE_DELETE_PRINTER |
    // PRINTER_CHANGE_FAILED_CONNECTION_PRINTER
    HANDLE chgObj = FindFirstPrinterChangeNotification(hPrinter,
    PRINTER_CHANGE_PRINTER,
    0,
    NULL);
    return (chgObj == INVALID_HANDLE_VALUE) ? (jlong)-1 : (jlong)chgObj;
    This is in WINDOWS Environment.
    One workaround found on the web is to unload the Java class which caches these list of printers and reload it. But this process takes lot of time as it has to get all the list of printers every time.
    Thanks,
    Vijay.
    Edited by: krisprol on Aug 29, 2008 12:05 AM

    Re-installed (repair mode) iTunes. That fixed it.

Maybe you are looking for

  • How do I rebuilt my itunes purchases on my new computer

    I just got a new computer.  my content from my old computer was saved to an external hard drive.  itunes does not want to import my purchased library.  help

  • HT5577 Broken recover Link

    someone is using my account, anytime i try to recover from my mail. the link is broken...how to recover it in other way ?

  • Linking a Powerbook & an iMac g3

    Hi anyone know how I might get a Powerbook and a G3iMac both active on the internet using only one broadband cable? I just want to set up my old G3 for my 3 year old daughter so she can hammer away at the keyboard without me having a heart attack! Do

  • Session management, No Log Found

    Hi, Is it possible for a user to view his log? Now he will get the message 'No Log Found' when he opens the 'View Log' via Session managment. Thnx, Robbert

  • Quicktime playback, choppy.

    I have a Mac version 10.3.9. I am using Quicktime version 7 pro. I am having a problem with direct streaming, and even video playback when offline. It does not happen with every file, and I cannot figure out why I am having problems. When I do have a