HI all
Sorry I couldn't give an update since I had my end semester exam till yesterday, Now I am going to work on this full time.
If I understand the requirements correctly, I should do following things
When User create a remote service using ECF SDK (without any framework or tools) approach as follows
1) create a interface and include all the methods
2)create a implementation for above interface
3) create a remote container
4) register the service
If some one want to add some asynchronous method ,that above interface should extends using "IAsyncRemoteServiceProxy" class.
According to my understanding, I am going to introduce annotations which can be used inside in the service interface to expose methods as remote service both blocking and non-blocking way ,
Example
public interface ICal {
@Remote
public int add(int num1, int num2);//just adding two digits
@Remote
public int sub(int num1, int num2);
@AsyncRemote
public float complexCal(int val); // do a complex calculation which take long time
}
In the runtime , I will scan this interface and identify those annotations using java reflections, after that Register the services by looking the annotations
Finally this services will be testing using the test framework for that also we can introduce a new annotation, to identify which methods should be tested using the framework
Is this the correct approach ? please advice me
Thanks and Regards
/Salinda