Versions Compared

Key

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

...

Code Block
java
java
borderStylesolid
titleRemoteBusinessInterface.java
package sampleear;

import javax.ejb.Remote;

@Remote
public interface RemoteBusinessInterface {
    public String sayHello(String name);
}

Create bean class

  1. Right-click on the SampleEJB project and select New -> Class and fill it in with the following values:
    Section
    • Package: sampleear
    • Name: MyStatelessSessionBean
    • Interfaces: sampleear.RemoteBusinessInterface

...


  1. Image Added

...


  1. Click Finish.

Implement the business method sayHello and mark the class as a stateless session bean with the @Stateless annotation.

...