diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-19 06:30:21 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-19 06:30:21 +0000 |
commit | 588762db4d8dfbd58b29eb362d025e2999f22c84 (patch) | |
tree | 294f17dd5e607272c88ba2882b220636c90f9423 /sca-java-2.x/trunk/modules/binding-atom-runtime/src | |
parent | df9955eb5a6092f4e43adaf6798eb45ab50d1f8c (diff) |
Fixes to get the store contribution working in a webapp. Make atom binding use the deployed binding URI, like the JSON-RPC already does. Change the dojo include from absolute to a relative path.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@998596 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-atom-runtime/src')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomServiceBindingProvider.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomServiceBindingProvider.java b/sca-java-2.x/trunk/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomServiceBindingProvider.java index 155d07ae86..bc8149a67a 100644 --- a/sca-java-2.x/trunk/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomServiceBindingProvider.java +++ b/sca-java-2.x/trunk/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomServiceBindingProvider.java @@ -95,7 +95,15 @@ class AtomServiceBindingProvider implements ServiceBindingProvider { bindingURI += "/"; } - servletHost.addServletMapping(bindingURI, servlet); + String mappedURI = servletHost.addServletMapping(bindingURI, servlet); + String deployedURI = mappedURI; + if (deployedURI.endsWith("*")) { + deployedURI = deployedURI.substring(0, deployedURI.length() - 1); + } + if (deployedURI.endsWith("/")) { + deployedURI = deployedURI.substring(0, deployedURI.length() - 1); + } + binding.setURI(deployedURI); } public void stop() { |