亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 5.mht

?? Enterprise Java Bean的PPT文檔,很好的東西.
?? MHT
?? 第 1 頁 / 共 5 頁
字號:
From: <由 Microsoft Internet Explorer 5 保存>
Subject: Tutorial for building J2EE Applications using JBOSS and ECLIPSE
Date: Sun, 5 Dec 2004 11:55:11 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
	boundary="----=_NextPart_000_00F3_01C4DAC1.4635A2C0";
	type="text/html"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441

This is a multi-part message in MIME format.

------=_NextPart_000_00F3_01C4DAC1.4635A2C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.tusc.com.au/tutorial/html/chap5.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Tutorial for building J2EE Applications using JBOSS =
and ECLIPSE</TITLE>
<META http-equiv=3DCONTENT-TYPE content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1479" name=3DGENERATOR>
<META content=3D"Glen McCallum and Vishal Sharma" name=3DAUTHOR>
<META content=3D20030729;9513900 name=3DCREATED>
<META content=3DVishal name=3DCHANGEDBY>
<META content=3D20031118;15354000 name=3DCHANGED>
<META=20
content=3D"Tutorial for building J2EE Applications using Eclipse, =
Lomboz, Jboss and Xdoclet."=20
name=3DDESCRIPTION>
<META=20
content=3D"J2EE, Traininig,Tutorial, J2EE, Lomboz, Eclipse, Jboss, =
Xdoclet, J2EE Patterns, EJB, Servlets, JSP, BMP, CMP, Session, =
Configuration, DAO"=20
name=3DKEYWORDS>
<META content=3D"14 days" name=3Drevisit-after><!-- Meta tags --><!-- =
Copyright =A9 2003 TUSC. All rights reserved.--><!--- Header --></HEAD>
<BODY lang=3Den-US dir=3Dltr>
<FORM name=3DsearchForm action=3D../../../../search/index.php =
method=3Dpost>
<TABLE style=3D"PAGE-BREAK-BEFORE: always" cellSpacing=3D0 =
cellPadding=3D4 width=3D957=20
bgColor=3D#0a6a91 border=3D0>
  <COLGROUP>
  <COL width=3D154>
  <COL width=3D276>
  <COL width=3D21>
  <COL width=3D43>
  <COL width=3D119>
  <COL width=3D31>
  <COL width=3D50>
  <COL width=3D178>
  <COL width=3D14>
  <TBODY>
  <TR>
    <TD vAlign=3Dtop width=3D154>
      <P><A href=3D"http://www.tusc.com.au./contact_us.php"><IMG =
height=3D125=20
      alt=3DTUSC=20
      =
src=3D"http://www.tusc.com.au/tutorial/images/header/tuscJ2eeLogo.gif"=20
      width=3D149 align=3Dbottom border=3D0 =
name=3DGraphic1></A></P></TD>
    <TD vAlign=3Dtop width=3D276>
      <P><IMG height=3D73 alt=3D"Reliable, On-Time Delivery."=20
      src=3D"http://www.tusc.com.au/tutorial/images/header/reliable.gif" =
width=3D268=20
      align=3Dbottom border=3D0 name=3DGraphic2><!--search table =
--></P></TD>
    <TD width=3D21></TD>
    <TD width=3D43>
      <P><IMG height=3D9 alt=3DSearch=20
      src=3D"http://www.tusc.com.au/tutorial/images/elements/search.gif" =
width=3D41=20
      align=3Dbottom border=3D0 name=3DGraphic3></P></TD>
    <TD width=3D119>
      <P><INPUT maxLength=3D50 size=3D12 name=3DKEYWORD></P></TD>
    <TD width=3D31>
      <P><INPUT type=3Dimage height=3D18 width=3D29=20
      src=3D"http://www.tusc.com.au/tutorial/images/btns/go.gif" =
align=3Dbottom=20
      name=3Dgo><INPUT type=3Dhidden value=3DY =
name=3DSECTION_ALL></P></TD>
    <TD vAlign=3Dtop width=3D50>
      <P><IMG height=3D73 alt=3DSpacer=20
      src=3D"http://www.tusc.com.au/tutorial/images/invis.gif" =
