Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
UserManagementBean
complete listing
There is nothing really special about the
UserManagement
session bean. It
references the
UserBean
and invokes its home method to create and remove users. It
also uses the
LocalUser
interface to verify passwords.
The full source and deployment descriptor, interface and class files are listed below.
Listing 3: Deployment Descriptor Listing for
UserManagementBean
(ejb jar.xml)
main user mgmt
UserManagementBean
UserManagementBean
com.rickhightower.auth.UserManagementHome
com.rickhightower.auth.UserManagement
com.rickhightower.auth.UserManagementBean
Stateful
Container
ejb/LocalUser
Entity
com.rickhightower.auth.LocalUserHome
com.rickhightower.auth.LocalUser
userEntity.jar#UserBean
Note that the deployment descriptor for all examples is shown minus security elements,
and assembly elements.
Listing 4: The Complete Remote Interface for
UserManagementBean
package com.rickhightower.auth;
import javax.ejb.EJBObject;
Introducing EJB CMP/CMR, Part 1 of 2
Page 25 of 48






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