My Requirement: I have a METHOD which will take 2 input values. (1)I have to perform initial validations on that values and return to caller.
(2)Same time I have to start a new process with the input values. In the second process it will be calling different Webe services.
I implemented this code by using a after initial validation of inputs, I am starting a thread and return to caller. Inside the thread I am doing the (2) process.
I have written code to implement thread wait, to stop the thread after given break time is reached.
I want to return to caller once initial validation is completed. I want to continue this threa wait should be happen in backgroud.
ISSUE: The METHOD returning to caller after finishing all the process including process(2). It is taking lot of time to return to caller.
Can anybody please tell me how to resolve this issue?
I have written code like...
Please let me know if you need any more information.