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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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 =

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品进线69影院| 色婷婷久久久综合中文字幕 | 国产喂奶挤奶一区二区三区| 国产精品久久久久天堂| 亚洲午夜在线视频| 精品在线免费观看| 成人一级片网址| 欧美日韩在线一区二区| 久久久久亚洲综合| 亚洲一区二区五区| 国产成人在线影院| 欧美性做爰猛烈叫床潮| 日韩精品一区二区三区四区视频| 国产欧美日韩麻豆91| 亚洲一区国产视频| 丰满白嫩尤物一区二区| 在线成人午夜影院| 日本一区二区免费在线| 婷婷综合另类小说色区| 丁香六月久久综合狠狠色| 欧美日韩国产一区二区三区地区| 久久精品一级爱片| 午夜伦理一区二区| www.成人网.com| 欧美一级视频精品观看| 亚洲狼人国产精品| 国产精选一区二区三区| 欧美日韩aaa| 国产精品美女一区二区| 麻豆精品蜜桃视频网站| 91国偷自产一区二区三区成为亚洲经典| 日韩欧美专区在线| 一区二区三区中文字幕| 国产91精品在线观看| 日韩欧美一二区| 亚洲国产色一区| 9i看片成人免费高清| 久久久久久久久久久久久夜| 午夜欧美在线一二页| 91婷婷韩国欧美一区二区| 精品久久久久一区| 午夜视频久久久久久| 色婷婷综合视频在线观看| 久久久国际精品| 久久99精品久久久久久动态图| 欧美日韩国产区一| 亚洲视频一二三| 成人av电影在线| 中文字幕电影一区| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 麻豆成人久久精品二区三区小说| 日本精品一区二区三区高清| 中文字幕不卡的av| 国产精品自在在线| 精品电影一区二区| 美女视频第一区二区三区免费观看网站| 一本色道亚洲精品aⅴ| 国产精品免费av| 岛国精品在线播放| 久久久久久麻豆| 韩国一区二区视频| 日韩久久免费av| 免费成人美女在线观看.| 欧美片网站yy| 婷婷六月综合网| 欧美日韩高清影院| 日韩av在线播放中文字幕| 欧美精品视频www在线观看| 亚洲午夜在线视频| 欧美日韩精品一区二区三区蜜桃| 亚洲成人综合视频| 欧美精品黑人性xxxx| 日本不卡高清视频| 欧美一级二级在线观看| 琪琪久久久久日韩精品| 日韩一区二区三免费高清| 日本欧美加勒比视频| 欧美一级在线视频| 蜜桃视频在线一区| 日韩精品一区二区三区四区视频| 国产一区二区三区香蕉| 国产亚洲欧洲一区高清在线观看| 国产精品一二三在| 国产精品美女一区二区在线观看| 99久久婷婷国产综合精品 | 91欧美激情一区二区三区成人| 亚洲欧美一区二区久久 | 日本不卡高清视频| 精品成人a区在线观看| 国产精品1区2区| 成人欧美一区二区三区黑人麻豆 | 亚洲黄色片在线观看| 欧美综合视频在线观看| 婷婷夜色潮精品综合在线| 欧美一区日韩一区| 狠狠色综合日日| 亚洲欧洲精品天堂一级| 欧美在线你懂的| 麻豆国产精品官网| 欧美激情一区在线观看| 日本道免费精品一区二区三区| 亚洲福中文字幕伊人影院| 欧美不卡视频一区| 不卡高清视频专区| 性久久久久久久久久久久| 欧美变态tickle挠乳网站| 成人免费av网站| 亚洲国产成人高清精品| 欧美一级艳片视频免费观看| 国产成人免费视| 亚洲电影一区二区| 欧美精品一区二区不卡| 91美女片黄在线| 日本不卡视频在线观看| 国产精品久久久久三级| 欧美一三区三区四区免费在线看| 国产精品一二三区在线| 亚洲资源在线观看| www国产亚洲精品久久麻豆| 91亚洲精品久久久蜜桃| 青青草视频一区| 国产精品久久免费看| 欧美福利视频导航| 成人免费视频免费观看| 日韩精品一级中文字幕精品视频免费观看| 精品99久久久久久| 欧美日韩一级二级| 国产成人午夜视频| 日日摸夜夜添夜夜添国产精品| 国产精品视频观看| 日韩一区二区三区免费观看| 91在线精品秘密一区二区| 美女国产一区二区三区| 亚洲精品自拍动漫在线| 亚洲精品一线二线三线| 欧美熟乱第一页| 成人性生交大片免费看在线播放 | 欧美成人性战久久| 日本乱码高清不卡字幕| 成人午夜av影视| 麻豆国产精品777777在线| 亚洲国产精品精华液网站| 国产精品视频免费看| 欧美精品一区二区三区一线天视频| 色婷婷久久久综合中文字幕| 高清不卡在线观看av| 久久国产视频网| 午夜亚洲福利老司机| 亚洲品质自拍视频网站| 中文字幕电影一区| 26uuu亚洲| 日韩精品一区二区三区视频在线观看| 欧洲精品视频在线观看| 99视频在线精品| 国产成人在线视频网址| 久久99国产精品麻豆| 日本美女视频一区二区| 亚洲香肠在线观看| 亚洲黄色小视频| 亚洲人成网站色在线观看| 国产女主播一区| 久久伊99综合婷婷久久伊| 欧美一区二区三区日韩| 欧美日韩精品一区二区| 色婷婷综合久久久中文字幕| av不卡在线播放| 99国产精品一区| 成人高清视频在线| 国产91精品在线观看| 国产成人免费视频一区| 国产电影一区二区三区| 久久精品国产精品亚洲红杏| 天天影视涩香欲综合网| 亚洲成人手机在线| 一区二区三区 在线观看视频| 综合网在线视频| 亚洲天堂久久久久久久| 中文字幕亚洲不卡| 成人免费小视频| 亚洲三级在线观看| 亚洲日本电影在线| 亚洲日本va午夜在线影院| 亚洲卡通动漫在线| 亚洲黄色小说网站| 亚洲成av人影院| 日韩国产在线观看一区| 日韩高清不卡一区| 美国精品在线观看| 韩国一区二区在线观看| 国产福利视频一区二区三区| 成人午夜电影网站| 91在线无精精品入口| 欧洲视频一区二区| 欧美日韩日日骚| 91精品国产免费| 欧美videos中文字幕| 国产偷国产偷精品高清尤物| 欧美国产综合一区二区| 亚洲欧美电影院| 日韩精品福利网|