1 package ejava.examples.asyncmarket.ejb;
2
3 import javax.ejb.Remote;
4
5 import ejava.examples.asyncmarket.AuctionMgmt;
6
7 @Remote
8 public interface AuctionMgmtRemote extends AuctionMgmt {
9
10 /**
11 * An example of performing a synchronous task while client has to
12 * wait for the result.
13 * @param count number of tasks to perform
14 * @param delay time each task should take
15 * @return timestamp when method completed
16 */
17 void workSync(int count, long msecs);
18
19 /**
20 * An example of performing an async task while client doesn't
21 * wait for result.
22 * @param count number of tasks to perform
23 * @param delay time each task should take
24 */
25 void workAsync(int count, long msecs);
26 }