Java weblogic 12c-允许外部应用程序查找对应用程序进行版本化访问true不起作用

Java weblogic 12c-允许外部应用程序查找对应用程序进行版本化访问true不起作用,java,environment-variables,weblogic,jndi,Java,Environment Variables,Weblogic,Jndi,我正在尝试从客户端访问一个版本化的应用程序EJB远程查找,该客户端也已版本化 但我得到了: ####<Dec 3, 2017, 4:06:36,267 PM AEDT> <Warning> <JNDI> <macdev.tweedheadstorage.com.au> <OzsscEJBServer> <[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default

我正在尝试从客户端访问一个版本化的应用程序EJB远程查找,该客户端也已版本化

但我得到了:

####<Dec 3, 2017, 4:06:36,267 PM AEDT> <Warning> <JNDI> <macdev.tweedheadstorage.com.au> <OzsscEJBServer> <[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)' for workmanager: null@null@weblogic.kernel.System> <<anonymous>> <BEA1-01242AED82D5> <26bc5a01-6653-4fec-9d85-75a7ca35e240-0000714f> <1512277596267> <[severity-value: 16] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-050006> <An attempt was made to look up the versioned object "java:global.OzsscEJB.EJB.EmailFacadeEJB" from an external client or another application. This can potentially cause in-flight work of the application version not being tracked properly, and thus, be retired prematurely.> 
重建应用程序并将其重新部署到web逻辑服务器。它仍然不起作用

BEA-050006错误仍然抛出

我非常困惑,因为据我所知,允许外部查找是JNDI对象的服务器端属性,为什么oracle说用户可以在执行版本化对象的查找时,将weblogic.JNDI.WLContext.allow_external_lookup指定的JNDI环境属性设置为true


而且根本无法在服务器端设置JNDI环境属性,是吗?如果有人有这样的经验,请与我分享。

weblogic.jndi.WLContext.ALLOW\u EXTERNAL\u APP\u LOOKUP不是一个属性名,而是weblogic API的一个常量

看一看

使用字段值设置属性:

env.put("weblogic.jndi.allowExternalAppLookup", "true");
但这只会禁用BEA-050006警告,不会解决此上下文中的任何问题或错误

env.put("weblogic.jndi.allowExternalAppLookup", "true");