登录
首页 » 其他 » Java EJB简单例子

Java EJB简单例子

于 2022-07-20 发布 文件大小:2.49 kB
0 132
下载积分: 2 下载次数: 1

代码说明:

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());   }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 7219驱动程序 中包括7219的个寄存器地址功能及用法
    7219驱动程序 其中包括7219的个寄存器地址功能及用法-7219 it can make 7219 do it can do
    2022-04-14 13:34:44下载
    积分:1
  • 局域网视频监控系统,本系统属于小型的局域网监控系统,可以对某一台计算机进行屏幕监控,本系统主要实现以下功能:  系统采用人机交互的方式,界面...
    局域网视频监控系统,本系统属于小型的局域网监控系统,可以对某一台计算机进行屏幕监控,本系统主要实现以下功能:  系统采用人机交互的方式,界面美观友好。  屏幕信息需要时时显示,网络延时不能大于1秒。  服务器端可以随时运行,只要客户端运行,就能够显示屏幕信息。  系统运行时占用内存不能大于10MB,以免影响系统性能。  客户端运行时需要隐藏显示窗口,起其感觉不到在运行。 -The system belong to a small local area network monitoring system can be carried out on a computer screen monitoring, implementation of this system is mainly the following functions: Human-Computer Interaction  system the way attractive and friendly interface.  screen display information required from time to time, the network delay should not exceed one second.  can run server-side, as long as the client is running, information on the display screen can.  system memory run-time should not exceed 10MB, so as not to affect system performance.  necessary run-time client to hide the window, starting at less than the feeling of running.
    2022-02-26 05:06:51下载
    积分:1
  • Js控制图片的滑动移动动画
    Js控制图片的滑动移动动画,在鼠标放在DIV上的时候,该DIV滑动展开,方向自定义,DIV中包括图片信息,演示中去掉了图片,不过已经实现了DIV 的滑动,只要在DIV中的对象都可以在JavaScript的作用下滑动展开。
    2022-01-25 19:44:29下载
    积分:1
  • 手机游戏ballpop,Catcher,LittleB
    手机游戏ballpop,Catcher,LittleB-mobile games ballpop, Catcher, LittleB
    2022-07-13 13:19:27下载
    积分:1
  • 在TC3.0下运行可以成功  从C里面改来的
    在TC3.0下运行可以成功  从C里面改来的-in TC3.0 can successfully run from C to the inside reform
    2022-02-28 15:54:38下载
    积分:1
  • PHP微信接口插件 for phpcms v20140808
    phpcms的微信接口插件 ,安装说明:   1、将upload文件里文件上传至网站根目录   2、进入后台-模块-微信,点击安装   3、刷新页面后。就可以看到后台导航上有微信的菜单了   使用方法:网站后台-微信-开发模式里的URL和token 复制到微信公众号里的开发者中心。   2014年8月8日更新:   -PHPCMS 对接微信   -微信关注回复   -微信自定义回复
    2022-01-26 01:07:53下载
    积分:1
  • 配电变XIANSHI CHENGXU !下拉界面,事件查询,控制操作,很好的
    配电变XIANSHI CHENGXU !下拉界面,事件查询,控制操作,很好的-Variable distribution XIANSHI CHENGXU! Drop interface, the incident inquiries, control operation, very good
    2022-04-25 18:24:14下载
    积分:1
  • 一个不错的小游戏 有代码 可以用WTK2.0运行 希望大家 能 喜欢
    一个不错的小游戏 有代码 可以用WTK2.0运行 希望大家 能 喜欢-A good game has the code can be used to run WTK2.0 hope that we can love
    2022-08-05 20:05:06下载
    积分:1
  • Golf mobile phone game, j2me mobile game code, including picture material and so...
    高尔夫手机游戏,j2me手机游戏代码,内含图片素材和源代码文件-Golf mobile phone game, j2me mobile game code, including picture material and source code files
    2022-01-25 23:56:57下载
    积分:1
  • Delphi在Image控件中显示文字
    Delphi在Image控件显示和绘制文字,如何在控件中绘制和显示文字呢?请参考这个源码吧。。
    2022-02-05 19:35:45下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载