1 22 23 package org.jboss.ejb3.test.ssladvanced; 24 25 import javax.ejb.Remote ; 26 import javax.ejb.Stateful ; 27 import org.jboss.annotation.ejb.RemoteBinding; 28 import org.jboss.annotation.ejb.RemoteBindings; 29 30 35 @Stateful 36 @RemoteBindings({ 37 @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="StatefulSSL"), 38 @RemoteBinding(clientBindUrl="socket://0.0.0.0:3873", jndiBinding="StatefulNormal") 39 }) 40 @Remote (BusinessInterface.class) 41 public class StatefulBean implements BusinessInterface, java.io.Serializable 42 { 43 public String echo(String s) 44 { 45 return "*** " + s + " ***"; 46 } 47 } 48 | Popular Tags |