17 lines
348 B
Java
Raw Normal View History

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();
}
}