The general framework of Section II-EJB3.0

2010-03-29  来源:本站原创  分类:Java  人气:279 

Asynchronous enterprise messaging services in detail. We have encountered most of the MDB are implemented JMS interface.

MDB (Message Driven Bean) to achieve the same business logic; with the Session Bean The difference is that the client does not directly call the MDB method. The client by sending a message to the message server to trigger the implementation of MDB to realize asynchronous operation between system components. MDB is commonly used robust system integration or asynchronous processing.

² MDB can be to handle multi-threading to achieve concurrency without the need for any additional jobless independent code

² MDB messaging mechanism to reduce the use of the configuration and coding capacity; also by the deployment descriptor file, or annotation to provide configuration information

MDB Pool

Containers receive the message




Messages reach their destinations

Order Object

Using the @ MessageDriven annotation can easily create MDB, the specific use and examples described here temporarily.

JBoss server using JBoss MQ. Entity & JPA

EJB3 persistence managed by the JPA, which uses as an object - relational mapping (ORM) technology automatically persistent Java objects.

JPA defines persistent specification, defining the following criteria:

² used to map entities to database tables ORM configuration metadata creation

² EntityManager API, used for physical implementation of the CRUD (create, read, update, and delete)

² Java Persistence Query Language (JPQL)

At present there are more common implementation of JBoss Hibernate, Oracle TopLink, and Apache OpenJPA. Need to be mentioned is that, JPA did not regulate the handling of the cache, the choice of JPA is achieved, need attention.

  • The general framework of Section II-EJB3.0 2010-03-29

    Asynchronous enterprise messaging services in detail. We have encountered most of the MDB are implemented JMS interface. MDB (Message Driven Bean) to achieve the same business logic; with the Session Bean The difference is that the client does not di

  • General CSS Tutorial - Part II: CSS Box Model 2009-11-12

    Following the article on a CSS Tutorial: Part I: CSS-based, it is now second summary article published: CSS Box Model 2, CSS box model 2.1 CSS Box Model Overview CSS box model (Box Model) provides the contents of the element frame processing elements

  • JBOSS 4.0.5 EJB3.0 of the MDB (ACTIVEMQ) 2010-07-26

    Project used the EJB3.0 MDB, that is very simple, do not want to use the default installation of JBOSS4.0.5 version does not support EJB's release, resolved Notes Reference: 1, download the (

  • ejb learning, EJB, and Spring and EJB3.0 comparison of the operating environment 2010-10-26

    Today to learn ejb, Li live out the teacher's, Lebanon domestic ejb teacher's authority, "EJB3.0 Beginning" is written by the teacher Li, EJB good book sales area. Lebanon teacher talk about the advantages of the ejb, or that it's focus, it prov

  • EJB3.0 SessionBean Case 2011-09-02

    Because the first contact with the EJB3.0 SessionBean as a simple case of the first depressed for a long time, the Internet also find a number of related cases, but there are a number of cases is not clear enough talk, get out for a long time Dounong

  • EJB3.0之实体Bean的继承 2014-01-10

    在EJB3.0中,实体Bean可以实现继承关系. 比如有个Person的实体bean,它有姓名和性别两个属性. 上帝和女娲造人的时候,造出两种人:Man和Woman.Man和Woman都是实体Bean,而且他们都继承Person. 单一表策略就是副实体和子实体的数据都存放在一张表中,同时指定一列用来区别这些实体. 如: @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE, discriminatorType = Discrim

  • EJB3.0学习(二)第一个程序HelloWorld 2010-10-22


  • EJB3.0学习(一)运行环境配置 2010-10-22


  • [Lucene3.0 the first glimpse of] the index file format (2): the general framework of the file structure 2010-04-23

    Later we will detail each of the index file of data structures and functions. NOTE: The next article is an instance of the data used in "index created (5): index data pool and the memory data details" in the index in the memory structure to crea

  • EJB3.0 of the application server's JNDI interface to provide 2010-05-30

    On JNDI and EJB JNDI (The Java Naming and Directory Interface,Java Naming and Directory Interface ) Is a set of applications in the Java naming and directory services to access API. Provided for developers to find and access the various naming and di

  • EJB3.0 entity annotations specification (Reprinted) 2010-03-20

    EJB3 For deferred loading and gets mode provides the fetch options , While Hibernate provides a richer set of options . In order to better adjust the delay-load and get strategies, Hibernate introduces some additional notes : @LazyToOne: Defines @Man

  • EJB3.0 Ant Build.xml examples to explain 2010-03-24

    When applied to the ejb3 need to find some configuration ... .. not very familiar with the following comments from the Internet to find a point 1. <?xml version="1.0" encoding="utf-8"?> 2. <!-- Define a name for the project, p

  • [Change] ejb3.0 + struts2.0 integration 2010-07-03

    Recently to see Struts2 and EJB3, out of curiosity, wanted to try using the struts2 deployed in tomcat to access the EJB3 deployed in the jboss process. Only used for the inside before EJB3 jpa, feeling useful, or comment is convenient and easy to us

  • EJB3.0 study summary (3) - Java Message Service (JMS) 2010-07-25

    JMS Step 1. New Project: JMS, JBoss installation directory under the client folder under the package all imports come Step 2. In the project root directory create the Ant Services: build.xml <?xml version="1.0" encoding="UTF-8"?>

  • myeclipse7.0 integrated development ejb3.0 components weblogic11g 2010-10-20

    1: install weblogic11g I installed in C: \ Oracle \ Middleware 2: Create a new field start menu --- "Configuration wizard ---> and then to a step by step according to the diagram below you can achieve! Then open the myeclipse ---> window --->

  • EJB3.0 Beginners Notes 2011-01-12

    Session Bean Example @ Stateless 1. Create a remote interface package com.ejb3; /** * @author Clay Zhong - Email: [email protected] * @date Aug 31, 2008 */ public interface HelloWorld { public String sayHello(String name); } 2. Create a local interfac

  • jackRabbit general framework 2011-05-25

    jackRabbit overall architecture is divided into three parts: 1, the content application (the content repository API complement each other together with the JCR API) 2, the content repository API 3, the content repository implementation (mainly based

  • EJB3.0开发之多对多和一对一 2013-10-09

    在前面的例子中,我们演示了一对多和多对一的例子,在本章将演示多对多和一对一的关系. 学生和老师就是多对多的关系.一个学生有多个老师,一个老师教多个学生. 学生和档案就是一对一的关系(不知道国外的学生有没有档案?). 为了实现多对多的关系,数据库中需要关联表,用以在两个实体间建立关联.JBoss可以自动生成关联表,你也可以@AssociationTable来指定关联表的信息. 如: @ManyToMany(cascade = {CascadeType.CREATE, CascadeType.MER

  • 使用NetWeaver开发EJB3.0 2012-03-09

    Prerequisites The Windows ® Open Perspective ® Other ® J2EE perspective is open. Procedure Creating the EJB Module Project You develop the EJB 3.0 classes in an EJB 3.0 project in the J2EE perspective. ... 1. Choose File ® New ® Project from the main

  • EJB3.0 Hibernate JPA持久化配置 2014-06-21

    系统要求 1. jboss-4.2.3.GA 2. hibernate-entitymanager 4.2.13.Final 3. MYSQL 配置步骤 1. 在deploy目录下配置mysql-ds.xml <?xml version="1.0" encoding="UTF-8"?> <datasources> <local-tx-datasource> <!-- The jndi name of the DataSour