Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 15th, 2011  |  syntax: JavaScript  |  size: 0.50 KB  |  views: 60  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //HelloAction.java
  2. package biz.buz.sw.web;
  3.  
  4. import javax.ejb.Stateless;
  5.  
  6. import org.jboss.seam.annotations.Name;
  7.  
  8. @Stateless
  9. @Name("helloAction")
  10. public class HelloAction implements HelloLocal {
  11.         public String sayHello(String name) {
  12.                 return "Hello, " + name;
  13.         }
  14. }
  15.  
  16. //HelloLocal.java
  17. package biz.buz.social.web;
  18.  
  19. import javax.ejb.Local;
  20.  
  21. import org.jboss.seam.annotations.remoting.WebRemote;
  22.  
  23. @Local
  24. public interface HelloLocal {
  25.         @WebRemote
  26.         public String sayHello(String name);
  27. }
clone this paste RAW Paste Data