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