Professional Documents
Culture Documents
import javax.ejb.*;
import java.rmi.RemoteException;
2. Write code for a Home interface and save the file as WelcomeHome.java. The
code for Welcome.java is given below:
import javax.ejb.*;
import java.rmi.RemoteException;
3. Write code for a bean class and save the file as WelcomeBean.java. The code for
WelcomeBean.java is given below:
import javax.ejb.*;
The user will be asked to enter a user name and a password. Enter user name as
user1 and password as user1. The printMessage() method will be invoked and the
output will be displayed.