2006-11-28

ejb3中接口间的调用

关键字: service
@Stateless @LocalBinding(jndiBinding = "com/webstone/drp/warehouse/notify/svc/InventoryNoticeService/local") @RemoteBindings( { @RemoteBinding(jndiBinding = "com/webstone/drp/warehouse/notify/svc/InventoryNoticeService/remote") }) public class InventoryNoticeBean extends B ...
2006-11-28

jndi

关键字: InitialContext
public class BaseServiceHandle {  public static InitialContext cxt = null ;      /**   * @param serviceClass   * @return   * @throws BaseException   */  public static Object getService(Class serviceClass) throws BaseException  {  &nb ...
2006-10-09

J2EE EJB3.0 Specification 开发

关键字: ejb3
简介 J2EE架构中的EJB框架是多层架构(multi-tier architecture) 所提供的服务机制(简称后台),而EJB也是J2EE讨论中离不开的题目。在J2EE的整个发展过程当中,EJB可以大概分为两个主要的版本,分别是2.1与3.0. 简单的说,EJB2.1对开发者的规范要求是非常多的,相反,在EJB 3.1的环境中开发就变得简单得多。WEBSTONE的DRP第二个版本开发将会采用EJB3为后台的开发基础。本文是针对EJB3.0而写的,所以不会包含EJB2.1的讨论。如果有兴趣可以在网上找到很多相关的资料。 EJB EJB也是Enterprise Java Bean 的 ...
EntityManager Obtaining an EntityManager in a SessionBean Before an EntityManager can be used it must be obtained from the container. The EntityManager can be set into your SessionBean by the Container though the @Resource annotation. @Stateless public class EmployeeDemoSessionEJB implements Emplo ...
2006-10-09

实体bean中属性定义的问题

关键字: ejb3实体bean
实体bean中的属性定义的时候第二个字母最好不要用大写,否则,会造成不可预知的错误 比如:private String sName;不应该这样定义 应该如下定义private String ssName;
ejb3中的实体bean是使用对象定义好还是使用基本类型好? 希望精通ejb3的朋友发表一下自己的见解。
hanxinyu
搜索本博客
最近加入圈子
存档
最新评论