0831 [Summary] J2EE-EJB under Eclipse, Lomboz and JBoss

xiaoxiao2021-03-06  78

http://www.tusc.com.au/tutorial/html/chap1.html

1. Stateless SessionBean (chap3)

a. EJBGENERATE in the example. XML corresponds to the actual XDoclet. XML. This is the file that Lomboz is used to generate the need for interfaces or assistant classes, which requires corresponding changes in JBoss, such as:

Version = "3.0"

UnauthenticatedPrincipal = "noBody"

XmlenCoding = "UTF-8"

Destdir = "$ {ejb.dd.dir}"

Validatexml = "false"

DataSource = "Java: / EJBTEST"

DataSourceMapping = "Hypersonic SQL"

preferredRelationMapping = "forgein-key"

/>

b. Note in SessionBean (storeAccessBean in Example):

@ ejb.dao class = "au.com.tusc.session.storeAccessdao" IMPL-Class = "au.com.tusc.dao.storeaccessDaoIMPL"

Generate: 1. Interface StoreAccessDaO 2. Implement class StoreAccessDaoImpl

Original note:

@ Ejb.bean name = "storeaccess" jndi-name = "storeAccessBean" type = "stateless"

Generate EJB-JAR. The definition of the interface in XML and JBoss. Definition of JNDI in XML

The specific UserLogin and Init are completed in StoreAccessDaoImpl (? Layer, bussiness method?)

转载请注明原文地址:https://www.9cbs.com/read-121624.html

New Post(0)