Liberty Profile是否支持RMI调用

时间:2016-11-21 18:25:25

标签: spring-boot websphere-liberty

我想用Spring Boot(1.4.2)和Liberty profile beta调用MDM RMI服务。当我调用RMI服务时获取 javax.naming.NameNotFoundException:中间上下文不存在。但是,相同的应用程序在Websphere应用程序服务器8.5中运行良好。

Liberty配置文件不支持RMI调用,或者我缺少任何配置。我在我的server.xml中使用了以下功能。

webProfile-7.0

localConnector-1.0

1 个答案:

答案 0 :(得分:0)

我可以使用Liberty 16.0.0.3进行远程EJB RMI调用。

基本上我们需要在Liberty中启用某些EJB功能才能进行远程EJB调用。

从以下链接下载Liberty Full平台。

https://developer.ibm.com/wasdev/downloads/#asset/runtimes-wlp-javaee7

在server.xml中添加以下功能。默认情况下,这将是Full platform Liberty的一部分。

<feature>javaee-7.0</feature>
    <feature>ejbRemote-3.2</feature>
    <feature>ejbHome-3.2</feature>
    <feature>ejb-3.2</feature>
相关问题