1 22 23 package org.jboss.ejb3.test.invoker; 24 25 import javax.ejb.Stateless ; 26 import javax.ejb.Remote ; 27 28 import org.jboss.annotation.ejb.RemoteBinding; 29 import org.jboss.annotation.ejb.RemoteBindings; 30 31 35 @Stateless  36 @RemoteBindings({ 37 @RemoteBinding(clientBindUrl="http://localhost:8080/servlet-invoker/ServerInvokerServlet", jndiBinding="StatelessHttp") 38 }) 39 @Remote (StatelessRemote.class) 40 public class StatelessBean implements StatelessRemote 41 { 42 public String echo(String s) 43 { 44 return s; 45 } 46 } 47 | Popular Tags |