• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to check whether Thread is Alive or not On Remote Application Server

 
Zang Topher
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently we have a scrubbing application which fetch the data from Source server based on some condition, scrub it and store into Target server. This is done by a Thread. we have all these theree server (source server, scrubbing production server and target server) in three places.
Hence to avoid netowork trafic we considered to develop a light version of the scrubbing application(installable version which will contain all important packages). we will allow user to install this lite version on Source Server.
Once User install this on Source, Thread will start doing its job, it will take data from source, will scrub and will insert into Target.
We dont have any type of connection from that source server .Here I am struggling with many things such as:

1. How to check whether Monitor Thread is alive or not on server
2. Tracking of user's submiited request bocause if it fails, we need to rectify.
3. How to trace which request is failing of getting success.
4. what could be the possible exception.

Please help me in designing the lite version of the application as it has to be developed from scratch. I have to design it in the earliest.
Many Thanks..
 
Zang Topher
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please reply for the above thread, I am not able to find the solution. this is last week I have in my hand...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once User install this on Source, Thread will start doing its job, it will take data from source, will scrub and will insert into Target.
We dont have any type of connection from that source server .Here I am struggling with many things such as:


Do you mean you don't currently have any connection or that you are not allowed to make a connection?

If you are not allowed to contact the "Source", can the source send you status messages? For example by HTTP request?


Bill
 
Zang Topher
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill,

First of all thanks a lot for your reply...
As our Lite version of application will be on User's source server so we have to find out the way to communicate and know the sttatus but here we have to keep in mind that there shouldd not be more dependency for the users.would it be possible to recieve info from HTTP? If yes, would it be feasible in our case?
Here the situation is that How to get the conntinuous status from our running application. Till now its not discussed that what is allowed or whats not.
But we want to make it generic one.


 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not continuous information but a status report every xxx seconds.

You would need a separate Thread on the remote server which simply sleeps for a fixed amount of time, creates a status report and sends it as an HTTP POST request to your server (such as Tomcat) and then goes back to sleep.

In other words the remote server would act like a browser - toolkits such as HttpClient can make that easy. Emulating a browser and using the standard HTTP port 80 would make it easier to get past any firewall on the user's system.

The HTTP response from your server could be used to issue commands.

Bill


 
Zang Topher
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
""In other words the remote server would act like a browser - toolkits such as HttpClient can make that easy. Emulating a browser and using the standard HTTP port 80 would make it easier to get past any firewall on the user's system. ""

Bill,

Thanks for your reply..
Your idea is looking good for me, but I need bit more informatin. would you please be more descriptive so that I could implement the same. I also didnt understand the above mentioned line.
How about security issue because we are asking User server to send some info from HTTP request.

 
Zang Topher
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here one more thing I need to mention:
what if the size of data will be more while transferring through HTTP?
 
Zang Topher
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill,

Thanks you very much . I found the solution based on your previous reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic