What are the different types of dialog duration of a service object?
Ans. (i) Message duration: Dialog is maintained for the duration of a method call. It is used when the sender does not need the service object to remember any info from the previous method calls. (ii) Transaction duration: It retains the conection between the sender and service object for the duration of transaction. It is used when the sender expects the service object to remember state info for the duration of transaction. (iii) Session duration: Caller talks with the same instance of service object for the entire duration.