Specifying a process name for a java application

Hi,
we run multiple java applications on our Windows 2003 server. It is diffucult to monitor these processes as they all appear as "java.exe" in the Windows Task Manager > Processes.
Is there a way to specify a name for such a process? My colleague has suggested creating a copy of java.exe for each process, and then renaming the executable to reflect the name of the application it is starting. I think this method is not very flexible.
Thank you for your suggestions in advance.

Is there a way to specify a name for such a process?
My colleague has suggested creating a copy of
java.exe for each process, and then renaming the
executable to reflect the name of the application it
is starting. I think this method is not very
flexible.That is the easiest though.
If you don't like it then I think (as a guess only) that the following is possible.
1. Create your own java launcher. As long as you don't distribute it you can start with the java source code for this.
2. Find the Windows API that allows you to change the application name on start up.
3. Modify the launcher to do this via a command line option.
Of course there might not be any such API.

Similar Messages

  • Deploytool: Can't specify a JNDI name for RA

    Using j2eesdk1.4_beta2, it appears there is no way to specify a JNDI name for a Resource Adapter. Is there a default name I can use to look up my RA if I don't specify a name? The Deploy Tool help describes some tabbed panes appear to be missing from the appication. Is there a way to work around this problem until the final release comes out?

    Headache!... That's what is expecting you in the DeployTool.
    The deploytool generates invalid deployment descriptors for Resource Adaptors.
    As you mentioned, it doesn't allow you to select a ResourceAdaptor implementation. In my case, I'm using my own Connection and ConnectionFactory and it didn't allow me to choose an implementation class for either interface neither.
    I solved these problems by downloading XMLSpy and using the XML Schema to fill-in the gaps in the ra.xml descriptor. There I had also to include other mandatory elements that where not written by the deployTool, like: <display-name>
    <vendor-name>
    <eis-type>
    <resourceadapter-version>
    Regarding to the <<null>> error, it has to deal with an invalid sun-ra.xml. It's either empty or it's missing a mandatory element. I used again XML Spy here to give a JNDI to my adaptor.
    I thought I was through it but I still can't deploy on the server. When I try, I get the following error:
    <[INFO][j2eesdk1.4_beta2][][][12][javax.enterprise.system.tools.admin][03.november.2003 22:16:22:351 CET][ADM5604:Processing config change [Domain:add to xpath=/domain/applications
    childXPath = /domain/applications/connector-module[@name='SimpleRAR1']]]>
    <[INFO][j2eesdk1.4_beta2][][][12][javax.enterprise.system.tools.admin][03.november.2003 22:16:23:302 CET][ADM1041:Sent the event to instance:[ModuleDeployEvent -- deploy connector/SimpleRAR1]]>
    org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
    [.... 200 lines stack trace ....]
    <[WARNING][j2eesdk1.4_beta2][][][12][javax.enterprise.system.tools.admin][03.november.2003 22:16:24:043 CET][ADM5603:Event listener error [null]]>
    So far I haven't found a way to get solve this one. The <NAMESPACE_ERR> makes me think about the infamous 'locale' error of the deploytool, but I included the JVM parameters [USER_LANG=en,USER_REGION=US,USER_COUNTRY=US] in the server startup and it didn't change anything.
    If you get further than that, please let me know.
    -regards,
    Gerard.

  • How to create a .exe file for a java application

    Hi, I want to create a .exe file for a java application I am developing so that I can schedule it to run at a particular time using Windows Scheduler on WinNT. Is there any way to accomplish this? Or is there any other way in which a Java application can be scheduled to run at a particular time on Windows everyday?

    Create a .bat file and run that. Just have, in the .bat file:
    java YourClassName Alternatively, you can use javaw YourClassName (without *.bat, just put it into Windows Scheduler like suggested above).
    using javaw won't pop up any window...

  • Using oracle personal for developing java application?

    Can I use Oracle 9i Personal Edition for developing Java applications? Does it provide a JDBC Type 4 driver?
    Thanks a lot.
    [email protected]

    SIR I WANT TO UPLOAD MY DEVELOPER FORMS BY USING ORACLE 8I SERVER?
    CAN U TELL ME THE PROCEDURE IN DETAIL?
    I WILL BE THANKFUL TO U
    MY EMAIL ADDRESS IS [email protected]

  • Update JVM for Sun Java Application Server8

    Hi:
    I am wondering how do I update the JVM for an already installed Sun Java application Server 8. Does any one know how to do this? Thanks

    user4877326 wrote:
    Hi Experts,
    Need some good links and documentataion for "Sun Java Application Server". When I am making a serch for this I am getting links to Glassfish.
    So please help on the documentation for Sun Java Application Server .
    Regards.This is because Glassfish is the same product as Sun Java Application Server in that regard.
    The versioning goes as follows:
    Kiva Enterprise Server 1.x
    Kiva Application Server 2.x
    Netscape Application Server 4.x
    NetDynamics 5.x
    SunOne/iPlanet Application Server 6.x (merger of NAS4 and ND5)
    Sun Java Application Server 7.x = SunONE/iPlanet Application Server 7.x
    Sun Java Application Server 8.x = Java Enterprise Server Application Server 8.x
    Sun Java Application Server 9.x ~= Glassfish 2.x
    Glassfish 3.x
    Clear now? :)

  • SWC and Unit for PI 7.0 for a Java application

    i want to integrate my Java application with XI.
    In SLD what should i mention the SWC and Unit for PI 7.0 for a Java application to be integrated????

    If your Java application is not provided by SAP, you create a new product and software component for this in SLD.
    Regards
    Stefan

  • Workflow Process Name for Single/Bulk enrollment

    Hi,
    What is the Workflow Process Name for Single/Bulk enrollment through Learning Administrator ?

    Hi,
    In this process, how to enable approval flag for Learner Administrator ?
    or in other words ...
    Does approval can be set when Learner Admin enroll any employee/learner in the class ?

  • Mechanism for monitor java application or JVM

    Ladies & Gentleman,
    I develop Java application under Windows 2000 datacenter. For gurantee to capture all of abnormal situation of java application and also JVM, I need to know how to capture the situation. Do any other tools to do these things? I am very appreciated if you could tell me.

    You don't exactly need any specific tools to just capture exceptions, that can easily be done by wrapping the program you want to monitor with your own main() method and adding some shutdown hooks...
    But it would be nice to know what you want to do once it happens....
    Regardless of which, here's an example of that wrap...
    import java.lang.reflect.*;
    public class Watch extends Thread
         public void run()
              System.out.println("VM is closing down");
         public static void main(String[] args) throws Exception
              if (args.length == 0)
                   System.out.println("You must supply the name of the class to start with.");
                   System.exit(1);
              Runtime.getRuntime().addShutdownHook(new Watch());
              try
                   Class theClass = Class.forName(args[0]);
                   Method theMethod = theClass.getDeclaredMethod("main", new Class[]{String[].class});
                   String[] theNewArray = new String[args.length - 1];
                   System.arraycopy(args, 1, theNewArray, 0, theNewArray.length);
                   System.out.println("Starting program with class "+args[0]+"...");
                   theMethod.invoke(null, new Object[]{theNewArray});
                   System.out.println("Program is done running.");
              catch (ClassNotFoundException cnfe)
                   System.out.println("No such class: '"+args[0]+"'");               
              catch (NoSuchMethodException nsme)
                   System.out.println("The class "+args[0]+" has no main method.");
              catch (SecurityException se)
                   System.out.println("Can't start: "+se.getMessage());
              catch (IllegalAccessException iae)
                   System.out.println("Can't invoke main method in class "+args[0]+": "+iae.getMessage());
              catch (Exception ite)
                   System.out.println("Exception occurred when running class "+args[0]+": "+ite.getMessage());
    }You can easily just swap those System.out's for something else.
    However, if you mean watching the process from outside the VM, then you need something else, I suppose.
    /F

  • How to capture the process type for a particular application

    In my application CRMD_BUS2000120 there are 3 process types namely incidents, zcomplaints and zrepair order. But all the 3 display the same description as New: Incidents . Since this is attached with the application name. How can i change the description according to the process type i select. If I select incidents the description should be Incident , if i select zcomplaints it should be zcomplaints. Can anyone guide me how to do this.
    Thanks in Advance,
    Anu

    Hi Fred,
    If you open any activities or opportunities, you can see the description if you select new button and click on the process type. It will be display Activities and below that New: Activity. Instead of always displaying the same description I want to override the description according to the process type. For me the application is not activity but Incident. Hope I am clear with the question.
    Thanks,
    Anu

  • Creating Packages and Namespace for Webdynpro Java applications in NWDS

    Hi Experts,
    I am working on a stand alone application and using NWDS for the same. This application consist of some Webdynpro Java apps, Dictionary perspective DC's and BPM applications.
    I need to create a package and name space for all the applications. I have read some documents on creating SC in SLD and using it in NWDI. But since I am working on NWDS i am not able to see the SC.
    May be I am not following a correct procedure. Can some one provide a basic document or can tell me steps in short that i need to follow, for Name space and package creation and how to use them in NWDS.
    I am working on CE7.1 ehp1.
    Regards
    Pranav

    HI,
    This blog expalins how to Setup and configure NWDI System land scape:
    /people/bhavana.gupta/blog/2007/01/23/installation-and-configuration-of-netweaver-development-infrastructure-was-64
    NWDI Post installation:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/419b479b-0801-0010-f8a1-c26208b4b209
    http://help.sap.com/saphelp_nw70/helpdata/en/44/60dc1943c2311ce10000000a155369/frameset.htm
    Complete NWDI Resources:
    NWDI Resources [original link is broken]
    Thanks
    SrinivaS

  • How to get the trace file name for current running application?

    Hi, I want to know if it is possible to get the file name directly for current running application instance which is launched by javaws.
    There is a property "deployment.user.logdir" tells the log directory, it would be great if a file name property
    is available. something like "instance.trace.file".
    Our application wants it because we would like our client send use the application log by clicking a "send error"
    button, the codes finds the trace file and compress it and send it by using a smtp server.
    In 1.5, we can do it by using a shell program.

    I found other asked it before, but I tried to set both properties, but neither works. my sun JRE version :java version "1.6.0_04"
    <property
    name="deployment.javaws.traceFileName"
    value="abcfefsfdsf"/>
    <property
    name="deployment.javapi.trace.filename"
    value="235235235"/>
    But it always write to one trace file with name lik javaws63645.trace

  • How to use the cgicmd.dat to specify a directory name for desname

    Hi folks,
    What I'm trying to do is use a command key to specify the directory for a file, specified via desname. Here's an example.
    cgicmd.dat
    custom_reports_dir: /some/directory/custom_reports
    Then I want to reference it via something like this..
    http://server:7777/reports/rwservlet?cmdkey=rpt_connect&destype=file&desname=custom_reports_dir/test.pdf&desformat=pdf
    Where in the above example, I'm trying to use the command key to specify a directory name, and then append a file name to it. It isn't working for me, is this possible to do? I figure since it's not an argument in itsself, it's being interpreted literally, rather than being substituted for the parameter.
    Thanks very much,
    -Adam vonNieda

    That depends on how you actually run your program in the first place. If you just use a batch file you could simply make the path to the javaw.exe relative (e.g. jre\javaw.exe �cp lib\myJar.jar com.MyClass). Or you could look into some third-party software that allows you to create installations packages for Java. I have used Zero G's InstallAnywhere before and they have support for you setting up their executables to use a bundled jre. I am sure all the other java install makers have similar functionality.
    Lance

  • Appying theme for Webdynpro java application.

    Hi Friends,
    I have change the font size and the content area of my WebDynpro java application which is a Standard Business package.
    I have already applied the theme in the visual admin,but when I make the changes to the theme it does not reflect on the application part.
    Please also let me know which specific theme values are to be changed.
    Request for all your inputs and solutions.
    Thanks,
    Shyam

    iViews used for application integration have a property called (technical name: LAF_Switch) like Send portal theme. This parameter defines if the portal will send to portal's style sheet definition. If so, the WDJ application will decide on some rules if or not to use the portal theme.
    [The SAP Note 1000889|https://service.sap.com/sap/support/notes/1000889] explains how a WD application decides whether to apply the portal theme or not. The note also gives you some hints to find out why the portal theme isn't getting applied.
    br,
    Tobias

  • Process name for minimized to try apps

    I use this code to get all Processes
    Process[] p = Process.GetProcesses();
    for (int i = 0; i < p.Length; i++)
    MessageBox.Show(p[i].MainWindowTitle);
    But if a process is minimized to try it returns an empty string , So how to get its window name?

    It doesn't work too. But what do you mean by "elevated rights" ?
    FileName will return the full path for the program which is useless for me
    Per my understanding, These processes have UI and obviously titled main windows. The property means
    Gets the caption of the main window of the process.The keypoint is the MainWindow, you must start an application and have UI. Let's review the sample
    in MSDN
    public static void Main()
    try
    // Create an instance of process component.
    Process myProcess = new Process();
    // Create an instance of 'myProcessStartInfo'.
    ProcessStartInfo myProcessStartInfo = new ProcessStartInfo();
    myProcessStartInfo.FileName = "notepad";
    myProcess.StartInfo = myProcessStartInfo;
    // Start process.
    myProcess.Start();
    // Allow the process to finish starting.
    myProcess.WaitForInputIdle(); //Thread.Sleep(1000); sometimes it still can't show the title, use a thread to wait a second Console.Write("Main window Title : " + myProcess.MainWindowTitle);
    myProcess.CloseMainWindow();
    myProcess.Close();
    catch(Exception e)
    Console.Write(" Message : " + e.Message);
    Best of luck!
    Kristin
    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.

  • Can i give a process name of executing java class

    hi all,
    what i need is when i execute the class file using java at the command prompt i want to create a separate process of that class. that means when i execute this class i want 2 processes running one is "java" and the other is "The Class To be executed".
    is it possible????
    actually my requirement is that i want only one instance of my class can run at a time.
    please help me
    thanks
    bye

    hi
    actually i can not use the file lock because my application is going to run on Solaris machine and since its a mutiuser platform and every user has a limited access to his data.and any user can run my application so the problem is where one user will write into a file so that other user can also read from the same file.
    can i do it other way using native methods if yes can u elaborate please
    thanks
    bye

Maybe you are looking for

  • How to add for wikipages the popup " are you sure you want to leave this page" on edit

    Our users complain about hitting the backspace button in a wiki page, sometimes the I.E. goes back and loose their changes. I could get a jquery popup but I don't know how to know that the wiki page is in edit mode and not in view mode.Do you know ho

  • Instant Portal Look'n'Feel

    Hi, is there any easy way to transfer the Instant Portal Look'n'Feel into Enterprise Portal? Are there specific stylesheets that could be plugged into Enterprise Portal? Any info would be much appreciated? Thanks, Peter

  • NTSC PAL editing question

    I have a new accessory for my camera which does not allow me to shoot in PAL ( the manufacturer is working to resolve this ). I'm making a short film on my DSLR for the web and have already shot footage in PAL. What kind of issues will I face if I sh

  • Runtime error when trying update Itunes

    When I try to open iTunes, I get the Microsoft Visual C++ Runtime Library Error R6034.  I tried to repair iTunes, but received the same error.  I uninstalled iTunes and tried to re-install it, but am still receiving the same error code.  How can I fi

  • Value Differences on Material Prices

    Hi guys I have a requirement where they want to see the material standard price and the new cost after running the costing estimate. I knw that I can obtain the material std price in table MBEW. But where can i obtain the new price of material when I