Is Crispy for the client, for the server or both?

Crispy is precedenced for the client.

The server must now Crispy when:

  • Crispy extend the service technology (for example, by XML-RPC or RMI (dynamic)).
  • By the REST (REpresentational State Transfer) implementation.

What is a service?

A service has two parts: a interface and a implementation from the interface.


public interface Calculator {
	public int add(int a, int b);
	public int subtract(int a, int b);
public class CalculatorImpl implements Calculator {
	public int add(int a, int b) { return a + b; }
	public int subtract(int a, int b) { return a - b; }

What is a service technology?

A service technology is the kind to communicate from the client to the server


  • XML-RPC,
  • RMI,
  • WebService,
  • REST
  • or other

How can I set a Proxy?

Proxy host and port:.

// host        
System.setProperty("http.proxyHost", proxy);
// port
System.setProperty("http.proxyPort", port);        

Question to Crispy Framework

Which properties are set with the java.util.Properties and which about the ServiceManager?

All properties to the Service technology must set with properties and the other properties can you set. For example: Property.EXECUTER_CLASS or Property.REMOTE_URL_AND_PORT.

Properties to extend Crispy, can set about the ServiceManager. For example: Property.INTERCEPTOR_CLASS or Property.MODIFIER_CLASS.

// with properties
Properties prop = new Properties();
// this can you set in properties and with the ServiceManager
prop.put(Property.INTERCEPTOR_CLASS, StopWatchInterceptor.class.getName());
prop.put(Property.REMOTE_URL_AND_PORT, "http://localhost:9090");
prop.put(Property.EXECUTOR_CLASS, XmlRpcExecutor.class.getName());

// with ServiceManager
ServiceManager serviceManager = new ServiceManager(prop);
serviceManager.setModifier(new MyModifier());
serviceManager.addInterceptor(new MyInterceptor ());


How can I activate the logger?

By problems you can activate the logger, to get more details about the working of Crispy. It are two possibilities. You can turn on the jdk logger API with:

This class initiate the jdk logger with the properties This file is in the package net.sf.crispy.util.

The second possibility is the apache Log4J logging API. This API can you activate with:

        // replace ... with the configuration property file