You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2009/04/13 18:18:29 UTC

svn commit: r764515 - /incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/examples/as/RunRemoteAsyncAE.java

Author: cwiklik
Date: Mon Apr 13 16:18:29 2009
New Revision: 764515

URL: http://svn.apache.org/viewvc?rev=764515&view=rev
Log:
UIMA-1288 Modified to set system property defaultBrokerURL to the brokerUrl provided on the command line

Modified:
    incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/examples/as/RunRemoteAsyncAE.java

Modified: incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/examples/as/RunRemoteAsyncAE.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/examples/as/RunRemoteAsyncAE.java?rev=764515&r1=764514&r2=764515&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/examples/as/RunRemoteAsyncAE.java (original)
+++ incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/main/java/org/apache/uima/examples/as/RunRemoteAsyncAE.java Mon Apr 13 16:18:29 2009
@@ -167,6 +167,7 @@
             }
             String service = args[++i];
             System.out.println("Attempting to deploy " + service + " ...");
+            
             uimaEEEngine.deploy(service, appCtx);
           } else if (args[i].equals("-t")) {
             timeout = Integer.parseInt(args[++i]);
@@ -185,6 +186,10 @@
       } else {
         if (brokerUrl == null) {
           brokerUrl = args[i];
+          //  Set System property that may be used by Spring while resolving a broker URL 
+          //  placeholder in the deployment descriptor. This is only used when launching
+          //  RunRemoteAsyncAE with -d option.
+          System.setProperty("defaultBrokerURL", brokerUrl);
         } else if (endpoint == null) {
           endpoint = args[i];
         }