|
|
|
|
|
|
o***g 发帖数: 2784 | 1 import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
public class HelloBean
implements SessionBean
{
public String hello(String name)
{
return "Hello " + name + "!";
}
public void ejbCreate() {};
public void ejbRemove() {};
public void ejbActivate() {}
public void ejbPassivate() {}
public void setSessionContext(SessionContext ctx) {}
}
上面这个Stateless Session Bean怎么把他弄成Web Service,在Jboss4上。
我是java白痴,最好从javac Hello | r*****l 发帖数: 2859 | 2 You need to do a lots of reading. Otherwise you will
not understand even someone tells you how to do.
【在 o***g 的大作中提到】 : import javax.ejb.EJBException; : import javax.ejb.SessionBean; : import javax.ejb.SessionContext; : public class HelloBean : implements SessionBean : { : public String hello(String name) : { : return "Hello " + name + "!"; : }
|
|
|
|
|
|