1 22 23 package org.jboss.ejb3.test.ssl; 24 25 import java.io.Serializable ; 26 27 import javax.ejb.Stateful ; 28 import javax.ejb.Remote ; 29 30 import org.jboss.annotation.ejb.Clustered; 31 import org.jboss.annotation.ejb.RemoteBinding; 32 import org.jboss.annotation.ejb.RemoteBindings; 33 34 39 @Stateful 40 @Clustered 41 @RemoteBindings({ 42 @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="StatefulClusteredSSL"), 43 @RemoteBinding(clientBindUrl="socket://0.0.0.0:3873", jndiBinding="StatefulClusteredNormal") 44 }) 45 @Remote (BusinessInterface.class) 46 public class StatefulClusteredBean implements BusinessInterface, Serializable 47 { 48 public String echo(String s) 49 { 50 return "*** " + s + " ***"; 51 } 52 } 53 | Popular Tags |