tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r655939 - /incubator/tuscany/java/sca/samples/calculator-implementation-policies/src/main/java/calculator/CalculatorClient.java
Date Tue, 13 May 2008 16:30:13 GMT
Author: lresende
Date: Tue May 13 09:30:13 2008
New Revision: 655939

URL: http://svn.apache.org/viewvc?rev=655939&view=rev
Log:
TUSCANY-2317 - Fixing error checking using localized strings

Modified:
    incubator/tuscany/java/sca/samples/calculator-implementation-policies/src/main/java/calculator/CalculatorClient.java

Modified: incubator/tuscany/java/sca/samples/calculator-implementation-policies/src/main/java/calculator/CalculatorClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/calculator-implementation-policies/src/main/java/calculator/CalculatorClient.java?rev=655939&r1=655938&r2=655939&view=diff
==============================================================================
--- incubator/tuscany/java/sca/samples/calculator-implementation-policies/src/main/java/calculator/CalculatorClient.java
(original)
+++ incubator/tuscany/java/sca/samples/calculator-implementation-policies/src/main/java/calculator/CalculatorClient.java
Tue May 13 09:30:13 2008
@@ -31,13 +31,9 @@
     public static void main(String[] args) throws Exception {
         try {
             Configuration secConf = Configuration.getConfiguration();
-        } catch ( java.lang.SecurityException e ) {
-            if ( e.getMessage().equals("Unable to locate a login configuration") ) {
-                System.setProperty("java.security.auth.login.config", 
-                       CalculatorClient.class.getClassLoader().getResource("CalculatorJass.config").toString());
-            } else {
-                throw e;
-            }
+        } catch (java.lang.SecurityException e) {
+            System.setProperty("java.security.auth.login.config", CalculatorClient.class.getClassLoader()
+                .getResource("CalculatorJass.config").toString());
         }
 
         SCADomain scaDomain = SCADomain.newInstance("Calculator.composite");



Mime
View raw message