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

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

?? 5.mht

?? Enterprise Java Bean的PPT文檔,很好的東西.
?? MHT
?? 第 1 頁 / 共 5 頁
字號:
clear=3Dleft><B>First add the tag=20
shown below at class level in CustomerBean.</B></P><PRE><FONT =
face=3DSans><FONT style=3D"FONT-SIZE: 11pt" size=3D2><FONT =
color=3D#3f5fbf><B>@</B>ejb.resource</FONT><FONT =
color=3D#7f7f9f>-</FONT><FONT color=3D#3f5fbf>ref</FONT> <FONT =
color=3D#3f5fbf>res</FONT><FONT color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>ref</FONT><FONT color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>name=3D"jdbc/DefaultDS<B>"</B></FONT></FONT></FONT>
<FONT face=3DSans><FONT style=3D"FONT-SIZE: 11pt" size=3D2><FONT =
color=3D#3f5fbf>res</FONT><FONT color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>type=3D"javax.sql.Datasource"</FONT></FONT></FONT>
<FONT face=3DSans><FONT style=3D"FONT-SIZE: 11pt" size=3D2><FONT =
color=3D#3f5fbf>res</FONT><FONT color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>auth=3D"Container"</FONT></FONT></FONT></PRE>
<P><B>This tag will generate deployment descriptors in ejb-jar.xml, as =
the bean=20
has to know which datasource you are going to connect to, and what is =
its ts=20
type, etc. This will generate these descriptors as shown below.</B></P>
<P><IMG height=3D376=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/ejbJarDSTag.png" =
width=3D446=20
align=3Dleft border=3D0 name=3DGraphic22><BR clear=3Dleft><BR><BR></P>
<P><B>Add this second tag required for the JBOSS application server. =
</B></P><PRE style=3D"MARGIN-BOTTOM: 0.2in"><FONT face=3DSans><FONT =
style=3D"FONT-SIZE: 11pt" size=3D2><FONT =
color=3D#3f5fbf>@jboss.resource</FONT><FONT =
color=3D#7f7f9f>-</FONT><FONT color=3D#3f5fbf>ref</FONT> <FONT =
color=3D#3f5fbf>res</FONT><FONT color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>ref</FONT><FONT color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>name=3D"jdbc/DefaultDS"</FONT></FONT></FONT>
<FONT color=3D#3f5fbf> <FONT style=3D"FONT-SIZE: 11pt" size=3D2><FONT =
face=3DSans>jndi<FONT =
color=3D#7f7f9f>-</FONT>name=3D"java:/DefaultDS<B>"</B></FONT></FONT></FO=
NT></PRE>
<P><B>This tag will generate deployment descriptors in jboss.xml, as the =

application server has to know with what jndi-name the datasource has =
been=20
registered with. This will generate these descriptors as shown =
below.</B></P>
<P><IMG height=3D182=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/jbossDDTag.png" =
width=3D346=20
align=3Dleft border=3D0 name=3DGraphic23><BR clear=3Dleft><BR><BR></P>
<P><B>Now everything is complete, and it's time to deploy the bean. So,=20
regenerate your EJB classes.</B></P>
<P><FONT color=3D#800000><I>Note : As noted in earlier chapters we are=20
regenerating classes over and over to properly illustrate each step and =
its=20
result. Once you are proficient you will be able to forgo most of=20
this.</I></FONT></P>
<P><B>Go to Lomboz J2EE View &gt; expand node MyStore &gt; expand =
MyStoreMgr=20
&gt; select 'Jboss 3.2.1 ALL' .</B></P>
<P><B>Right click &gt; select 'Debug Sever' on pop up menu.</B></P>
<P><FONT color=3D#800000><I>Note : This is to start your server, if you =
are=20
already running your server then skip these steps and go to the next=20
one.</I></FONT></P>
<P><B>Go to MyStoreMgr node in LombozJ2EE view &gt; right click &gt; =
select=20
'Deploy' on pop up menu as shown in figure below.</B></P>
<P><IMG height=3D224=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/LombozJ2EEViewCustome=
rBeanDeploy.png"=20
width=3D416 align=3Dleft border=3D0 name=3DGraphic24><BR =
clear=3Dleft><BR><BR></P>
<P><FONT color=3D#800000><I>Note : All these techniques have been shown =
in=20
previous chapters (1 and 3) so please refer to them.</I></FONT></P>
<P><B>The messages in the console will show whether your bean has been=20
successfully deployed or not.</B></P>
<P><B>Now our Customer Bean is complete, and in order to create a client =
to=20
invoke operations on this bean we have make some modifications to our=20
StoreAccess Bean.</B></P>
<P><FONT color=3D#800000><I>Note : As shown in the diagram at the =
beginning of=20
this chapter that client will invoke operations on Customer Bean through =
Store=20
AccesBean, as it is a good practice to access Entity Beans in this =
manner. As a=20
result we need a Local view of Customer Bean rather than Remote, because =
both=20
are in the same Java Virtual Machine.</I></FONT></P>
<H3>Add Create Method in StoreAccess :</H3>
<P><B>In StoreAccess Bean add an ejbCreate method, which will create a =
BMP=20
Entity Bean (in this case a Customer Bean) with the following signature =
</B></P><PRE style=3D"MARGIN-BOTTOM: 0.2in"><FONT face=3DSans><FONT =
style=3D"FONT-SIZE: 11pt" size=3D2><FONT color=3D#7f0055>public</FONT> =
<FONT color=3D#7f0055>void</FONT> <FONT color=3D#000000>ejbCreate</FONT> =
<FONT color=3D#000000>()</FONT> <FONT color=3D#7f0055>throws</FONT>  =
<FONT color=3D#000000>javax.ejb.CreateException</FONT> =
</FONT></FONT></PRE>
<P><B>Now, add a field to store the reference obtained by locating =
Customer in=20
JNDI.</B></P><PRE style=3D"MARGIN-BOTTOM: 0.2in"><FONT face=3DSans><FONT =
style=3D"FONT-SIZE: 11pt" size=3D2><B><FONT color=3D#7f0055>private =
</FONT></B><FONT color=3D#000000>CustomerLocalHome</FONT> <FONT =
color=3D#000000>customerLocalHome</FONT>;</FONT></FONT></PRE>
<P><B>In ejbCreate method store the reference in the customerLocalHome =
variable=20
by invoking the getLocalHome static method in CustomerUtil class as =
shown in the=20
code snippet below from StoreAccess Bean.</B></P>
<P><IMG height=3D244=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/StoreAccessBeanEjbCre=
ate.png"=20
width=3D416 align=3Dleft border=3D0 name=3DGraphic25><BR =
clear=3Dleft><BR><BR></P>
<H3><B>Add Business Method in StoreAccess :</B></H3>
<P><B>Add another business method in StoreAccess Bean which will invoke =
the=20
corresponding business method on Customer Bean.</B></P>
<P>Now, add a business method with this signature <FONT=20
face=3D"Nimbus Roman No9 L"><B><FONT color=3D#000000>public =
CustomerData</FONT>=20
<FONT color=3D#000000>getCustomerData(String userID) </FONT></B><FONT=20
color=3D#000000>with Interface type as Remote. As customers will log on =
to MyStore=20
with username, once they are authe</FONT></FONT>nticated they will be =
identified=20
by userid and they can retrieve their account details from MyStore using =
this=20
userid.</P>
<P><FONT color=3D#800000><FONT face=3D"Nimbus Roman No9 L"><I>Note : =
Steps to create=20
business methods are covered in previous chapters.</I></FONT></FONT></P>
<P><FONT color=3D#000000><FONT face=3D"Nimbus Roman No9 L"><FONT =
size=3D3><B>Now=20
invoke one of the finder methods of Customer on the reference variable =
we have=20
created in the ejbCreate method.</B></FONT></FONT></FONT></P><PRE =
style=3D"MARGIN-BOTTOM: 0.2in"><FONT style=3D"FONT-SIZE: 11pt" =
size=3D2><FONT face=3DSans>CustomerLocal myCustomer  =3D   =
customerLocalHome.findByUserID(userID)</FONT></FONT>         </PRE>
<P><FONT color=3D#000000><FONT face=3D"Nimbus Roman No9 L"><FONT =
size=3D3><B>Now=20
invoke the business method on Customer using the myCustomer reference=20
variable.</B></FONT></FONT></FONT></P><PRE style=3D"MARGIN-BOTTOM: =
0.2in"><FONT face=3DSans><FONT style=3D"FONT-SIZE: 11pt" =
size=3D2>CustomerData cd =3D myCustomer.getCustomerData() =
</FONT></FONT></PRE>
<P>Code snippet of this business method is shown below.</P>
<P><BR><BR></P>
<P><IMG height=3D312=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/StoreAccessBeanGetCus=
tomerData.png"=20
width=3D506 align=3Dleft border=3D0 name=3DGraphic26><BR =
clear=3Dleft><BR><BR></P>
<P><B>All methods in StoreAccess Bean have now been added for the =
accessing the=20
Customer's business method. All that remains are the deployment =
descriptors=20
required for linking/referencing the StoreAccess and Customer beans. We =
will add=20
the two tags shown below.</B></P>
<P><IMG height=3D562=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/StoreAccessBeanDDTag.=
png"=20
width=3D442 align=3Dleft border=3D0 name=3DGraphic27><BR =
clear=3Dleft><BR><BR></P>
<P><B>First add this tag at class level in StoreAccess =
Bean.</B></P><PRE><FONT color=3D#3f5fbf><FONT face=3DSans><FONT =
size=3D3>@ejb.ejb<FONT color=3D#7f7f9f>-</FONT>ref ejb<FONT =
color=3D#7f7f9f>-</FONT>name=3D"Customer"</FONT></FONT></FONT>
 <FONT size=3D3><FONT face=3DSans><FONT color=3D#3f5fbf>view</FONT><FONT =
