KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jbossnet > servicename > HelloBeanImpl


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.jbossnet.servicename;
8
9 import javax.ejb.EJBException JavaDoc;
10 import javax.ejb.SessionBean JavaDoc;
11 import javax.ejb.SessionContext JavaDoc;
12 import java.rmi.RemoteException JavaDoc;
13
14 /**
15  *
16  * @author BenvenS
17  *
18  * @ejb.bean name = "HelloBean"
19  * type = "Stateless"
20  * view-type = "remote"
21  *
22  * @jboss-net.web-service urn="greetings/Hello"
23  */

24 public class HelloBeanImpl implements SessionBean JavaDoc
25 {
26
27    /**
28     * Say hello.
29     *
30     * @ejb.interface-method
31     *
32     * @jboss-net.web-method returnQName="greeting"
33     */

34    public GreetingTO sayHello()
35    {
36       GreetingTO g = new GreetingTO();
37       g.setGreeting("Hello !!!");
38       return g;
39    }
40
41    public void ejbCreate() throws EJBException JavaDoc, RemoteException JavaDoc
42    {
43    }
44
45    public void ejbActivate() throws EJBException JavaDoc, RemoteException JavaDoc
46    {
47    }
48
49    public void ejbPassivate() throws EJBException JavaDoc, RemoteException JavaDoc
50    {
51    }
52
53    public void ejbRemove() throws EJBException JavaDoc, RemoteException JavaDoc
54    {
55    }
56
57    public void setSessionContext(SessionContext JavaDoc ctx) throws EJBException JavaDoc, RemoteException JavaDoc
58    {
59    }
60
61 }
62
Popular Tags