Changeset 29721
- Timestamp:
- 01/28/08 15:38:32 (10 months ago)
- Files:
-
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/AbstractRuntimeService.java (modified) (2 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/RuntimeService.java (modified) (2 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/Version.java (modified) (3 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/JBossServiceLocator.java (modified) (2 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/JndiServiceLocator.java (modified) (1 diff)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/RuntimeServiceLocator.java (modified) (1 diff)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceAdapter.java (modified) (1 diff)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceDescriptor.java (modified) (3 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceGroup.java (modified) (1 diff)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceHost.java (modified) (4 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceLocator.java (modified) (1 diff)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/AbstractServerConfiguration.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/AbstractServerConfiguration.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/AutoConfigurationService.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/AutoConfigurationService.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/Configuration.java (modified) (1 diff)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/ConfigurationException.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/ConfigurationException.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/ConfigurationFactory.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/ConfigurationFactory.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/ConfigurationHandler.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/ConfigurationHandler.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/ConfigurationHelper.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/ConfigurationHelper.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/ServerConfiguration.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/ServerConfiguration.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/v1 (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/v1)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/v1/ConfigurationFactory1.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/v1/ConfigurationFactory1.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/v1/ServerConfiguration1.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/config/v1/ServerConfiguration1.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/osgi/OSGiRuntimeService.java (modified) (2 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/remoting/RemotingService.java (modified) (7 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/remoting/Server.java (modified) (2 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/remoting/ServerImpl.java (modified) (3 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/remoting/UnsupportedServerVersion.java (copied) (copied from org.nuxeo.runtime/branches/autoconfig/src/main/java/org/nuxeo/runtime/remoting/UnsupportedServerVersion.java)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/remoting/transporter/TransporterServer.java (modified) (1 diff)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/services/streaming/StreamingService.java (modified) (4 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/resources/META-INF/MANIFEST.MF (modified) (2 diffs)
- org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/resources/OSGI-INF/RemotingService.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/AbstractRuntimeService.java
r28509 r29721 65 65 } 66 66 67 // warnings during the deployment. Here are collected all errors occured during the startup 68 protected final List<String> warnings = new ArrayList<String>(); 69 70 67 71 protected AbstractRuntimeService(DefaultRuntimeContext context, 68 72 Map<String, String> properties) { … … 72 76 this.properties.putAll(properties); 73 77 } 78 } 79 80 /** 81 * @return the warnings. 82 */ 83 public List<String> getWarnings() { 84 return warnings; 74 85 } 75 86 org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/RuntimeService.java
r25241 r29721 21 21 22 22 import java.io.File; 23 import java.util.List; 23 24 import java.util.Properties; 24 25 … … 191 192 <T> T getService(Class<T> serviceClass); 192 193 194 /** 195 * Get a list of startup warnings. 196 * Can be modified to add new warnings 197 * @return the warning list 198 */ 199 List<String> getWarnings(); 200 193 201 } org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/Version.java
r23049 r29721 28 28 * @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a> 29 29 */ 30 public class Version implements Serializable {30 public class Version implements Serializable, Comparable<Version> { 31 31 32 32 public static final Version ZERO = new Version(0, 0, 0); 33 public static final Version MIN = ZERO; 34 public static final Version MAX = new Version(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE); 33 35 34 36 private static final long serialVersionUID = 4287621413157054503L; … … 127 129 * @return if the current version is equal to the given one, false otherwise 128 130 */ 129 p rivateboolean isEqualTo(Version version) {131 public boolean isEqualTo(Version version) { 130 132 return major == version.major 131 133 && minor == version.minor … … 189 191 } 190 192 193 public int compareTo(Version v) { 194 if (v == null) return -1; 195 if (isEqualTo(v)) { 196 return 0; 197 } else { 198 return isGreaterThan(v) ? 1 : 0; 199 } 200 } 201 191 202 } org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/JBossServiceLocator.java
r28983 r29721 22 22 import java.util.Properties; 23 23 24 import javax.naming.Context; 24 25 import javax.naming.InitialContext; 25 26 … … 30 31 public class JBossServiceLocator extends JndiServiceLocator { 31 32 32 private String prefix;33 private static final long serialVersionUID = -5691359964790311122L; 33 34 34 private String suffix; 35 private String prefix = ""; 36 37 private String suffix = ""; 35 38 36 39 @Override 37 40 public void initialize(String host, int port, Properties properties) 38 41 throws Exception { 42 if (port == 0) port = 1099; 39 43 if (properties != null) { 40 44 prefix = properties.getProperty("prefix", "nuxeo/"); 41 45 suffix = properties.getProperty("suffix", "/remote"); 42 } else { 43 properties = new Properties(); 44 properties.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); 45 properties.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces"); 46 } 47 if (host != null) { // overwrite default values (or those specified through properties) 48 String uri = "jnp://" + host + ':' + (port == 0 ? 1099 : port); 49 properties.put("java.naming.provider.url", uri); 46 // these properties are set only by the client autonficonguration system if needed 47 String value = properties.getProperty(Context.PROVIDER_URL); 48 if (value != null) { 49 value = String.format(value, host, port); 50 properties.put(Context.PROVIDER_URL, value); 51 } 50 52 } 51 53 context = new InitialContext(properties); org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/JndiServiceLocator.java
r28345 r29721 30 30 public abstract class JndiServiceLocator implements ServiceLocator { 31 31 32 protected InitialContext context;32 protected transient InitialContext context; 33 33 34 34 /** org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/RuntimeServiceLocator.java
r28584 r29721 31 31 public class RuntimeServiceLocator implements ServiceLocator { 32 32 33 private static final long serialVersionUID = -3550824536420353831L; 34 33 35 public void initialize(String host, int port, Properties properties) 34 36 throws Exception { org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceAdapter.java
r19772 r29721 20 20 package org.nuxeo.runtime.api; 21 21 22 import java.io.Serializable; 23 22 24 /** 23 25 * @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a> 24 26 * 25 27 */ 26 public interface ServiceAdapter {28 public interface ServiceAdapter extends Serializable { 27 29 28 30 Object adapt(ServiceDescriptor svc, Object service) throws Exception; org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceDescriptor.java
r28179 r29721 20 20 package org.nuxeo.runtime.api; 21 21 22 import java.io.Serializable; 23 22 24 import org.nuxeo.common.xmap.annotation.XNode; 23 25 import org.nuxeo.common.xmap.annotation.XObject; … … 28 30 */ 29 31 @XObject(value = "service", order = { "serviceClass", "name" }) 30 public class ServiceDescriptor { 32 public class ServiceDescriptor implements Serializable{ 33 34 35 private static final long serialVersionUID = 5490362136607217161L; 31 36 32 37 @XNode("@name") … … 35 40 private String serviceClassName; 36 41 37 private Class<?> serviceClass; 42 // this should not be loaded when sending service descriptors to a client because 43 // the class may not exists on the client. the class should be loaded only if the client explicitelly 44 // lookup the service 45 private transient Class<?> serviceClass; 46 38 47 39 48 @XNode("@class") org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceGroup.java
r28516 r29721 20 20 package org.nuxeo.runtime.api; 21 21 22 import java.io.Serializable; 23 22 24 /** 23 25 * @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a> 24 26 * 25 27 */ 26 public class ServiceGroup { 28 public class ServiceGroup implements Serializable { 29 30 private static final long serialVersionUID = -206692130381710767L; 27 31 28 32 private final String name; org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceHost.java
r28345 r29721 20 20 package org.nuxeo.runtime.api; 21 21 22 import java.io.IOException; 23 import java.io.ObjectInputStream; 24 import java.io.ObjectOutputStream; 25 import java.io.Serializable; 22 26 import java.util.Map; 23 27 import java.util.Properties; … … 33 37 */ 34 38 @XObject("server") 35 public class ServiceHost { 39 public class ServiceHost implements Serializable { 40 41 private static final long serialVersionUID = 632838284857927463L; 36 42 37 43 public static final ServiceHost LOCAL_SERVER = new ServiceHost(RuntimeServiceLocator.class); … … 49 55 50 56 51 private ServiceGroup[] groups;52 53 private ServiceLocator serviceLocator;57 private transient ServiceGroup[] groups; 58 59 private transient ServiceLocator serviceLocator; 54 60 55 61 … … 196 202 } 197 203 204 205 private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { 206 in.defaultReadObject(); 207 int len = in.readInt(); 208 String[] ar = new String[len]; 209 for (int i=0; i<len; i++) { 210 ar[i] = (String)in.readObject(); 211 } 212 setGroups(ar); 213 } 214 215 private void writeObject(ObjectOutputStream out) throws IOException { 216 out.defaultWriteObject(); 217 if (groups != null) { 218 out.writeInt(groups.length); 219 for (ServiceGroup group : groups) { 220 out.writeObject(group.getName()); 221 } 222 } else { 223 out.writeInt(0); 224 } 225 } 226 198 227 } org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceLocator.java
r24983 r29721 30 30 * @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a> 31 31 */ 32 public interface ServiceLocator {32 public interface ServiceLocator extends java.io.Serializable { 33 33 34 34 /** org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/config/Configuration.java
r28345 r29721 214 214 } 215 215 216 privatevoid load(Server server, String host, String serverLocator)216 void load(Server server, String host, String serverLocator) 217 217 throws Exception { 218 218 org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/osgi/OSGiRuntimeService.java
r28179 r29721 70 70 private final Map<Bundle, RuntimeContext> contexts; 71 71 72 // warnings during the deployment. Here are collected all errors occured during the startup73 private final List<String> warnings = new ArrayList<String>();74 72 75 73 … … 116 114 public synchronized RuntimeContext getContext(Bundle bundle) { 117 115 return contexts.get(bundle); 118 }119 120 /**121 * @return the warnings.122 */123 public List<String> getWarnings() {124 return warnings;125 116 } 126 117 org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/remoting/RemotingService.java
r28345 r29721 20 20 package org.nuxeo.runtime.remoting; 21 21 22 import java.util.Properties; 23 24 import javax.management.MBeanServer; 25 import javax.management.MBeanServerFactory; 26 import javax.management.ObjectName; 27 22 28 import org.jboss.remoting.InvokerLocator; 23 29 import org.jboss.remoting.marshal.MarshalFactory; 24 30 import org.jboss.remoting.marshal.serializable.SerializableMarshaller; 25 31 import org.nuxeo.runtime.api.Framework; 32 import org.nuxeo.runtime.config.ConfigurationFactory; 33 import org.nuxeo.runtime.config.v1.ConfigurationFactory1; 26 34 import org.nuxeo.runtime.model.ComponentContext; 27 35 import org.nuxeo.runtime.model.ComponentName; … … 40 48 "org.nuxeo.runtime.remoting.RemotingService"); 41 49 42 public static final String DEFAULT_LOCATOR = "socket://0.0.0.0:62474/ ";//?datatype=nuxeo";50 public static final String DEFAULT_LOCATOR = "socket://0.0.0.0:62474/?datatype=nuxeo"; 43 51 44 52 private TransporterServer transporterServer; … … 50 58 private InvokerLocator serverLocator; 51 59 52 public static Server connect(String locatorURI) throws Exception { 53 return (Server) TransporterClient.createTransporterClient( 54 new InvokerLocator(locatorURI), Server.class); 60 public static final Server connect(String locatorURI) throws Exception { 61 return (Server) TransporterClient.createTransporterClient(new InvokerLocator(locatorURI), Server.class); 55 62 } 56 63 … … 62 69 * @return the server object 63 70 */ 64 public static Server connect(String host, int port) throws Exception {71 public static final Server connect(String host, int port) throws Exception { 65 72 return connect(getServerURI(host, port)); 66 73 } … … 71 78 * @param server 72 79 */ 73 public static void disconnect(Server server) {80 public static final void disconnect(Server server) { 74 81 TransporterClient.destroyTransporterClient(server); 75 82 } 76 83 77 public static String getServerURI(String host, int port) {78 return "socket://" + host + ':' + port + '/';//?datatype=nuxeo";84 public static final String getServerURI(String host, int port) { 85 return "socket://" + host + ":" + port+"/?datatype=nuxeo"; 79 86 } 80 87 … … 99 106 @Override 100 107 public void activate(ComponentContext context) throws Exception { 108 // register the configuration handlers 109 ConfigurationFactory.registerFactory(new ConfigurationFactory1()); 110 // register the marshaller 111 MarshalFactory.addMarshaller("nuxeo", new SerializableMarshaller(), new NuxeoUnMarshaller()); 112 // startup server if needed 101 113 String val = Framework.getProperty("org.nuxeo.runtime.server.enabled", "true"); 102 114 isServer = val.equalsIgnoreCase("true"); 103 115 if (isServer) { 104 String locator = Framework.getProperty( 105 "org.nuxeo.runtime.server.locator", DEFAULT_LOCATOR); 116 String locator = Framework.getProperty("org.nuxeo.runtime.server.locator", DEFAULT_LOCATOR); 106 117 serverLocator = new InvokerLocator(locator); 107 MarshalFactory.addMarshaller(108 "nuxeo", new SerializableMarshaller(), new NuxeoUnMarshaller());109 118 server = new ServerImpl(this, context.getRuntimeContext().getRuntime()); 110 119 transporterServer = TransporterServer.createTransporterServer( 111 120 serverLocator, server, Server.class.getName()); 121 122 //TODO: the current version of jboss remoting doesn't support 123 // locatorUrl on the servlet impl. - see docs 124 // when this will be supported ignore regitsering the mbean and use locatorUrl to retrieve the invoker 125 // (this aproach is more portable) 126 MBeanServer mb = (MBeanServer)MBeanServerFactory.findMBeanServer(null).iterator().next(); 127 if (mb != null) { 128 mb.registerMBean(transporterServer.getConnector().getServerInvoker(), 129 new ObjectName("nx:service=invoker,name=remoting")); 130 } 112 131 } 113 132 } … … 140 159 } 141 160 161 162 163 public static void main(String[] args) { 164 try { 165 Server server = connect("servlet://localhost:8080/nuxeo/ServerInvokerServlet"); 166 Properties props = server.getProperties(); 167 System.out.println(props); 168 } catch (Exception e) { 169 170 } 171 } 172 142 173 } org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/remoting/Server.java
r27183 r29721 26 26 import javax.security.auth.login.AppConfigurationEntry; 27 27 28 import org.jboss.remoting.InvokerLocator; 29 import org.nuxeo.runtime.Version; 28 30 import org.nuxeo.runtime.api.login.SecurityDomain; 31 import org.nuxeo.runtime.config.ConfigurationException; 32 import org.nuxeo.runtime.config.ServerConfiguration; 29 33 import org.nuxeo.runtime.model.ComponentInstance; 30 34 import org.nuxeo.runtime.model.ComponentName; … … 37 41 public interface Server { 38 42 43 ServerConfiguration getConfiguration(InvokerLocator locator, Version version) throws ConfigurationException, UnsupportedServerVersion; 39 44 40 45 String getName(); 41 42 46 43 47 String getDescription(); org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/remoting/ServerImpl.java
r28179 r29721 33 33 import org.apache.commons.logging.Log; 34 34 import org.apache.commons.logging.LogFactory; 35 import org.jboss.remoting.InvokerLocator; 35 36 import org.jboss.remoting.loading.ClassUtil; 36 37 import org.nuxeo.common.utils.FileUtils; 37 38 import org.nuxeo.runtime.RuntimeService; 39 import org.nuxeo.runtime.Version; 38 40 import org.nuxeo.runtime.api.Framework; 39 41 import org.nuxeo.runtime.api.ServiceDescriptor; … … 43 45 import org.nuxeo.runtime.api.login.LoginService; 44 46 import org.nuxeo.runtime.api.login.SecurityDomain; 47 import org.nuxeo.runtime.config.ConfigurationException; 48 import org.nuxeo.runtime.config.ConfigurationFactory; 49 import org.nuxeo.runtime.config.ServerConfiguration; 45 50 import org.nuxeo.runtime.model.ComponentInstance; 46 51 import org.nuxeo.runtime.model.ComponentName; … … 199 204 } 200 205 206 public ServerConfiguration getConfiguration(InvokerLocator locator, Version version) throws ConfigurationException, UnsupportedServerVersion { 207 ConfigurationFactory factory = ConfigurationFactory.getFactory(version); 208 return factory.createConfiguration(locator, version); 209 } 210 201 211 public void contributeExtension(Extension extension, String xmlContent) throws Exception { 202 212 // ComponentManagerImpl mgr = (ComponentManagerImpl)runtime.getComponentManager(); org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/remoting/transporter/TransporterServer.java
r24983 r29721 63 63 ServerInvocationHandler handler = new TransporterHandler(target); 64 64 connector.addInvocationHandler(subsystem, handler); 65 } 66 67 /** 68 * @return the connector. 69 */ 70 public Connector getConnector() { 71 return connector; 65 72 } 66 73 org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/java/org/nuxeo/runtime/services/streaming/StreamingService.java
r28012 r29721 22 22 import java.io.File; 23 23 24 import org.apache.commons.logging.Log; 25 import org.apache.commons.logging.LogFactory; 24 26 import org.nuxeo.runtime.api.Framework; 25 27 import org.nuxeo.runtime.model.ComponentContext; … … 35 37 */ 36 38 public class StreamingService extends DefaultComponent{ 39 40 private final static Log log = LogFactory.getLog(StreamingService.class); 37 41 38 42 public static final ComponentName NAME = new ComponentName("org.nuxeo.runtime.streaming"); … … 115 119 throw new IllegalStateException("StreamingManager is already started"); 116 120 } 117 if (serverLocator == null) {118 throw new IllegalArgumentException(119 "serverLocator must not be null when defining a StreamingService");120 }121 121 122 122 if (isServer) { … … 131 131 manager = new StreamManagerServer(transporterServer, tmpDir); 132 132 serverLocator = transporterServer.getLocatorURI(); 133 } else if (serverLocator == null) { 134 String msg = "Streaming Server Locator is not defined. Streaming will not work."; 135 log.warn(msg); 136 Framework.getRuntime().getWarnings().add(msg); 133 137 } else { 134 138 int minBufSize = (Integer) context.getPropertyValue("minBufferSize", 1024*8); org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/resources/META-INF/MANIFEST.MF
r27351 r29721 10 10 org.nuxeo.runtime.api, 11 11 org.nuxeo.runtime.api.login, 12 org.nuxeo.runtime.config, 13 org.nuxeo.runtime.config.v1, 14 org.nuxeo.runtime.detection, 12 15 org.nuxeo.runtime.expression, 13 16 org.nuxeo.runtime.model, … … 25 28 org.nuxeo.runtime.services.streaming, 26 29 org.nuxeo.runtime.streaming, 27 org.nuxeo.runtime.config,28 30 org.nuxeo.runtime.util 29 31 Bundle-ClassPath: ., org.nuxeo.runtime/trunk/nuxeo-runtime/src/main/resources/OSGI-INF/RemotingService.xml
r27975 r29721 9 9 <implementation class="org.nuxeo.runtime.remoting.RemotingService"/> 10 10 11 <service> 12 <provide interface="org.nuxeo.runtime.remoting.RemotingService" /> 13 </service> 14 11 15 </component> 12 16
