How to find a javaw process started by JWS?

I am executing a JWS process from my java application (parent application) using Runtime.getRuntime().exec() . JWS downloads a java application (child application) from Tomcat and runs the application on local machine. I need to find the process object of the child application in my parent application. The reason for observing the child application is to show status of all the java applications started by parent app in a frame. Parent application can start various java applications via JWS. The code looks below
Process proc = null;
proc = Runtime.getRuntime().exec("javaws http://myMachine:7003/apps/test.jnlp");
The Process object in above snippet is of javaws process not of the child application started via JWS.
Is there a mechanism by which I can get handle to the childs process?

We tried using jps on windows to get the process id using flag passed as argument. However, this also doesnot helps because javaws and javaw both have the same flag displayed, which means we cannot distinguish between both the processes. To explain more
The code snippet looked like as:
proc = Runtime.getRuntime().exec("javaws http://localhost:7003/apps/test.jnlp?Dpidflag=someValue");
On running jps as soon as above line executed gave the result
1420 com.sun.javaws.Main http://localhost:7003/apps/test.jnlp?Dpidflag=someValue
The same result kept on popping for sometime, but after that it gave the result
2448 com.sun.javaws.Main http://localhost:7003/apps/test.jnlp?Dpidflag=someValue
Uhhh..A new process id.
Some investigation revealed that the first process id is of javaws process which gets killed in a few seconds. The second process id is of javaw process. Now we can guess that waiting for 10-20 seconds might give us correct process id but not for sure.

