1 22 23 package org.jboss.ejb3.test.ssl; 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 import org.jboss.annotation.ejb.RemoteBinding; 31 import org.jboss.annotation.ejb.RemoteBindings; 32 33 38 @Stateless 39 @RemoteBindings({ 40 @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="StatelessSSL"), 41 @RemoteBinding(clientBindUrl="socket://0.0.0.0:3873", jndiBinding="StatelessNormal") 42 }) 43 @Remote (BusinessInterface.class) 44 public class StatelessBean implements BusinessInterface 45 { 46 public String echo(String s) 47 { 48 return "*** " + s + " ***"; 49 } 50 } 51 | Popular Tags |