public class CountImpl extends Counter._CountImplBase { |
private int sum; |
public CountImpl(java.lang.String name) { // Construct a persistent object. |
super(name); sum=0; |
System.out.println("Count Object Created"); } |
public CountImpl() { // Construct a transient object |
super(); } |
public int increment() { // Implementation of remote operation |
sum++; |
return sum; } |
public void sum(int val) { // implement attribute writer... |
sum = val; } |
public int sum() { // implement attribute reader... |
return sum; } |
} |