client server - How to kill the nameserver process in java -


I created a client server application using an IDL file for client server communication across the network. Both client and server programs are in Java when the user exits, both the server and the client exit. Although I'm unable to kill the name server process.

tnameserv -ORBInitialPort 1050

How do I kill the nameserver in a client or server program (which is in Java)?

When you run tnameserv, you can kill commands (linux, unix) or ctrl + c (windows )

If linux / unix is ​​on, then this should do the trick:

  killall tnameserv  

P> Edit:

If you want to release killall command with java usage:

  runtime.exec ("killall tnameserv"); 

Thoughts:

It seems weird to start tnameserv outside our program, and then try to hit it with it. (Permission issues, other users using names, etc., etc.) Depending on your needs, why not start your TV app from your app?


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -