锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲一区二区三区视频在线,久久精品人人做人人爽电影 ,激情av在线http://www.aygfsteel.com/SunRiver/category/15605.htmlTopics about J2EE XML AJAX SOA DB etc.zh-cnTue, 27 Feb 2007 17:56:31 GMTTue, 27 Feb 2007 17:56:31 GMT60SBS: implement a statefull session beanhttp://www.aygfsteel.com/SunRiver/archive/2006/09/24/71518.htmlSun RiverSun RiverSat, 23 Sep 2006 22:45:00 GMThttp://www.aygfsteel.com/SunRiver/archive/2006/09/24/71518.htmlhttp://www.aygfsteel.com/SunRiver/comments/71518.htmlhttp://www.aygfsteel.com/SunRiver/archive/2006/09/24/71518.html#Feedback0http://www.aygfsteel.com/SunRiver/comments/commentRss/71518.htmlhttp://www.aygfsteel.com/SunRiver/services/trackbacks/71518.htmlStep1: Definition of Remote Interface
聽聽聽聽聽聽聽聽聽聽聽聽聽 public interface Count extends EJBObject{
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽public int count() throws RomoteException;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }
Step2: Definition of Home Interface
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽public interface CountHome extends EJBHome {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Count create(int val) throws RemoteException, CreateException;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }
Step3: Definition of聽Bean Class
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Public class CountBean implements SessionBeam {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽public int val;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽public int count() {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽System.out.println("count()");
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 return ++val;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽}
聽聽聽聽聽聽聽聽聽聽聽聽聽聽 public void ejbCreate(int val) throws CreateException {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽this.val=val;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 System.out.println("ejbCreate()");
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 public void ejbRemove(){};
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 public void ejbActivate(){};
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 public void ejbPassivate(){};
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 public void setSessionContext(SessionContext ctx){};
聽聽聽聽聽聽聽聽聽 }

Step4: Definition of ejb-jar.xml

聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <ejb-jar>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <enterprise-beans>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <session>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <ejb-name>Count</ejb-name>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <home>CountHome</home>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <remote>Count</remote>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <ejb-class>CountBean</ejb-class>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <session-type>Stateful</session-type>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <transaction-type>Container</transaction-type>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 </session>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 </enterprise-beans>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</ejb-jar>聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽

聽聽聽聽聽聽聽聽



Sun River 2006-09-24 06:45 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 珲春市| 洛扎县| 顺义区| 新安县| 海晏县| 凭祥市| 榆社县| 松滋市| 新邵县| 温宿县| 嵩明县| 潢川县| 公安县| 和田县| 大同县| 西青区| 合阳县| 汉阴县| 新田县| 精河县| 西吉县| 京山县| 乐清市| 古交市| 永宁县| 德兴市| 乌恰县| 色达县| 扶余县| 乡城县| 敦化市| 宣汉县| 香港 | 章丘市| 和硕县| 桦川县| 安福县| 宁南县| 新营市| 勃利县| 双城市|