使用JBoss和Eclipse创建J2EE应用

王朝java/jsp·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

第三章

创建一个Stateless Session Bean

本章我们讲述如何创建一个stateless session EJB component。这个bean通过封装了Java Database Connectivity (JDBC) 代码的Data Access Object (DAO)来和数据库进行通信来鉴别用户身份。DAO具备我们所使用的bean的所有属性((fields) )和行为(methods)

【图片位置】

MyStore中所有的customer, supplier 和 manager都被赋予了唯一的username 和userid 获取服务。MyStore, but in order to access these services all these entities have to first login into the system (MyStore). The method for authentication is named loginUser, which takes two String parameters, username and password and returns the userID if authentication is successful.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航