1 22 23 package org.jboss.ejb3.test.ssladvanced; 24 25 import java.io.Serializable ; 26 27 import javax.ejb.Stateless ; 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.RemoteBinding; 33 import org.jboss.annotation.ejb.RemoteBindings; 34 35 40 @Stateless 41 @Clustered 42 @RemoteBindings({ 43 @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="StatelessClusteredSSL"), 44 @RemoteBinding(clientBindUrl="socket://0.0.0.0:3873", jndiBinding="StatelessClusteredNormal") 45 }) 46 @Remote (BusinessInterface.class) 47 public class StatelessClusteredBean implements BusinessInterface, Serializable 48 { 49 public String echo(String s) 50 { 51 return "*** " + s + " ***"; 52 } 53 } 54 | Popular Tags |