2015-07-22 21:04:38 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
|
|
|
public class App {
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
2015-07-22 23:20:28 +03:00
|
|
|
|
|
|
|
BusinessDelegate businessDelegate = new BusinessDelegate();
|
|
|
|
businessDelegate.setServiceType(ServiceType.EJB);
|
|
|
|
|
|
|
|
Client client = new Client(businessDelegate);
|
|
|
|
client.doTask();
|
|
|
|
|
|
|
|
businessDelegate.setServiceType(ServiceType.JMS);
|
|
|
|
client.doTask();
|
2015-07-22 21:04:38 +03:00
|
|
|
}
|
|
|
|
}
|