If I remembered right, you can return List<GenericEntity> or a single GenericEntity to rmi client, the client can call getAllFields method in GenericEntity to fetch entity data to a Map, and then you can use the data as you wish.
-----邮件原件----- 发件人: horst leitenmueller [mailto:horst.leitenmuel...@it4health.at] 发送时间: 2018年10月24日 17:04 收件人: dev@ofbiz.apache.org 主题: Re: Question on RMI in current version 17.12 hi Yes and inside the map you have a "org.apache.ofbiz.entity.util.EntityListIterator". Where you then need ALL server side classes to get the entries just an example for the service performFindParty It there a way to JUST get a Map with String, String/Integer/Whatever and NO ofbiz specific Classes ? Thank in advance On 2018/10/24 08:52:52, Shi Jinghai <h...@hotmail.com> wrote: > NOT true, as the fields in a GenericValue can fetched by a Map.> > > > > -----邮件原件-----> > > 发件人: horst leitenmueller [mailto:horst.leitenmuel...@it4health.at] > > > 发送时间: 2018年10月24日 16:49> > > 收件人: dev@ofbiz.apache.org> > > 主题: Re: Question on RMI in current version 17.12> > > > > SOLVED: my own reply to the Question> > > > > !!! NOT POSSIBLE !!! to use RMI inside of an JEE Application Server like > Wildfly > > > > > Why? its easy the dependency Tree of the classes (especially GenericValue ) > is needing ALL classes (including Services / DAO etc..) of the ofbiz server > side…> > > => you can’t create a small thin client with only containing the RMI part and > the transport objects…> > > > > Only a ofbiz.jar to ofbiz.jar is possible (or java clients wrapping all the > ofbiz.jar but I would not do that)….> > > > > Br> > > > > On 2018/10/23 08:08:38, horst leitenmueller <h....@it4health.at> wrote: > > > > Hi,> > > > > > > > > I have a question on accessing the Backend of Ofbiz via RMI there have been > > a example client which was integrated in a single jar of ofbiz> > > > > > > > > But I want to integrate it in an application server (at the moment I get an > > exception of missing file java.lang.NoClassDefFoundError: > > org/apache/juli/logging/LogFactory)> > > > > > > > > It seems that something is trying to do more than I want that it does…> > > > > > > > > Question 1: Is there / was there a thin client jar file to access it from > > the outside ?> > > > > Question 2: IF Question 1 is not true how can I extract it on the current > > project structure ? The classes are splittet over all framework parts and > > I’m not a gradle specialist to get this flying…> > > > > > > > > Perhaps somebody can help or explain me.. (btw maven not a problem same > > with ant) > > > > > > > > > Br horst> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------ IT4Health.at Ing. DI Horst Leitenmueller Sperlstr. 11 4040 Linz tel.: +43 650 2042702 email: horst.leitenmuel...@it4health.at ------------------------------------------------------