Changeset 30306
- Timestamp:
- 02/19/08 19:05:09 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.runtime/branches/1.4/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/JBossServiceLocator.java
r30068 r30306 43 43 if (properties != null) { 44 44 prefix = properties.getProperty("prefix", "nuxeo/"); 45 suffix = properties.getProperty("suffix", "/remote");45 suffix = properties.getProperty("suffix", getDefaultSuffix()); 46 46 // these properties are set only by the client autonficonguration system if needed 47 47 String value = properties.getProperty(Context.PROVIDER_URL); … … 67 67 } 68 68 69 public String getDefaultSuffix() { 70 return System.getProperty("jboss.home.dir") == null ? "/remote" : "/local"; // if not in jboss return "/remote" 71 } 72 69 73 } org.nuxeo.runtime/branches/1.4/nuxeo-runtime/src/main/java/org/nuxeo/runtime/api/ServiceDescriptor.java
r30068 r30306 58 58 59 59 @XNode("locator") 60 private String locator; 60 private String locatorPattern; // the locator pattern used to compute the final locator 61 private transient String locator; // this will be re-computed on the client side 61 62 62 63 private ServiceGroup group; … … 160 161 */ 161 162 public String getLocator() { 162 return locator ;163 return locator == null ? locatorPattern : locator; 163 164 } 164 165
