Author: jacopoc
Date: Fri Oct 30 01:10:25 2009 New Revision: 831176 URL: http://svn.apache.org/viewvc?rev=831176&view=rev Log: Added the ability to set the exportAll flag in the RemoteDispatcher from a configuration file. Added: ofbiz/trunk/framework/service/config/service.properties (with props) Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/rmi/RemoteDispatcherImpl.java Added: ofbiz/trunk/framework/service/config/service.properties URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/config/service.properties?rev=831176&view=auto ============================================================================== --- ofbiz/trunk/framework/service/config/service.properties (added) +++ ofbiz/trunk/framework/service/config/service.properties Fri Oct 30 01:10:25 2009 @@ -0,0 +1,21 @@ +############################################################################### +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +############################################################################### + +# flag to automatically export all services: same of setting export="true" for all service definitions +remotedispatcher.exportall=false Propchange: ofbiz/trunk/framework/service/config/service.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/framework/service/config/service.properties ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/framework/service/config/service.properties ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/rmi/RemoteDispatcherImpl.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/rmi/RemoteDispatcherImpl.java?rev=831176&r1=831175&r2=831176&view=diff ============================================================================== --- ofbiz/trunk/framework/service/src/org/ofbiz/service/rmi/RemoteDispatcherImpl.java (original) +++ ofbiz/trunk/framework/service/src/org/ofbiz/service/rmi/RemoteDispatcherImpl.java Fri Oct 30 01:10:25 2009 @@ -24,6 +24,7 @@ import java.rmi.server.UnicastRemoteObject; import java.util.Map; +import org.ofbiz.base.util.UtilProperties; import org.ofbiz.service.GenericRequester; import org.ofbiz.service.GenericResultWaiter; import org.ofbiz.service.GenericServiceException; @@ -36,13 +37,14 @@ public class RemoteDispatcherImpl extends UnicastRemoteObject implements RemoteDispatcher { public static final String module = RemoteDispatcherImpl.class.getName(); - private static final boolean exportAll = false; + private static boolean exportAll = false; protected LocalDispatcher dispatcher = null; public RemoteDispatcherImpl(LocalDispatcher dispatcher, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException { super(0, csf, ssf); this.dispatcher = dispatcher; + exportAll = "true".equals(UtilProperties.getPropertyValue("service", "remotedispatcher.exportall", "false")); } // RemoteDispatcher methods |
Free forum by Nabble | Edit this page |