Package org.apache.ofbiz.service.rmi
Class ExampleRemoteClient
- java.lang.Object
-
- org.apache.ofbiz.service.rmi.ExampleRemoteClient
-
public class ExampleRemoteClient extends java.lang.Object
An example of how to remotely access the Service Engine's RemoteDispatcher. The following files from OFBiz need to be on the client's classpath: cache.properties debug.properties jsse.properties ofbiz-base.jar ofbiz-service-rmi.jar (copied and renamed from "ofbiz/framework/service/build/lib/ofbiz-service-rmi.raj" from an OFBiz build) The following third-party libraries (can be found in OFBiz) also need to be on the client's classpath: commons-collections.jar log4j.jar Copy the truststore file framework/base/config/ofbizrmi-truststore.jks to the client Run the client specifying the path to the client truststore: -Djavax.net.ssl.trustStore=ofbizrmi-truststore.jks
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
protected RemoteDispatcher
rd
protected static java.lang.String
RMI_URL
-
Constructor Summary
Constructors Constructor Description ExampleRemoteClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
java.util.Map<java.lang.String,java.lang.Object>
runTestService()
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
RMI_URL
protected static final java.lang.String RMI_URL
- See Also:
- Constant Field Values
-
rd
protected RemoteDispatcher rd
-
-
Method Detail
-
runTestService
public java.util.Map<java.lang.String,java.lang.Object> runTestService() throws java.rmi.RemoteException, GenericServiceException
- Throws:
java.rmi.RemoteException
GenericServiceException
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-