FileDocCategorySizeDatePackage
CounterService.javaAPI DocExample1152Tue Oct 09 11:03:40 BST 2001com.ecerami.soap

CounterService

public class CounterService extends Object
A Sample SOAP Service Illustrates Session v. Application Scope When this service is deployed with Scope="Session", server will instantiate one instance of CounterService per client. CounterService will then maintain total number of requests per session. When this service is deployed with Scope="Application", server will instantiate just one instance of CounterService. CounterService will then maintain total number of requests across all sessions.

Fields Summary
private int
counter
Constructors Summary
public CounterService()
Constructor

 counter = 0; 
Methods Summary
public intgetCounter()
Return number of requests

 return ++counter;