color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>type=3D"local"</FONT></FONT></FONT>
 <FONT size=3D3><FONT face=3DSans><FONT color=3D#3f5fbf>ref</FONT><FONT =
color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>name=3D"CustomerLocal"</FONT></FONT></FONT></PRE>
<P><B>This tag will generate deployment descriptors in ejb-jar.xml, as=20
StoreAccessBean has to know which bean it's referring to, and what is =
its=20
view-type and ref-name. This will generate these descriptors as shown=20
below.</B></P>
<P><FONT color=3D#800000><I>Note : View type is local as both are in the =
same Java=20
Virtual Machine, otherwise it would be Remote. Note that ref-name is =
generated=20
as CustomerLocalHome rather than CustomerHome. Both are generated but we =
are=20
using Local in this case.</I></FONT></P>
<P><IMG height=3D472=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/ejbjarwithStoreAccess=
.png"=20
width=3D472 align=3Dleft border=3D0 name=3DGraphic28><BR =
clear=3Dleft><B>Now add the=20
second tag shown below at class level in StoreAccess Bean.</B></P><PRE =
style=3D"MARGIN-BOTTOM: 0.2in"><FONT face=3DSans><FONT size=3D3><FONT =
color=3D#3f5fbf>@jboss.ejb</FONT><FONT color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>ref</FONT><FONT color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>jndi</FONT> <FONT color=3D#3f5fbf>ref</FONT><FONT =
color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>name=3D"CustomerLocal"</FONT></FONT></FONT>
<FONT face=3DSans><FONT size=3D3><FONT color=3D#3f5fbf>jndi</FONT><FONT =
color=3D#7f7f9f>-</FONT><FONT =
color=3D#3f5fbf>name=3D"CustomerLocal"</FONT></FONT></FONT></PRE>
<P><B>This tag will generate deployment descriptors in jboss.xml, as the =

application server has to know what jndi-name Customer Bean has been =
registered=20
with. This will generate these descriptors as shown below.</B></P>
<P><FONT color=3D#800000><I>Note : Ref-name and jndi-name are used for =
bean as=20
local (in same JVM).</I></FONT></P>
<P><IMG height=3D218=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/jbossWithStoreAccessW=
rong.png"=20
width=3D378 align=3Dleft border=3D0 name=3DGraphic29><BR =
clear=3Dleft><BR><BR></P>
<P><FONT color=3D#800000><I>Note : As we can see from the code snippet =
above, the=20
deployment descriptor generated by tag @jboss is wrong, because for =
local=20
referencing of Customer tag &lt;ejb-ref&gt; should be =
&lt;ejb-local-ref&gt;.=20
There seems to be a bug in this tag, so we will correct this manually by =

