summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/EJB 3.0 Code/Rima Examples/src/examples/timer/CleanDayLimitOrdersClient.java
blob: 749de8657230479620081cf4d045273395d3cb9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package examples.timer;

import javax.ejb.EJB;

public class CleanDayLimitOrdersClient {
     @EJB 
     private static CleanDayLimitOrders cleanDayLimitOrders;

     public static void main(String[] args) {
          try {
               cleanDayLimitOrders.cleanPeriodicallyDayLimitOrders();

               System.out.println ("cleanPeriodicallyDayLimitOrders() returned successfully. Take a look at the application server log or console for messages from bean.");
          } catch (Exception ex) {
               System.err.println("Caught an unexpected exception!");
               ex.printStackTrace();
          }
     } 
}