width=3D50=20
      align=3Dbottom border=3D0 name=3DGraphic5></P></TD>
    <TD vAlign=3Dtop width=3D154>
      <P><A href=3D"http://www.tusc.com.au./contact_us.php"><IMG =
height=3D125=20
      alt=3DTUSC=20
      =
src=3D"http://www.tusc.com.au/tutorial/images/header/tuscJ2eeLogo.gif"=20
      width=3D149 align=3Dbottom border=3D0 =
name=3DGraphic1></A></P></TD>
    <TD width=3D14>
      <P><IMG height=3D10 alt=3Dspacer=20
      src=3D"http://www.tusc.com.au/tutorial/images/invis.gif" =
width=3D14=20
      align=3Dbottom border=3D0 name=3DGraphic58> =
</P></TD></TR></TBODY></TABLE></FORM>
<P><!--- Header finished --><BR><BR></P>
<H2 align=3Dcenter>Tutorial for building J2EE Applications using JBOSS =
and ECLIPSE=20
<IMG height=3D2 =
src=3D"http://www.tusc.com.au/tutorial/images/redrulr5.gif"=20
width=3D775 align=3Dmiddle border=3D0 name=3DGraphic1></H2>
<P><BR><BR></P>
<H1>Chapter 5. </H1>
<P><IMG height=3D2 =
src=3D"http://www.tusc.com.au/tutorial/images/blurulr6.gif"=20
width=3D785 align=3Dmiddle border=3D0 name=3DGraphic2></P>
<H2>Creating a BMP Entity Bean</H2>
<P>This chapter describes how to create a Bean Managed Persistence (BMP) =
EJB=20
component. We will create two BMP beans, Customer and Manager, as shown =
below.=20
The Customer bean will be responsible for storing the details of =
customers of=20
MyStore. The Manager bean stores details of the manager of MyStore. Both =
beans=20
communicate with their respective tables in the database using Data =
Access=20
Objects (DAOs) named CustomerDAO and ManagerDAO respectively. </P>
<P><BR><BR></P>
<P><IMG height=3D268=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/J2EECaseStudyFlowDiag=
ram.png"=20
width=3D450 align=3Dleft border=3D0 name=3DGraphic37><BR =
clear=3Dleft><BR><BR></P>
<P>All customers have been assigned a unique customerID for housekeeping =

purposes in MyStore in addition to their username for accessing the =
services of=20
MyStore. Similarly the Manager of MyStore has been assigned a unique=20
ManagerID.</P>
<P><BR><BR></P>
<P><FONT color=3D#800000><I>Note : It is the usual practice to access =
business=20
methods of BMP beans via a session bean, which encapsulates business =
logic and=20
acts as an interface to further EJB components. In this case Customer =
and=20
Manager are accessible via by StoreAccess.</I></FONT></P>
<P><FONT color=3D#800000><I>This approach comes from a pattern called a =
Session=20
Facade, whereby enterprise beans encapsulate business logic and business =
data=20
and expose their interfaces. The session bean acts as a facade to =
encapsulate=20
the complexity of interactions with the lower-level beans. The session =
facade is=20
responsible for managing business objects and provides a uniform =
business=20
service abstraction to presentation layer clients, thereby hiding the =
business=20
object implementation in the lower-level beans.</I></FONT></P>
<P><I><FONT color=3D#800000>This tutorial uses that pattern for business =
tier=20
implementation</FONT></I>.</P>
<H3>Tasks :</H3>
<OL>
  <LI>
  <P>Create a BMP bean named Customer under package au.com.tusc.bmp.</P>
  <LI>
  <P>Create a DAO class named CustomerDAOImpl under package =
au.com.tusc.dao.</P>
  <LI>
  <P>Add all attributes/properties to the CustomerBean, with getter and =
setter=20
  methods for each of the attributes.</P>
  <LI>
  <P>Add a finder method named ejbFindByPrimaryKey with the =
