public class Client {
public static void main(String[] args) throws Exception {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/client.xml");
Greeter client = (Greeter) context.getBean("greeterService");
String response = null;
for (int i = 0; i < 10; i++) {
System.out.println("BEGIN...");
response = client.greetMe("MyName#" + i);
System.out.println("Response from the service: ");
System.out.println(response);
System.out.println("END...");