`
pengchua
  • 浏览: 153714 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

ejb3 in action 学习笔记之二_MDB

阅读更多
 
Messaging and developing MDBs
1Message-oriented middleware is software that enables asynchronous messages between system components.消息中间件是能在各系统组件间传递异步消息的软件。
2.
 ■ The MDB class must directly (by using the implements keyword in the class declaration) or indirectly (through annotations or descriptors) implement a message listener interface.
■ The MDB class must be concrete. It cannot be either a final or an abstract class.
■ The MDB must be a POJO class and not a subclass of another MDB.
■ The MDB class must be declared public.
■ The bean class must have a no-argument constructor. If you don’t have any constructors in your Java class, the compiler will create a default constructor.The container uses this constructor to create a bean instance.
■ You cannot define a finalize method in the bean class. If any cleanup code is necessary, it should be defined in a method designated as PreDestroy.
■ You must implement the methods defined in the message listener interface.These methods must be public and cannot be static or final.
■ You must not throw the javax.rmi.RemoteException or any runtime exceptions.If a RuntimeException is thrown, the MDB instance is terminated.
3Two popular messaging models are standardized in Java EE: point-to-point (PTP) messaging and publish-subscribe messaging.
Point-to-point
You can probably guess from the names of the messaging models how they function. In the PTP scheme, a single message travels from a single producer (point A) to a single consumer (point B). PTP message destinations are called queues.
Publish-subscribe (pub-sub)
Publish-subscribe messaging is much like posting to an Internet newsgroup. A single producer produces a message that is received by any number of consumers who happen to be connected to the destination at the time. the message destination in this model is called a topic
and a consumer is called a subscriber.
 

分享到:
评论

相关推荐

    EJB3的三本好书第2本, EJB3 in Action 2007

    pdf书籍加源代码 EJB3的三本好书第二本,最好的介绍ejb3的书,看过之后,其他的...2. EJB3 in Action 2007联接http://download.csdn.net/source/1865636 3. Mastering EJB3联接http://download.csdn.net/source/1865654

    EJB3 IN ACTION 2.pdf

    《EJB3 in Action》是一本深入探讨Java企业级Bean(EJB)3技术的权威指南,由Debu Panda、Reza Rahman和Derek Lane共同撰写。本书旨在为读者提供全面且深入的理解,涵盖EJB3的核心概念、设计模式、最佳实践以及与之...

    EJB 3 in Action

    《EJB 3 in Action》是一本专门为初学者和开发者设计的EJB3技术指南,旨在深入浅出地介绍企业级Java Bean(EJB)3的核心概念、开发流程及部署策略。EJB3是Java EE平台中的核心组件,它极大地简化了企业级应用的开发...

    EJB3 in Action

    ### EJB3 in Action #### 一、概述 《EJB3 in Action》是一本详细介绍企业JavaBeans (EJB) 3技术的书籍,由Manning出版社出版于2007年。本书由三位作者共同编写:Reza Rahman、Derek Lane以及Debu Panda。EJB是...

    Manning - EJB3 in Action

    ### 关于《Manning - EJB3 in Action》的核心知识点 #### 一、EJB3 概览 **EJB3 in Action** 这本书主要讲述了Enterprise JavaBeans (EJB) 3.0 的核心概念和技术细节。EJB 3.0 是Java企业级应用开发中的一个重要...

    EJB3 in action 源代码

    总的来说,《EJB3 in Action》的源代码提供了一个实践性的学习平台,让开发者能够深入理解EJB3的各个方面,包括组件模型、持久化、事务管理、并发控制和分布式通信等关键特性。通过研究这些源代码,开发者不仅可以...

    javax.ejb.EJB 需要的jar____jboss-ejb3x.jar

    开发ejb时总是无法用@EJB 解决办法: javax.ejb.EJB 需要的jar___jboss-ejb3x.jar

    EJB3 In Action

    《EJB3 In Action》是Java开发者深入了解和学习Enterprise JavaBeans(EJB)3.0版本的重要参考资料。这本书深入浅出地介绍了EJB3在J2EE 5.0框架中的核心概念、设计模式和最佳实践,旨在简化EJB2.x版本中复杂且冗余的...

    Manning EJB3 in Action

    《EJB3 in Action》是Manning出版社出版的一本深入探讨企业级JavaBean(EJB)3.0技术的专业书籍。这本书以其独特的“in Action”风格,深入浅出地介绍了如何在实际项目中运用EJB3,使得读者能够理论与实践相结合,...

    EJB3 IN Action提纲

    【EJB3 IN Action提纲】是一份关于企业级Java Bean(EJB)3.0技术的详细学习指南,由知名书籍《Ejb3 In Action》的核心内容提炼而成。EJB是Java EE(Enterprise JavaBeans)平台的核心部分,主要用于构建可伸缩、...

    EJB3 In Action.pdf

    #### 二、EJB 3.0 in Action 内容概览 《EJB 3.0 in Action》是一本面向实践的书籍,旨在帮助开发者全面掌握 EJB 3.0 的各个方面。本书由三位作者共同编写:DEBUPANDA、REZARAHMAN 和 DEREK LANE,并由 MANNING ...

    Manning - EJB 3 in Action

    ### Manning - EJB 3 in Action #### 书籍概述 《Manning - EJB 3 in Action》是一本深入探讨企业级Java Beans (EJB) 3.0规范的著作,该书出版于2006年。作者通过丰富的实例和详尽的解释帮助读者理解和掌握EJB 3.0...

    Ejb 3 In Action

    根据提供的文件信息,我们可以深入探讨《EJB 3 In Action》这本书所涵盖的关键知识点和技术细节。本书由Manning出版社出版,旨在为读者提供一个全面、深入的理解EJB 3.0的技术栈及其应用实践。 ### EJB 3.0概述 - ...

    EJB3+In+Action.rarEJB3+In+Action.rar

    EJB3+In+Action.rarEJB3+In+Action.rarEJB3+In+Action.rarEJB3+In+Action.rarEJB3+In+Action.rarEJB3+In+Action.rarEJB3+In+Action.rarEJB3+In+Action.rarEJB3+In+Action.rarEJB3+In+Action.rarEJB3+In+Action....

    ejb in action

    通过对《EJB in Action》的深入学习,读者将能够熟练掌握EJB 3的核心技术和最佳实践,从而更好地开发和维护企业级Java应用程序。书中的实例和讲解对实际项目开发具有极高的参考价值,是提升Java EE开发技能的宝贵...

    EJB3 In Action.part2

    EJB3 In Action.part2

    EJB 3.0 in action

    EJB 3.0 实战 EJB 3.0 实战 EJB 3.0 实战 EJB 3.0 in action EJB 3.0 in action EJB 3.0 in action EJB 3.0 in action

    EJB3 in action ORALCE PPT

    ### EJB3 in Action: Simplifying Complexity and Enhancing Developer Productivity #### Introduction to EJB3 Enterprise JavaBeans (EJB) is a server-side software component model designed for developing ...

Global site tag (gtag.js) - Google Analytics