signature</P>
  <P><B><FONT color=3D#000000>public CustomerPK</FONT> <FONT=20
  color=3D#000000>ejbFindByPrimaryKey</FONT> <FONT=20
  color=3D#000000>(CustomerPK</FONT> <FONT color=3D#000000>pk)</FONT> =
throws F<FONT=20
  color=3D#000000>inderException</FONT> </B></P>
  <LI>
  <P>Add a finder method named ejbFindByUserID with the signature </P>
  <P><B><FONT color=3D#000000>public CustomerPK</FONT> <FONT=20
  color=3D#000000>ejbFindByUserID</FONT> <FONT color=3D#000000>(String=20
  userID)</FONT> throws F<FONT color=3D#000000>inderException</FONT> =
</B></P>
  <LI>
  <P>Add a business method named getCustomerData with the signature</P>
  <P><FONT color=3D#7f0055><B><FONT color=3D#000000>public =
CustomerData</FONT> <FONT=20
  color=3D#000000>getCustomerData()</FONT></B></FONT></P>
  <LI>
  <P>Implement required methods in the CustomerDAOImpl class.</P>
  <LI>
  <P>Deploy the Customer Bean.</P>
  <LI>
  <P>Add a create method to the StoreAccess Bean.</P>
  <P><B>public void ejbCreate() throws javax.ejb.CreateException =
</B></P>
  <LI>
  <P>Add a business method to the StoreAccess Bean.</P>
  <P><FONT face=3D"Nimbus Roman No9 L"><B><FONT color=3D#000000>public=20
  CustomerData</FONT> <FONT color=3D#000000>getCustomerData(String =
userID)=20
  </FONT></B></FONT></P>
  <LI>
  <P>Create a test client named SessionBMPClient under package=20
  au.com.tusc.client. </P>
  <LI>
  <P><FONT color=3D#000000><FONT face=3D"Nimbus Roman No9 L">Run your =
client and=20
  test the bean.</FONT></FONT></P></LI></OL>
