1-I am developing a system which scope is application. I would like to know, how the concurrency works for different clients that are using methods (SOAP RPC) at the same time. Specifically, I would like to know what happen to an object inside the service object, that is being used by differents clientes at the same time. What happen to an object X if a client A delete it whereas other client B is using it? Is the object X remains live until B finish the current invocation? Where can I find that information? Is there a way to lock the objects or something like that?
2-Can I throw an Exception from the server side, and catch it (the same Exception) in the client side? i.e: I throw an XXXException from the server side (maybe in a SOAPException), and get the fault in the client side, could I take from this fault an object from the original Exception class? (the XXXException in this case). Would I have to use org.apache.soap.server.ExceptionFaultListner? Thanks very much, Tizo