THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
package sampleear; import javax.ejb.Remote; @Remote public interface RemoteBusinessInterface { public String sayHello(String name); } |
Create bean class
- 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
...
...
- Click Finish.
Implement the business method sayHello and mark the class as a stateless session bean with the @Stateless annotation.
...