<H3 style=3D"MARGIN-TOP: 0in; MARGIN-BOTTOM: 0in"><BR></H3>
<H3 style=3D"MARGIN-TOP: 0in; MARGIN-BOTTOM: 0in"><B>Create the Customer =
BMP=20
Entity Bean :</B></H3>
<P style=3D"MARGIN-BOTTOM: 0in"><BR></P>
<P><B>Go To Package Explorer &gt; Expand Mystore (project) node &gt; =
select src,=20
right click and a menu will pop up.</B></P>
<P><B>On the pop up menu &gt; New &gt; Lomboz EJB Creation =
Wizard.</B></P>
<P><B>Enter package name au.com.tusc.bmp, bean name Customer and select =
bean=20
type as Bean Manged Entity &gt; Finish.</B></P>
<P><B>This will create a package named au.com.tusc.bmp under src and=20
CustomerBean under that package as shown below.</B></P>
<P><IMG height=3D329=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/CustomerBmp.png" =
width=3D386=20
align=3Dleft border=3D0 name=3DGraphic3><BR clear=3Dleft><FONT =
color=3D#800000><I>Note: It=20
will generate the bean name, jndi-name and type of bean in file. Also, =
the word=20
'Bean' is appended to the name of the file.</I></FONT></P>
<P align=3Dleft>As we can see from the figure above it has created a =
class level=20
tag <B>@ejb.bean</B>, which has assigned the bean type, its name and its =
JNDI=20
name which will be generated in the Home interface. This tag will also =
generate=20
deployment descriptors in ejb-jar.xml and jboss.xml file once you =
generate your=20
EJB classes.</P>
<P>Now we are going to generate all the interfaces including Home, =
Remote, DAO=20
and other helper classes. We don't need to specify any tags in =
ejbGenerate.xml=20
as we have already set up that for the MyStoreMgr EJB module in chapter =
3.</P>
<P><B>Go to node CustomerBean under au.com.tusc.bmp &gt; LombozJ2EE &gt; =
Add EJB=20
to Module &gt; Select MyStoreMgr &gt; Ok.</B></P>
<P><B>Go to MyStoreMgr node &gt; LombozJ2EE &gt; Generate EJB =
classes.</B></P>
<P><FONT color=3D#800000><I>Note: All these steps are covered in =
previous chapters=20
(chapter 3 and 1) so please refer to those sections if you need further =
details.=20
</I></FONT></P>
<P>Now let's see what files are generated by Xdoclet.</P>
<P>As shown below there are two new files named CustomerData and =
CustomerPK in=20
addition to what we had for our session beans. We also have a =
CustomerBMP which=20
extends our CustomerBean class. The remaining files should be familiar =
from our=20
work with session beans.</P>
<P><IMG height=3D239=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/CustomerSrcWithoutDAO=
.png"=20
width=3D215 align=3Dleft border=3D0 name=3DGraphic4><BR =
clear=3Dleft><B>As discussed in=20
chapter 3 regading the various ejbDoclet tags used in ejbGenerate.xml, =
to=20
generate these classes, CustomerData and CutomerPk are generated by =
following=20
tags as shown below in this snippet from ejbGenerate.xml:</B></P>
<P><B>The relevant tags are &lt;dataobject/&gt; and =
&lt;entitypk/&gt;.</B></P>
<P><IMG height=3D276=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/ejbGeneratePkTag.png"=
=20
width=3D268 align=3Dleft border=3D0 name=3DGraphic31><BR =
clear=3Dleft><FONT=20
color=3D#800000><I>Note: There is no CustomerDAO class, as we haven't =

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品免费在线观看| 国产拍欧美日韩视频二区| 亚洲高清在线视频| 欧美日韩一区 二区 三区 久久精品| 亚洲精品欧美激情| 欧美日本国产视频| 美日韩一区二区三区| 久久亚洲精精品中文字幕早川悠里| 国模少妇一区二区三区| 欧美国产欧美综合| 欧美在线不卡一区| 捆绑调教一区二区三区| 日本一区二区视频在线| 日本高清不卡aⅴ免费网站| 午夜免费欧美电影| 久久久影视传媒| 91在线porny国产在线看| 日韩精品一二区| 日本一区二区三区高清不卡| 欧美亚男人的天堂| 国产在线一区二区| 怡红院av一区二区三区| 日韩一卡二卡三卡| 99精品欧美一区二区蜜桃免费 | 日韩欧美高清dvd碟片| 国产在线精品不卡| 亚洲综合成人在线视频| 久久久av毛片精品| 精品视频一区二区三区免费| 国产精品一区免费在线观看| 亚洲一线二线三线视频| 国产午夜亚洲精品理论片色戒| 色综合久久天天| 精品一区二区在线看| 亚洲精品国产一区二区精华液 | 国产日本一区二区| 欧美三级日韩在线| 成人免费毛片片v| 麻豆精品一二三| 亚洲激情自拍视频| 久久久国产综合精品女国产盗摄| 欧美日韩一区成人| 91麻豆福利精品推荐| 国产一区二区三区在线观看免费| 亚洲一区二区三区在线播放| 中文字幕国产一区| 精品理论电影在线| 欧美日韩一区二区三区在线看 | 精品一区免费av| 夜夜嗨av一区二区三区中文字幕| 国产亚洲人成网站| 精品国产污污免费网站入口| 欧美日韩二区三区| 欧洲亚洲国产日韩| 99久久夜色精品国产网站| 国内精品久久久久影院薰衣草 | 丁香一区二区三区| 久久99久久99| 日韩电影在线免费看| 一区二区三区日本| 亚洲视频一区在线| 亚洲欧美日韩国产中文在线| 国产精品美女一区二区三区 | 日韩精品中文字幕一区二区三区| 欧洲生活片亚洲生活在线观看| 99久久免费视频.com| 懂色av中文字幕一区二区三区 | 国产精品女人毛片| 欧美国产国产综合| 国产欧美一区二区三区在线老狼| 精品国产乱码久久久久久久| 欧美成人三级电影在线| 69堂国产成人免费视频| 欧美精品乱人伦久久久久久| 精品视频在线视频| 欧美精品色一区二区三区| 欧美剧情电影在线观看完整版免费励志电影 | 国产一区91精品张津瑜| 国产真实乱对白精彩久久| 国产乱人伦精品一区二区在线观看| 激情五月婷婷综合网| 国产伦精品一区二区三区视频青涩 | 这里只有精品免费| 91精品国产综合久久久蜜臀粉嫩| 欧美精品久久一区| 69av一区二区三区| 日韩欧美色电影| 久久久亚洲高清| 国产精品久久精品日日| 亚洲精品五月天| 亚洲图片欧美综合| 美女性感视频久久| 国产不卡在线一区| 97精品电影院| 欧美日韩国产三级| 日韩免费电影网站| 中文字幕va一区二区三区| 亚洲女人小视频在线观看| 一区二区高清在线| 美洲天堂一区二卡三卡四卡视频| 日本不卡一二三区黄网| 狠狠色狠狠色综合系列| 99精品国产视频| 欧美群妇大交群中文字幕| 欧美大片在线观看| 综合久久综合久久| 日韩中文字幕区一区有砖一区| 韩国av一区二区三区| 99综合电影在线视频| 欧美群妇大交群中文字幕| 久久一区二区视频| 亚洲精品免费一二三区| 久久99精品久久久久久久久久久久 | 久久久五月婷婷| 一区二区三区av电影| 精品一区免费av| 欧美亚洲国产一区在线观看网站| 日韩免费高清视频| 一区二区视频在线| 精品一区二区免费在线观看| 91视频91自| 亚洲精品一线二线三线| 亚洲在线视频一区| 国产成人免费视频网站| 欧美日韩综合在线免费观看| 国产女人aaa级久久久级| 日韩avvvv在线播放| 99精品国产视频| 久久婷婷国产综合精品青草 | 中文字幕在线观看一区| 麻豆成人av在线| 欧美性淫爽ww久久久久无| 久久久久久久久久久久久久久99 | 欧美精品一区二| 亚洲国产欧美在线| 91亚洲精品一区二区乱码| 精品国产免费视频| 日韩成人免费电影| 在线观看日韩毛片| 亚洲欧洲性图库| 国产超碰在线一区| 日韩精品专区在线| 日韩激情视频网站| 欧美日韩一区二区三区免费看| 国产精品国产三级国产专播品爱网| 蜜臀av亚洲一区中文字幕| 欧美中文字幕不卡| 亚洲精品免费看| 色婷婷一区二区| 日韩理论片在线| 97久久精品人人做人人爽50路 | 亚洲精品中文在线| 99久久国产免费看| 国产精品久久久久久久午夜片| 激情图区综合网| 日韩精品中文字幕一区二区三区| 偷拍亚洲欧洲综合| 欧美日韩黄色一区二区| 亚洲综合丝袜美腿| 欧美日韩国产一区| 天堂成人国产精品一区| 欧美日韩一级二级三级| 亚洲超碰精品一区二区| 欧美猛男超大videosgay| 香蕉久久一区二区不卡无毒影院 | 99精品国产一区二区三区不卡| 国产精品嫩草影院av蜜臀| 成人av网址在线观看| 国产精品国产三级国产三级人妇 | 欧美日韩视频一区二区| 午夜精品aaa| 欧美一区二区在线看| 奇米在线7777在线精品| 日韩欧美综合在线| 国产精品中文字幕欧美| 中文字幕+乱码+中文字幕一区| 风流少妇一区二区| 亚洲欧美区自拍先锋| 欧美日韩国产一级| 久久福利视频一区二区| 久久久久久久久岛国免费| 成人a区在线观看| 亚洲欧美激情一区二区| 欧美日韩成人综合在线一区二区 | 国产一区二区视频在线播放| 国产肉丝袜一区二区| 91一区二区在线观看| 亚洲二区在线观看| 欧美本精品男人aⅴ天堂| 国产经典欧美精品| 一区二区三区在线观看网站| 欧美体内she精高潮| 精品一区二区三区欧美| 中文字幕第一区综合| 欧美午夜精品久久久久久孕妇| 秋霞成人午夜伦在线观看| 中文字幕av一区二区三区免费看| 在线视频你懂得一区| 久久狠狠亚洲综合| 亚洲欧美偷拍三级|