org.ofbiz.service.rmi
Class ExampleRemoteClient

java.lang.Object
  extended by org.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 javolution.jar jdbm.jar log4j.jar


Field Summary
protected  RemoteDispatcher rd
           
protected static java.lang.String RMI_URL
           
 
Constructor Summary
ExampleRemoteClient()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 java.util.Map<java.lang.String,java.lang.Object> runTestService()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RMI_URL

protected static final java.lang.String RMI_URL
See Also:
Constant Field Values

rd

protected RemoteDispatcher rd
Constructor Detail

ExampleRemoteClient

public ExampleRemoteClient()
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