Similar Messages

  • How to find out what process touched a file

    I am currently running Leopard 10.5.7 on a MacBook. Some of my system files' permissions keep getting screwed up. It happens randomly, and when it does I have to repair permission and reboot the computer to fix it. I am trying to isolate the problem. Is there a way to find out what processes or applications touched a certain file? thanks.

    Tony:
    Did you try repairing your keychain?
    Look in your 'Utilities' folder for the 'Keychain Access' application.
    Run it and use the 'Keychain Access/Keychain First Aid' menu...follow the prompts. After repairs, restart and see if the situation improves.
    If you are determining permission repair status on a repeated basis by simply doing a repair and reacting to the immediate report there, you may be chasing ghosts.
    If you are encountering legitimate issues when running various apps, you may need to check the basics. If there are other users on the machine or you have moved standard applications to custom locations you may have to simplify your overall machine's configuration and go from there.
    Good luck in any case.

  • How to find out the process chain

    Hi folks
    Hope every one is doing good..!
    in sm37 my job is running (ABAP program) which is in process chain, but i have to find out the process chain name..!
    Could any one help me on this..!

    hi,
      in SM37 select the job status as active and execute it, in the next screen you  will find only active jobs select your job (ABAP Program) click on step - > in th next screen put the cursor on the job -> select Goto option in menu bar click on variant it gives you the field names and desc like chain name, variant etc information.
    Regards
    Sankar

  • How to find out the process count for a database during a particular window

    Hi Team,
    I want to find out the maximum process count reached for a database for an interval. Say between 1:00 to 2:00 AM IST. Please help
    Database version:11.2.0.2
    OS:AIX 6.1

    Check DBA_HIST_RESOURCE_LIMIT. Your information will be there.
    Simialr information is available in DBA_HIST_SYSSTAT.
    Look for stat name logons cumulative/logons current - Total number of logons since the instance started/Total number of current logons
    You can joing dba_hist_snapshot with snap_id and give begin_interval_time and end_interval_time to know historic process utilization.
    Regards,
    Sreejith

  • How to find session of process executed

    Hello
    I want to find out particular session from where process is running. My procedure is running from java application. I want to find out which session has generated/called process. i.e If user U1 and U2 has running process from screen, then in process logs i m not able to idenitfy which session has geneated what logs.
    My requirement is i want to find out logs with user or session information. This is required to find out concurrency issues of process.
    I have tried with v$session, however from that table i m not able to find out particular session. Please help.
    Thanks in advance

    In a 3 tier architecture the database tier sees the application tier as the client - not the presentation layer user. The data tier has no idea what is beyond the application tier.
    If you want the data tier to know who/what the presentation tier client is, the application tier has to pass that data to the data tier.
    One method in Oracle is for the application tier to use the [SET_CLIENT_INFO|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_appinf.htm#CHEJCFGG] call of the DBMS_APPLICATION_INFO PL/SQL package.
    Another method is to use a CONTEXT to set name-space variables in that Oracle session equal to end-user details.

  • How to find the Parent process in workflow

    Hi all,
    I have a .wft file with me.
    It contains atleast 8 processess.
    I need to understand the flow of this workflow.
    How do i getto know the flow?
    How do I getto know the parent process?
    I am sure if i know the parent process then i can figure out the flow as well.
    Hope someone can help me in thisproblem.
    Thanks in anticipation.
    regards.

    Hello,
    You can open the .wft file using the Workflow builder and see visually how the processes are designed. You can also see which processes are used as sub processes. These will be your children flows.
    Cheers,
    Raja

  • How to find smartform for process order

    Hi Experts,
    I have a scenario where in i have to find the name of the smartform which is being used for the T'code COR2 (process order),
    there is no output type assigned for it.
    thanks,
    venki...

    hi Venki.
    the method of finding Manual/Standard smartform against transaction.
    If ABAPER created the smartform then you simple find relevant smartform via
    Execute Tcode --> System --> Status --> Double click on Program
    you can search with "formname " from this program.
    If you want to search smartform against standard tcode then you have to follow above method but you will check the smartform one-by-one and find required smartform.
    or
    you just copy the program and put into SE80 and there  you can also find with the word of "smartform"
    while you said about the smartform against COR2. this tx has not smartform while you can call smartform via SAP BADI.
    Regards,

  • How to find out Orphan Process

    Hi
    We are using Windows clients and connect to Oracle Database Server. For some reason if the Client machine is rebooted when an application is running, The Process still shown in the V$Session and it take hours to get released from the V$Session.
    Is there any sql to find out such Orphan Process?
    Thanks in advance
    S Muralidharan
    Procon Systems Pvt. Ltd.

    http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96581/sqlnet.htm#437587
    Read the limitations and side effects before implementing.

  • How to find out BPEL process server is up and running?

    Hi All,
    We are invoking a synchronous BPEL process from our application.
    Incase of any network failures, we want to switch to other flow.
    Is there any way to find out the BPEL process server is up and running?
    Thanks,
    Uma.

    Try accessing the dynamic wsdl (http://server.com:7777/orabpel/default/service/1.0/service?wsdl)
    from your application. If there's no error opening this page using http get, the server is alive :)
    Marc

  • How to Find whether schedular is started or not

    HI,
    i am facing a problem. in my application admin is logging in , starting a schedular
    and log off. when any admin comes to the screen, i need to show whether the schedular
    is started or not.
    For starting and stopping i am not maintaining any log file, as our log is too
    big, it is difficult to find the last started time of the schedular from the log,
    if i log the details.
    Can anybody help me in this???
    Regards
    glkishore

    You check check if the port is open from your client to server by running the following command from the client:
    If the client is unix/linux:
    from a terminal run the command:
    telnet server-ip port-no
    eg
    telnet 172.29.64.208 1521
    If the client is windows:
    From the command prompt or from windows terminal run the command:
    telnet server-ip port-no
    eg
    telnet 172.29.64.208 1521
    Closed port will result:
    WINDOWS:
    Connecting To sedefu01...Could not open connection to the host, on port 6789: Co
    nnect failed
    UNIX:
    -bash-3.2$ telnet 172.29.64.208 1521
    Trying 172.29.64.208...
    telnet: Unable to connect to remote host: Connection refused
    Open port will result:
    WINDOWS:
    The telnet will pass
    UNIX:
    -bash-3.2$ telnet 172.29.64.208 1521
    Trying 172.29.64.208...
    Connected to 172.29.64.208.

  • How to find out that user starts editing data ?

    Hi all,
    I need to do something like changing icon to indicate editing session when the user starts editing cell in JTable, what event should I listen to ?
    Thanks in advance
    Setya

    Hi,
    add a PropertyChangeListener to your JTable and listen to the property "tableCellEditor". When it its null, editing is stopped, if it is non-null, editing was started.
    Thus you can determine when an editing session was initiated.
    Michael

  • How to find Shared Variable Processes on RT target

    It seems like it should be possible to query the SV Engine on a RT target for a list of all processes running and also the SV's within those processes.
    The DSM (Distributed System manager) can do it, why can't I?

    Also, you might also want to check out this  KnowledgeBase.
    Regards,
    Claire Reid
    National Instruments

  • How to find AD provisioning process instance key

    Hi,
    I have provisioned some user to AD now i wanted to add same ursers to some other AD group for this i need to know what is an API which will give me process instance key of AD so that i can add AD group to AD child table.

    It takes process instance key as argument. You can get this from adapter as argument in your java code.
    With the form name it is difficult you can get it either by process instance key or by object instance key based on your use case.
    searchMap.put("Objects.Name", "AD User");
    objresultSet = moObjectUtility.findObjects(searchMap);
    long ObjectKey = objresultSet.getLongValue("Objects.Key");
    objectMap.put("Objects.Object Status.Status", "Provisioned");
    objectSet =(ObjectKey, objectMap);
    String processInstanceKey = objectSet.getStringValue("Process Instance.Key");
    Edited by: Dost

  • How to find server process?

    how to find which server process(dedicated or shared)is using by the database for client connection to the DB?
    Thankx..

    SQL> select distinct server from v$session;
    SERVER
    DEDICATED
    SQL> select * from v$circuit;
    no rows selected
    If there is shared client connection , there will be entry in v$circuit
    Cheer,
    Virag Sharma

  • How to find query processing time?

    im using Oracle Express Edition
    i want to find the processing time of a query?,
    anyone please specify briefly how to find the query processing time
    can i get the processing time of a query by using Express edition or should i install Enterprise Edition.
    with regards,
    ravikanth.

    This link will help
    http://forums.oracle.com/forums/thread.jspa?threadID=2210335&tstart=0

Maybe you are looking for

  • IMac keeps restarting itself/quitting apps, help required

    Hi Folks! For a few weeks now i've been having issues with my iMac (Late 2013), it started occasionally quitting certain apps, safari mainly. With the message "safari web content quit unexpectedly" I've included a diagnosis for this below. It's recen

  • Shuffle battery problems

    My friend has a 1g iPod Shuffle. He turns it on, it works fine...except that the battery is detected to be low. Yes, it has gotten wet once, and yes, he let it dry. Thanks to all who help! Laptop: IBM ThinkPad R40 - Desktop: Unknown - Mac mini     Ow

  • Speed up one song?

    If I have multiple songs in my loop track, how can I  slow down one song, not all of them? Whenever I use tempo it affects all of them but I don't want that.

  • Converting a time from hhh:mm:ss

    I've used SimpleDate before, but I can't seem to make this work. I have results of login times for an entire month given as hours:minutes:seconds. I need to convert this to a long so I can manipulate the results acordingly. My problem is that the hou

  • Why does Mountain Lion keep telling me to install java?

    I keep getting a prompt to install Java on my iMac. All of my software is running fine so I don't see any reason to install it other than to make the prompt go away. Is there even any real reason I need Java or any way to make it go away?