-
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
-
bgb
a file for running and debuging gamebox
- 2019-06-18 20:40:53下载
- 积分:1
-
引定位代码
说明: jQuery顶部固定标题索引定位代码是一款仿百度知道文章内容页面滚动顶部固定标题索引定位效果代码。(JQuery Top Fixed Title Index Location Code is a code that imitates Baidu Knows Article Content Page Scroll Top Fixed Title Index Location Effect Code.)
- 2019-03-29 15:31:12下载
- 积分:1
-
VB不使用控件操作摄像头程序
VB不使用控件操作摄像头程序,无控制的摄像头控制程序,虽然功能不算强大,但至少可以读取摄像头中的视频显示出来,做为一个简单的摄像头影像读取程序还是不错的。
- 2022-08-18 19:30:54下载
- 积分:1
-
单脉冲相位和差测角 - 副本
实现二维空间单脉冲和差测角,可运行没有错误,给大家提供雷达测角方法参考(Monopulse sum difference angle measurement)
- 2021-04-19 08:58:51下载
- 积分:1
-
调用TSP文件
说明: 用于调用TSPLIB数据集中的程序,可根据需要选择(The program used to invoke the TSPLIB dataset can be selected as needed)
- 2020-06-16 10:22:07下载
- 积分:1
-
人事管理系统 ,一个简单的用delphi制作的人事管理系统。对初学者有很大的帮助...
人事管理系统 ,一个简单的用delphi制作的人事管理系统。对初学者有很大的帮助
-Personnel Management System, a simple production with delphi personnel management system. For beginners will be very helpful
- 2023-02-10 10:20:04下载
- 积分:1
-
用c语言编写的一个动画演示!文件为免费的,直接解压,在tc环境下运行!...
用c语言编写的一个动画演示!文件为免费的,直接解压,在tc环境下运行!-using a language of animation demo! Documents for free, directly extracting the environment tc run!
- 2022-07-24 19:41:14下载
- 积分:1
-
完全使用ADSI实现域管理的工具.好用,但没有源码.
完全使用ADSI实现域管理的工具.好用,但没有源码.-Full use ADSI to achieve the domain management tools. Easy to use, but no source code.
- 2022-11-04 14:45:07下载
- 积分:1
-
1-批量视频去水印工具
批量去水印第三个 自行下载解压就可以使用了(The third self-downloading decompression can be used for batch de-watermarking.)
- 2019-02-21 21:30:54下载
- 积分:1