Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java
java
package com.acme;

import java.util.Date;
import javax.annotation.PostConstruct;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.interceptor.Interceptors;

@Stateless
@Remote(Echo.class)
public class EchoBean implements Echo
{
     public String echo()
    {
        return "Hello "+new Date();
    }

    @PostConstruct
    public void init()
    {
        System.err.println("EchoBean init called");
    }
}

...

Code Block
java
java
package com.acme;

import javax.ejb.EJB;

public class EchoTest
{
   @EJB private static EchoBean echoBean;

  public static String echo ()
  {
      return echoBean.echo();
  }
};

...

Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery