applet作为UI页面,数据处理层使用EJB3,这个方案是否可行?

问题描述

applet的init函数如下:publicvoidinit(){super.init()try{StringjndiPath="ManageIndexDAOBean/remote";Propertiesprops=newProperties();/*JBOSS服务器*/props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");props.setProperty("java.naming.provider.url","localhost:1099");props.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");InitialContextctx=newInitialContext(props);ManageIndexDAOdao=(ManageIndexDAO)ctx.lookup(jndiPath);if(dao!=null){}}catch(NamingExceptione){e.printStackTrace();}}调用Applet的html内容如下:<appletcodebase="."code="cn.hz.epower.applet.ManageIndexApplet.class"name="ManageIndexApplet"archive="Client/jbossall-client.jar,Client/jboss-ejb3-client.jar,Client/jboss-aop-jdk50-client.jar,Client/jboss-aspect-jdk50-client.jar,Client/PlanStatManageLocal.jar"width="520"height="240"></applet></body>

解决方案

解决方案二:
最后的APPLET的JDK控制面板提示出错信息如下:security:propertypackage.accessvaluesun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.security:propertypackage.accessnewvaluesun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javawssecurity:propertypackage.accessvaluesun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javawssecurity:propertypackage.accessnewvaluesun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploysecurity:propertypackage.accessvaluesun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploysecurity:propertypackage.accessnewvaluesun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy,com.sun.jnlpsecurity:propertypackage.definitionvaluenullsecurity:propertypackage.definitionnewvaluecom.sun.javawssecurity:propertypackage.definitionvaluecom.sun.javawssecurity:propertypackage.definitionnewvaluecom.sun.javaws,com.sun.deploysecurity:propertypackage.definitionvaluecom.sun.javaws,com.sun.deploysecurity:propertypackage.definitionnewvaluecom.sun.javaws,com.sun.deploy,com.sun.jnlpsecurity:propertypackage.accessvaluesun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy,com.sun.jnlpsecurity:propertypackage.accessnewvaluesun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jsssecurity:propertypackage.definitionvaluecom.sun.javaws,com.sun.deploy,com.sun.jnlpsecurity:propertypackage.definitionnewvaluecom.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jssbasic:已添加进度监听程序:sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@19616c7network:没有与未签名的JAR文件有关的证书信息:http://localhost:9090/PlanStatManageWeb/Client/jbossall-client.jarnetwork:找到了高速缓存项[url:http://localhost:9090/PlanStatManageWeb/Client/jbossall-client.jar,版本:null]network:正在使用代理DIRECT连接http://localhost:9090/PlanStatManageWeb/Client/jbossall-client.jarnetwork:CleanupThreadused68317usnetwork:正在使用代理DIRECT连接http://localhost:9090/network:http://localhost:9090/PlanStatManageWeb/Client/jbossall-client.jar的响应代码:304network:http://localhost:9090/PlanStatManageWeb/Client/jbossall-client.jar的编码:nullnetwork:断开与http://localhost:9090/PlanStatManageWeb/Client/jbossall-client.jar的连接network:没有与未签名的JAR文件有关的证书信息:http://localhost:9090/PlanStatManageWeb/Client/jboss-ejb3-client.jarnetwork:找到了高速缓存项[url:http://localhost:9090/PlanStatManageWeb/Client/jboss-ejb3-client.jar,版本:null]network:CleanupThreadused4usnetwork:正在使用代理DIRECT连接http://localhost:9090/PlanStatManageWeb/Client/jboss-ejb3-client.jarnetwork:http://localhost:9090/PlanStatManageWeb/Client/jboss-ejb3-client.jar的响应代码:304network:http://localhost:9090/PlanStatManageWeb/Client/jboss-ejb3-client.jar的编码:nullnetwork:断开与http://localhost:9090/PlanStatManageWeb/Client/jboss-ejb3-client.jar的连接network:没有与未签名的JAR文件有关的证书信息:http://localhost:9090/PlanStatManageWeb/Client/jboss-aop-jdk50-client.jarnetwork:找到了高速缓存项[url:http://localhost:9090/PlanStatManageWeb/Client/jboss-aop-jdk50-client.jar,版本:null]network:正在使用代理DIRECT连接http://localhost:9090/PlanStatManageWeb/Client/jboss-aop-jdk50-client.jarnetwork:http://localhost:9090/PlanStatManageWeb/Client/jboss-aop-jdk50-client.jar的响应代码:304network:http://localhost:9090/PlanStatManageWeb/Client/jboss-aop-jdk50-client.jar的编码:nullnetwork:断开与http://localhost:9090/PlanStatManageWeb/Client/jboss-aop-jdk50-client.jar的连接network:CleanupThreadused3usnetwork:CleanupThreadused3usnetwork:CleanupThreadused3usnetwork:CleanupThreadused4usnetwork:没有与未签名的JAR文件有关的证书信息:http://localhost:9090/PlanStatManageWeb/Client/jboss-aspect-jdk50-client.jarnetwork:找到了高速缓存项[url:http://localhost:9090/PlanStatManageWeb/Client/jboss-aspect-jdk50-client.jar,版本:null]network:正在使用代理DIRECT连接http://localhost:9090/PlanStatManageWeb/Client/jboss-aspect-jdk50-client.jarnetwork:http://localhost:9090/PlanStatManageWeb/Client/jboss-aspect-jdk50-client.jar的响应代码:304network:http://localhost:9090/PlanStatManageWeb/Client/jboss-aspect-jdk50-client.jar的编码:nullnetwork:断开与http://localhost:9090/PlanStatManageWeb/Client/jboss-aspect-jdk50-client.jar的连接network:没有与未签名的JAR文件有关的证书信息:http://localhost:9090/PlanStatManageWeb/Client/PlanStatManageLocal.jarnetwork:找到了高速缓存项[url:http://localhost:9090/PlanStatManageWeb/Client/PlanStatManageLocal.jar,版本:null]network:CleanupThreadused3usnetwork:正在使用代理DIRECT连接http://localhost:9090/PlanStatManageWeb/Client/PlanStatManageLocal.jarnetwork:http://localhost:9090/PlanStatManageWeb/Client/PlanStatManageLocal.jar的响应代码:304network:http://localhost:9090/PlanStatManageWeb/Client/PlanStatManageLocal.jar的编码:nullnetwork:断开与http://localhost:9090/PlanStatManageWeb/Client/PlanStatManageLocal.jar的连接network:找到了高速缓存项[url:http://localhost:9090/PlanStatManageWeb/cn/hz/epower/applet/ManageIndexApplet.class,版本:null]network:CleanupThreadused3usnetwork:正在使用代理DIRECT连接http://localhost:9090/PlanStatManageWeb/cn/hz/epower/applet/ManageIndexApplet.classnetwork:http://localhost:9090/PlanStatManageWeb/cn/hz/epower/applet/ManageIndexApplet.class的响应代码:304network:http://localhost:9090/PlanStatManageWeb/cn/hz/epower/applet/ManageIndexApplet.class的编码:nullnetwork:断开与http://localhost:9090/PlanStatManageWeb/cn/hz/epower/applet/ManageIndexApplet.class的连接basic:小程序已载入。basic:Appletresizedandaddedtoparentcontainerbasic:PERF:AppletExecutionRunnable-applet.init()BEGIN;jvmLaunchdt364241us,pluginInitdt563531us,TotalTime:927772us
解决方案三:
network:正在使用代理DIRECT连接http://localhost:9090/PlanStatManageWeb/jndi.propertiesnetwork:正在使用代理DIRECT连接http://localhost:1099/network:未找到高速缓存项[url:http://IBM-PC/crossdomain.xml,版本:null]network:正在使用代理DIRECT连接http://IBM-PC/crossdomain.xmlnetwork:正在使用代理DIRECT连接http://IBM-PC:80/java.security.PrivilegedActionException:java.net.ConnectException:Connectionrefused:connectatjava.security.AccessController.doPrivileged(NativeMethod)atcom.sun.deploy.net.CrossDomainXML.check(UnknownSource)atcom.sun.deploy.net.CrossDomainXML.check(UnknownSource)atsun.plugin2.applet.Applet2SecurityManager.checkConnect(UnknownSource)atjava.net.InetAddress.getLocalHost(UnknownSource)atsun.rmi.transport.tcp.TCPEndpoint.<clinit>(UnknownSource)atsun.rmi.transport.LiveRef.read(UnknownSource)atsun.rmi.server.UnicastRef2.readExternal(UnknownSource)atjava.rmi.server.RemoteObject.readObject(UnknownSource)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atjava.io.ObjectStreamClass.invokeReadObject(UnknownSource)atjava.io.ObjectInputStream.readSerialData(UnknownSource)atjava.io.ObjectInputStream.readOrdinaryObject(UnknownSource)atjava.io.ObjectInputStream.readObject0(UnknownSource)atjava.io.ObjectInputStream.readObject(UnknownSource)atjava.rmi.MarshalledObject.get(UnknownSource)atorg.jnp.interfaces.NamingContext.getServer(NamingContext.java:252)atorg.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1387)atorg.jnp.interfaces.NamingContext.lookup(NamingContext.java:596)atorg.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)atjavax.naming.InitialContext.lookup(UnknownSource)atcn.hz.epower.applet.ManageIndexApplet.init(ManageIndexApplet.java:249)atsun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(UnknownSource)atjava.lang.Thread.run(UnknownSource)Causedby:java.net.ConnectException:Connectionrefused:connectatjava.net.PlainSocketImpl.socketConnect(NativeMethod)atjava.net.PlainSocketImpl.doConnect(UnknownSource)atjava.net.PlainSocketImpl.connectToAddress(UnknownSource)atjava.net.PlainSocketImpl.connect(UnknownSource)atjava.net.SocksSocketImpl.connect(UnknownSource)atjava.net.Socket.connect(UnknownSource)atsun.net.NetworkClient.doConnect(UnknownSource)atsun.net.www.http.HttpClient.openServer(UnknownSource)atsun.net.www.http.HttpClient.openServer(UnknownSource)atsun.net.www.http.HttpClient.<init>(UnknownSource)atsun.net.www.http.HttpClient.New(UnknownSource)atsun.net.www.http.HttpClient.New(UnknownSource)atsun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(UnknownSource)atsun.net.www.protocol.http.HttpURLConnection.plainConnect(UnknownSource)atsun.net.www.protocol.http.HttpURLConnection.connect(UnknownSource)atcom.sun.deploy.net.CrossDomainXML$2.run(UnknownSource)...27morenetwork:正在使用代理DIRECT连接http://127.0.0.1:1098/basic:已删除进度监听程序:sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@19616c7Exceptioninthread"threadapplet-cn.hz.epower.applet.ManageIndexApplet.class-1"java.lang.ExceptionInInitializerErroratorg.jboss.remoting.InvokerLocator.<clinit>(InvokerLocator.java:78)atsun.misc.Unsafe.ensureClassInitialized(NativeMethod)atsun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnknownSource)atsun.reflect.ReflectionFactory.newFieldAccessor(UnknownSource)atjava.lang.reflect.Field.acquireFieldAccessor(UnknownSource)atjava.lang.reflect.Field.getFieldAccessor(UnknownSource)atjava.lang.reflect.Field.getLong(UnknownSource)atjava.io.ObjectStreamClass.getDeclaredSUID(UnknownSource)atjava.io.ObjectStreamClass.access$700(UnknownSource)atjava.io.ObjectStreamClass$2.run(UnknownSource)atjava.security.AccessController.doPrivileged(NativeMethod)atjava.io.ObjectStreamClass.<init>(UnknownSource)atjava.io.ObjectStreamClass.lookup(UnknownSource)atjava.io.ObjectStreamClass.initNonProxy(UnknownSource)atjava.io.ObjectInputStream.readNonProxyDesc(UnknownSource)atjava.io.ObjectInputStream.readClassDesc(UnknownSource)atjava.io.ObjectInputStream.readOrdinaryObject(UnknownSource)atjava.io.ObjectInputStream.readObject0(UnknownSource)atjava.io.ObjectInputStream.defaultReadFields(UnknownSource)atjava.io.ObjectInputStream.readSerialData(UnknownSource)atjava.io.ObjectInputStream.readOrdinaryObject(UnknownSource)atjava.io.ObjectInputStream.readObject0(UnknownSource)atjava.io.ObjectInputStream.defaultReadFields(UnknownSource)atjava.io.ObjectInputStream.readSerialData(UnknownSource)atjava.io.ObjectInputStream.readOrdinaryObject(UnknownSource)atjava.io.ObjectInputStream.readObject0(UnknownSource)atjava.io.ObjectInputStream.readObject(UnknownSource)atjava.rmi.MarshalledObject.get(UnknownSource)atorg.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)atorg.jnp.interfaces.NamingContext.lookup(NamingContext.java:654)atorg.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)atjavax.naming.InitialContext.lookup(UnknownSource)atcn.hz.epower.applet.ManageIndexApplet.init(ManageIndexApplet.java:249)atsun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(UnknownSource)atjava.lang.Thread.run(UnknownSource)Causedby:java.security.AccessControlException:accessdenied(java.util.PropertyPermissionjboss.remoting.pre_2_0_compatibleread)atjava.security.AccessControlContext.checkPermission(UnknownSource)atjava.security.AccessController.checkPermission(UnknownSource)atjava.lang.SecurityManager.checkPermission(UnknownSource)atjava.lang.SecurityManager.checkPropertyAccess(UnknownSource)atjava.lang.System.getProperty(UnknownSource)atorg.jboss.remoting.Version.<clinit>(Version.java:51)...35morenetwork:正在使用代理DIRECT连接http://127.0.0.1:1098/最后说明:1、EJB3类没有问题,在客户机器上测试通过。2、部署EJB3的服务器采用jboss-4.2.1.GA苦恼了我好多天了,不知道有没有高手能帮我解决一下,或者提供给我一个思路,对回贴的人不胜感激
解决方案四:
怎么没人回答啊,郁闷中
解决方案五:
network:正在使用代理DIRECT连接http://localhost:9090/PlanStatManageWeb/jndi.propertiesnetwork:正在使用代理DIRECT连接http://localhost:1099/network:未找到高速缓存项[url:http://IBM-PC/crossdomain.xml,版本:null]network:正在使用代理DIRECT连接http://IBM-PC/crossdomain.xmlnetwork:正在使用代理DIRECT连接http://IBM-PC:80/java.security.PrivilegedActionException:java.net.ConnectException:Connectionrefused:connect不用applet不行吗?直接用jsp或者html
解决方案六:
applet是在用户的jre上跑的,访问EJB组件只能用远程方式,性能上恐怕会比jsp/servlet差很多。
解决方案七:
RMI似乎可以实现的
解决方案八:
UPRMI
解决方案九:
该回复于2009-05-31 17:35:36被版主删除

