summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-atom-runtime/src/main/java/org/apache
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-19 06:30:21 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-09-19 06:30:21 +0000
commit588762db4d8dfbd58b29eb362d025e2999f22c84 (patch)
tree294f17dd5e607272c88ba2882b220636c90f9423 /sca-java-2.x/trunk/modules/binding-atom-runtime/src/main/java/org/apache
parentdf9955eb5a6092f4e43adaf6798eb45ab50d1f8c (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/main/java/org/apache')
-rw-r--r--sca-java-2.x/trunk/modules/binding-atom-runtime/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomServiceBindingProvider.java10
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() {