KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > webservice > samples > OrganizationJMSEndpoint


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.webservice.samples;
8
9 // $Id: OrganizationJMSEndpoint.java,v 1.1.2.1 2005/02/11 19:14:35 tdiesler Exp $
10

11 import org.jboss.logging.Logger;
12 import org.jboss.webservice.transport.jms.JMSTransportSupport;
13
14 import java.rmi.RemoteException JavaDoc;
15
16 /**
17  * An example of a MDB acting as a web service endpoint.
18  *
19  * @author Thomas.Diesler@jboss.org
20  * @since 02-Oct-2004
21  */

22 public class OrganizationJMSEndpoint extends JMSTransportSupport
23 {
24    // provide logging
25
private static final Logger log = Logger.getLogger(OrganizationJMSEndpoint.class);
26
27    /** Get the contact info */
28    public String JavaDoc getContactInfo(String JavaDoc organization) throws RemoteException JavaDoc
29    {
30       log.info("getContactInfo: " + organization);
31       return "The '" + organization + "' boss is currently out of office, please call again.";
32    }
33 }
34
Popular Tags