时间: 2024-10-21 23:03:17

applet作为UI页面,数据处理层使用EJB3,这个方案是否可行?的相关文章

UI页面刷新问题

问题描述 UI页面刷新问题 Tabbar上四个页面A/B/C/D ,首页进入A页面,直接点击进入其他页面,等首页数据获取完成后,app自动跳转到A页面,请问这是什么情况. 解决方案 http://zhidao.baidu.com/link?url=9SQbt4jj-nsaAW6ZWW7uLyqwqIAEMqFlwyjS00tbovyyQWSM43tpLLbFzmw62ydGQ0N-foEIDytXHhE-KVXoi_ 解决方案二: 页面刷新问题 解决方案三: 问题解决了,代码写的有问题

java html applet-嵌入applet的html页面,不能运行,求大神解答!!

问题描述 嵌入applet的html页面,不能运行,求大神解答!! 为什么双击html文件,浏览器运行时,总是显示一张黑图,提示缺少插件 解决方案 米有人吗??? 解决方案二: 米有人吗???

使用jQuery制作Web页面遮罩层插件的实例教程_jquery

在网页上经常遇到需要等待很久的操作,比如导出报表等.为了预防用户点击其他操作或者多次点击同个功能,需要用遮罩层把页面或者操作区盖住,防止用户进行下一步操作,同时可以提高界面友好度,让用户知道操作正在执行. $.fn.extend({ /** * 给元素添加遮罩层 * @param message {String} [可选]遮罩层显示内容 */ mask: function (message) { var $target = this, fixed = false, targetStatic =

详解Grunt插件之LiveReload实现页面自动刷新(两种方案)_php实例

方案一:grunt-livereload + Chrome Plug-in 优点:安装.配置简单方便. 缺点:需要配合指定的浏览器插件(Firefox也有相关插件,IE么你懂的). 1. 需要安装2个插接件:grunt-contrib-watch.connect-livereload 执行命令: 复制代码 代码如下: npm install --save-dev grunt-contrib-watch connect-livereload 2. 安装浏览器插件:Chrome LiveReload

Dreamweaver MX 2004高级技巧(9)在居中页面使用层

dreamweaver|高级|技巧|页面 在居中页面中使用层,最大的问题就是层的定位问题,当改变显示器分辨率后,层相对其它居中元素就会改变位置.本文介绍层相对其它居中元素不会错位的方法. 层的绝对定位和相对定位 层的绝对定位代码: <div id="Layer1" style="position:absolute; left:45px; top:25px; width:400px; height:155px; z-index:1"></div>

Dreamweaver在居中页面使用层

  在居中页面中使用层,最大的问题就是层的定位问题,当改变显示器分辨率后,层相对其它居中元素就会改变位置.本文介绍层相对其它居中元素不会错位的方法. 层的绝对定位和相对定位 层的绝对定位代码: <div id="Layer1" style="position:absolute; left:45px; top:25px; width:400px; height:155px; z-index:1"></div> 层的相对定位代码: <div

关于applet嵌入jsp页面后applet图片显示的问题

问题描述 今天写了一个applet画图工具(当用户访问该页面的时候,applet会首先显示一张服务器端的图片),嵌入到jsp页面后部署到服务器,但是当自己通过浏览器访问该页面的时候发现该applet不能显示预期的图片,请问是什么原因? 解决方案 解决方案二:各位大侠帮帮忙啊急用毕设thanks解决方案三:该回复于2011-03-11 16:21:58被版主删除

applet 在JSP 页面中怎么失去焦点

问题描述 大侠们,jsp页面中有一个applet,当jsp页面初始化时该applet自动获取了页面的焦点,现在怎么把焦点强制返回给页面啊?

Spark监视UI页面表示内容正常吗?感觉应该有问,拜托各位帮我看看。

问题描述 Spark监视UI页面上,出现好多SQLXXX,这个正常吗?请各位帮我看看,谢谢了!下面是我的代码,就是从Kafka里拉取数据,然后转换成DateFrame后存储到elasticsearch中,似乎只要是进入foreachRDD里面一回,就会在SparkUI页面上产生一个SQL监视对象,是不是我代码写法有问题vallogs=KafkaUtils.createDirectStream[String,String,StringDecoder,StringDecoder](ssc,kafka