public void init(ServletContext context) throws EventHandlerException {
    String delegatorName = context.getInitParameter("entityDelegatorName");
    this.delegator = DelegatorFactory.getDelegator(delegatorName);
    this.dispatcher = GenericDispatcher.getLocalDispatcher(delegator.getDelegatorName(), delegator);
    this.setHandlerMapping(new ServiceRpcHandler());

    String extensionsEnabledString = context.getInitParameter("xmlrpc.enabledForExtensions");
    if (UtilValidate.isNotEmpty(extensionsEnabledString)) {
      enabledForExtensions = Boolean.valueOf(extensionsEnabledString);
    }
    String exceptionsEnabledString = context.getInitParameter("xmlrpc.enabledForExceptions");
    if (UtilValidate.isNotEmpty(exceptionsEnabledString)) {
      enabledForExceptions = Boolean.valueOf(exceptionsEnabledString);
    }
  }
示例#2
0
 /**
  * Initializes the LocalDispatcher for this service listener.
  *
  * @param dispatcher
  */
 protected AbstractJmsListener(ServiceDispatcher serviceDispatcher) {
   this.dispatcher =
       GenericDispatcher.getLocalDispatcher(
           "JMSDispatcher", null, null, this.getClass().getClassLoader(), serviceDispatcher);
 }