/*
 * JBoss, the open source webOS
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package org.jboss.ejb3.test.ssl;

import java.io.Serializable;

import javax.ejb.Stateful;
import javax.ejb.Remote;

import org.jboss.annotation.ejb.Clustered;
import org.jboss.annotation.ejb.RemoteBinding;
import org.jboss.annotation.ejb.RemoteBindings;

/**
 *
 * @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
 * @version $Revision$
 */
@Stateful
@Clustered
@RemoteBindings({
   @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="StatefulClusteredSSL"),
   @RemoteBinding(clientBindUrl="socket://0.0.0.0:3873", jndiBinding="StatefulClusteredNormal")
})
@Remote(BusinessInterface.class)
public class StatefulClusteredBean implements BusinessInterface, Serializable
{
   public String echo(String s)
   {
      return "*** " + s + " ***";
   }
}
