
EJB
™
Development Using Borland
®
JBuilder
®
8 and BEA WebLogic Server
™
7.0
7
Figure 2: Creating a session bean visually using JBuilder visual EJB designer
To add a method in the session bean, right-click TestSes. Click Add. Click Method. Enter the
method name as getMessage(), return type as string and interfaces as remote.
Right-click the EJB TestSes and click View Bean Source. This opens up the
TestSesBean.java file in the JBuilder editor pane.
Change the method getMessage() as follows.
public String getMessage() {
return "Testing Successful";
}
Commentaires sur ces manuels