ibm.com/developerWorks
Presented by developerWorks, your source for great tutorials
import java.rmi.RemoteException;
public interface UserManagement extends EJBObject {
public void addUser(String email, String password) throws RemoteException;
public void removeUser(String email) throws RemoteException;
public boolean verifyPassword(String email, String password)throws RemoteException;
}
UserManagementBean
complete listing (cont d)
The following shows the implementation code for the home Interface and the Entity
bean for UserManagementBean.
Listing 5: The Complete Home Interface for
UserManagementBean
package com.rickhightower.auth;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
public interface UserManagementHome extends EJBHome {
UserManagement create() throws RemoteException, CreateException;
}
Listing 6: The complete entity bean implemetation for
UserManagementBean
.
package com.rickhightower.auth;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.ejb.CreateException;
import javax.ejb.RemoveException;
import javax.ejb.FinderException;
import javax.ejb.EJBException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import com.rickhightower.util.CreateWrapperException;
Page 26 of 48
Introducing EJB CMP/CMR, Part 1 of 2






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

tomcat web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved