You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Cimballi <ci...@cimballi.net> on 2009/04/01 18:10:51 UTC
Re: About OFBiz and RMI
In fact I was wrong, you can use the default RMISocketFactory from the JDK
without changing the code, you just have to comment the properties in the
"ofbiz-trunk/framework/base/config/ofbiz-containers.xml" file :
<!-- RMI Service Dispatcher -->
<container name="rmi-dispatcher"
class="org.ofbiz.service.rmi.RmiServiceContainer">
<property name="bound-name" value="RMIDispatcher"/>
<property name="bound-host" value="127.0.0.1"/>
<property name="bound-port" value="1099"/>
<property name="delegator-name" value="default"/>
<!--
<property name="client-factory"
value="org.ofbiz.service.rmi.socket.ssl.SSLClientSocketFactory"/>
<property name="server-factory"
value="org.ofbiz.service.rmi.socket.ssl.SSLServerSocketFactory"/>
<property name="ssl-keystore"
value="framework/base/config/ofbizrmi.jks"/>
<property name="ssl-keystore-type" value="JKS"/>
<property name="ssl-keystore-pass" value="changeit"/>
<property name="ssl-keystore-alias" value="rmissl"/>
<property name="ssl-client-auth" value="false"/>
-->
</container>
Cimballi
2009/3/30 Cimballi <ci...@gmail.com>
> Hi,
>
> Continuing my tests with RMI, I wrote a simple façade service class that
> receives my RMI calls and then calls a standard OFBiz service. For now it
> only returns an empty Map.
>
> I am now facing a performance problem : a single call to the my new service
> which then calls the performFindList method on Party objects, but returning
> an empty Map to the client, took 8 seconds to run.
>
> As I said in my previous email, I am using the
> CompressionClientSocketFactory.
>
> If I change the code to the the default JDK implementation (jdk1.5.0_15) :
> public RemoteDispatcherImpl(LocalDispatcher dispatcher,
> RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws
> RemoteException {
> // super(0, csf, ssf);
> super();
> this.dispatcher = dispatcher;
> }
>
> Then, the performance are really good, the call is made in 30 ms ! So, I
> have several questions :
>
> Do you know about any performance problem with the
> CompressionClientSocketFactory implementation ?
> Do you know about any performance issue with the SSL implementation
> provided in OFBiz ?
> And can you make an update to the code so that we can use the default JDK
> implementation without having to change the code ?
>
> Thanks,
>
> Cimballi
>
>