-
Java EJB简单例子
Java EJB简单例子,这是HelloWorldBean的Home接口,它是EJB对象的生成库,无状态会话(将在下一个实例中具体讲解)Bean,这个接口是客户端与EJB对象相互作用的中间途径,通过Client触发调用Bean方法:
try {
//取得初始化属性jndiContext,它是连接JNDI树的起始点
InitialContext jndiContext = new InitialContext(properties);
//取得Home对象的引用
Object ref = jndiContext.lookup("HelloWorldHome");
HelloWorldHome home = (HelloWorldHome)
PortableRemoteObject.narrow (ref, HelloWorldHome.class);
//用EJB生成库Home生成EJB对象
HelloWorld hello= home.create();
//调用EJB对象方法printHelloWorld(),EJB对象把调用委派给Bean
System.out.println (hello.printHelloWorld());
}
- 2022-07-20 22:16:54下载
- 积分:1
-
像屏保一样VB穿越星空特效代码
三维星空演示,像Windows屏幕保护一样的穿越星空特效,繁星点点从远处飞来,一颗接一颗,有种纵深的空间感。
- 2022-07-04 05:16:18下载
- 积分:1
-
代鬼批量订单
生成批订单
- 2022-01-25 14:27:40下载
- 积分:1
-
80216_xieyijiedu
详细介绍了802.16的协议,这部分是MAC层,其余正在下载中(details of the 802.16 of the Agreement, which is part of the MAC layer, and the rest were Download)
- 2006-08-03 07:47:57下载
- 积分:1
-
19107matlab自编svm
说明: 利用原算法adaboost弱学习器基于决策树桩的方法对样本数据进行多分类(Multi-classification of sample data based on decision tree stump using AdaBoost weak learner)
- 2020-10-23 09:47:22下载
- 积分:1
-
NIPS simulation tutorial
NIPS simulation tutorial-NIPS simulation tutorial.............................
- 2022-11-08 01:55:03下载
- 积分:1
-
PHP的电话簿
php phonebook
used php and mysql
- 2022-08-18 11:50:45下载
- 积分:1
-
Labwindows/CVI方面的例子程序实在太少了,放上一点给大家共享
Labwindows/CVI方面的例子程序实在太少了,放上一点给大家共享-Labwindows/CVI example of the procedure is too small, place in 1:00 to share! !
- 2022-03-24 09:36:44下载
- 积分:1
-
总结SIP的核心内容和研究工作的进展,对开发有借鉴作用
总结SIP的核心内容和研究工作的进展,对开发有借鉴作用-summary SIP is the core content and research work in progress, the development of a reference
- 2022-04-15 20:52:05下载
- 积分:1
-
DSDPV1-03
PROFIBUS – DP的DP即Decentralized Periphery。它具有高速低成本,用于设备级控制系统与分散式I/O的通信,DP源码程序(It has high speed and low cost. It is used for communication between device-level control system and distributed I/O, DP source code program.)
- 2019-05-27 15:51:43下载
- 积分:1