changing the tag in the jboss.xml file as shown below.</I></FONT></P>
<P><IMG height=3D222=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/jbossWithStoreAccess.=
png"=20
width=3D370 align=3Dleft border=3D0 name=3DGraphic30><BR =
clear=3Dleft><FONT=20
color=3D#800000><I><B>Caution here:</B> Make sure that you do this =
change manually=20
after you finish regenerating your EJB classes, because every time you=20
regenerate your classes, 'jboss.xml' will initially have the wrong =
descriptors=20
generated by this tag.</I></FONT></P>
<P>Now our changes to StoreAccess Bean are complete, so deploy your bean =
again=20
now from the Lomboz J2EE View. The steps to do that are shown above and =
in=20
previous chapters. Messages will appear in the console showing the =
status of=20
deployment.</P>
<P>Once your bean is deployed successfully, create a test client which =
will=20
invoke the loginUser method on StoreAccessBean and getCustomerData on=20
CustomerBean.</P>
<H3 style=3D"MARGIN-TOP: 0in; MARGIN-BOTTOM: 0in"><BR></H3>
<H3 style=3D"MARGIN-TOP: 0in; MARGIN-BOTTOM: 0in"><B>Create your Test =
Client=20
:</B></H3>
<P style=3D"MARGIN-BOTTOM: 0in"><BR></P>
<P>G<B>o to Project MytStore node &gt; select src node abd expand it =
&gt; select=20
au.com.tusc.client package &gt; right click.</B></P>
<P><B>Select New on pop up menu &gt; select Lomboz EJB Test Client =
Wizard</B>.=20
</P>
<P><FONT color=3D#800000><I>Note : These steps are covered in previous=20
chapters.</I></FONT></P>
<P><B>Select package name au.com.tusc.client, name as SessionBMPClient =
and=20
select Ejb Home as au.com.tusc.session.StoreAccessHome and Ejb Interface =
as=20
au.com.tusc.session.StoreAccess</B> as shown in figure below.</P>
<P><IMG height=3D352=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/TesTClientCreateEJB.p=
ng"=20
width=3D866 align=3Dleft border=3D0 name=3DGraphic14><BR =
clear=3Dleft>T<B>his will=20
generate required methods for you in your SessionBMPClient class and you =
simply=20
invoke the loginUser and getCustomerData methods as shown</B>.</P>
<P><IMG height=3D582=20
src=3D"http://www.tusc.com.au/tutorial/images/chap5/TestClientGeneratedVi=
ew.png"=20
width=3D458 align=3Dleft border=3D0 name=3DGraphic32><BR =
clear=3Dleft><BR><BR></P>
<P><B>Now to add some code to your client</B>.</P>
<P><B>Add these lines under the testBean method as shown below. =
</B></P><PRE><FONT face=3DSans><FONT style=3D"FONT-SIZE: 11pt" =
size=3D2><FONT color=3D#000000>System.out.println(</FONT><FONT =
color=3D#2a00ff>"Request from client : "</FONT><FONT =
color=3D#000000>);</FONT></FONT></FONT>
<FONT face=3DSans><FONT style=3D"FONT-SIZE: 11pt" size=3D2><FONT =
color=3D#000000>String</FONT> <FONT color=3D#000000>userID</FONT> <FONT =
color=3D#000000>=3D</FONT> <FONT =
color=3D#000000>myBean.loginUser(</FONT><FONT =
color=3D#2a00ff>"ANDY"</FONT><FONT color=3D#000000>,</FONT><FONT =

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合成人在线| 午夜精品一区二区三区免费视频| 色噜噜偷拍精品综合在线| 奇米四色…亚洲| 亚洲欧美一区二区三区极速播放| 欧美不卡视频一区| 欧美美女直播网站| 日本丶国产丶欧美色综合| 国产激情一区二区三区| 午夜精品成人在线视频| 亚洲蜜臀av乱码久久精品蜜桃| 欧美一区二区三区爱爱| 久久精品二区亚洲w码| 亚洲线精品一区二区三区| 国产精品毛片久久久久久久| 日韩精品一区二区三区四区| 欧美美女黄视频| 色婷婷久久99综合精品jk白丝 | 91福利视频在线| 国产精品一区二区久激情瑜伽| 日本不卡123| 午夜国产精品影院在线观看| 一区二区在线电影| ㊣最新国产の精品bt伙计久久| 国产欧美精品在线观看| 久久影院电视剧免费观看| 日韩美一区二区三区| 在线电影欧美成精品| 欧美人与z0zoxxxx视频| 欧美午夜一区二区三区免费大片| 99这里都是精品| 91免费看`日韩一区二区| 成人免费av资源| 成人aaaa免费全部观看| 99久久婷婷国产| 白白色亚洲国产精品| 99精品欧美一区二区蜜桃免费| 不卡影院免费观看| 91女厕偷拍女厕偷拍高清| av激情综合网| 欧洲另类一二三四区| 在线亚洲人成电影网站色www| 91女神在线视频| 色视频成人在线观看免| 欧美专区亚洲专区| 在线91免费看| 日韩精品专区在线影院重磅| 久久蜜桃av一区精品变态类天堂 | 久久99精品久久只有精品| 麻豆精品视频在线观看免费| 久久精品国产秦先生| 国产成人午夜片在线观看高清观看| 国产一区不卡视频| 99在线精品视频| 色综合色综合色综合| 欧美日本在线观看| 日韩精品中文字幕在线一区| 国产午夜亚洲精品羞羞网站| 日韩毛片视频在线看| 亚洲国产成人av网| 日韩成人免费电影| 国产精品996| 在线免费观看成人短视频| 欧美日本韩国一区二区三区视频| 欧美xxxx老人做受| 中文子幕无线码一区tr| 亚洲影院在线观看| 狠狠色丁香九九婷婷综合五月 | 91精品国产综合久久精品| 亚洲国产成人高清精品| 自拍偷拍国产精品| 亚洲成人av电影| 久久超碰97人人做人人爱| 国产另类ts人妖一区二区| 色播五月激情综合网| 日韩欧美亚洲国产另类| 中文字幕日韩精品一区| 亚洲成人免费av| 国产99久久久久| 欧美日韩国产a| 欧美激情艳妇裸体舞| 亚洲一线二线三线久久久| 国产一区二区三区蝌蚪| 色先锋资源久久综合| 欧美sm极限捆绑bd| 亚洲免费观看在线观看| 久久国产生活片100| 日本电影欧美片| 国产亚洲一区二区三区在线观看| 亚洲自拍偷拍图区| 国产91精品久久久久久久网曝门| 欧美视频在线一区| 中文字幕成人av| 蜜臀va亚洲va欧美va天堂| 91免费国产在线| 久久久久国产精品麻豆| 日日摸夜夜添夜夜添国产精品| 99久久婷婷国产综合精品| 亚洲精品一区二区三区蜜桃下载| 一区二区三区免费网站| 高清视频一区二区| 欧美mv日韩mv国产网站| 日日欢夜夜爽一区| 欧美在线免费播放| 国产精品国产馆在线真实露脸 | 成人黄色av电影| 精品国内二区三区| 丝袜美腿亚洲一区二区图片| 色视频一区二区| 欧美精彩视频一区二区三区| 久久国产三级精品| 欧美一级在线观看| 同产精品九九九| 欧美色图天堂网| 亚洲美女视频在线观看| aaa亚洲精品| 国产午夜亚洲精品午夜鲁丝片| 久久99在线观看| 欧美一二三区在线观看| 婷婷久久综合九色国产成人 | av福利精品导航| 国产欧美日韩久久| 国产精品99久久久久久似苏梦涵 | 亚洲国产中文字幕| 欧美艳星brazzers| 一级精品视频在线观看宜春院| av亚洲精华国产精华| 日韩美女精品在线| 一本一道波多野结衣一区二区| 国产精品人妖ts系列视频| 国产成人精品免费一区二区| 久久久91精品国产一区二区三区| 麻豆成人免费电影| 26uuu国产电影一区二区| 狠狠色狠狠色合久久伊人| 精品免费国产一区二区三区四区| 麻豆精品国产传媒mv男同| www久久精品| 国产激情视频一区二区在线观看 | 亚洲一区二区三区在线看| 欧美亚洲自拍偷拍| 亚洲成人手机在线| 91精品国产aⅴ一区二区| 麻豆91免费看| 久久精品亚洲一区二区三区浴池| 国产激情精品久久久第一区二区| 欧美激情在线看| 色婷婷精品久久二区二区蜜臂av | 国产一区二区在线看| 国产日韩欧美a| 91玉足脚交白嫩脚丫在线播放| 亚洲欧美日韩国产综合| 欧美日本不卡视频| 激情伊人五月天久久综合| 国产色产综合色产在线视频| hitomi一区二区三区精品| 亚洲精品视频自拍| 日韩一区和二区| 国产剧情一区在线| 亚洲欧美日韩在线播放| 欧美日韩精品一区二区在线播放| 琪琪久久久久日韩精品| 国产欧美精品一区二区色综合朱莉| 91视频免费播放| 喷白浆一区二区| 日本一区二区三区电影| 在线影院国内精品| 成人午夜伦理影院| 亚洲女同ⅹxx女同tv| 日韩一区二区电影在线| 大白屁股一区二区视频| 亚洲国产美女搞黄色| 26uuu亚洲婷婷狠狠天堂| 99久久国产免费看| 青青草精品视频| 国产精品久久久久久久裸模| 欧美军同video69gay| 国产高清亚洲一区| 亚洲va在线va天堂| 欧美激情综合五月色丁香| 欧美精品 国产精品| 国产91丝袜在线观看| 亚洲电影欧美电影有声小说| 亚洲精品一区二区三区99| 欧美亚洲国产怡红院影院| 国产美女精品人人做人人爽| 亚洲一区二区三区国产| 亚洲国产精品国自产拍av| 欧美日韩精品欧美日韩精品一 | 亚洲国产欧美日韩另类综合 | 色婷婷久久综合| 国产精品中文字幕欧美| 亚洲成人av免费| **网站欧美大片在线观看| 精品捆绑美女sm三区| 欧美在线免费观看视频| 成人av网址在线| 国产精品影视网| 蜜臀av亚洲一区中文字幕| 亚洲精品免费一二三区|