1 /*2 * JBoss, the OpenSource EJB server3 *4 * Distributable under LGPL license.5 * See terms of license at gnu.org.6 */7 package org.jboss.tutorial.interceptor.client;8 9 import org.jboss.tutorial.interceptor.bean.EmailSystem;10 import org.jboss.tutorial.interceptor.bean.EmailSystem;11 12 import javax.jms.Queue ;13 import javax.jms.QueueConnection ;14 import javax.jms.QueueConnectionFactory ;15 import javax.jms.QueueSender ;16 import javax.jms.QueueSession ;17 import javax.jms.TextMessage ;18 import javax.naming.InitialContext ;19 20 public class Client21 {22 public static void main(String [] args) throws Exception 23 {24 System.out.println("Starting");25 InitialContext ctx = new InitialContext ();26 EmailSystem emailSystem = (EmailSystem)ctx.lookup(EmailSystem.class.getName());27 emailSystem.emailLostPassword("whatever");28 System.out.println("Done");29 }30 }31