
Untitled
By: a guest on
Feb 15th, 2011 | syntax:
JavaScript | size: 0.50 KB | views:
60 | expires: Never
//HelloAction.java
package biz.buz.sw.web;
import javax.ejb.Stateless;
import org.jboss.seam.annotations.Name;
@Stateless
@Name("helloAction")
public class HelloAction implements HelloLocal {
public String sayHello(String name) {
return "Hello, " + name;
}
}
//HelloLocal.java
package biz.buz.social.web;
import javax.ejb.Local;
import org.jboss.seam.annotations.remoting.WebRemote;
@Local
public interface HelloLocal {
@WebRemote
public String sayHello(String name);
}