Bläddra i källkod

support for webreceive call

Pat 7 år sedan
förälder
incheckning
b76c8c25a8

+ 2 - 0
GabonTelMobicashMobileAppHelper/src/main/java/com/psi/gabontel/mobileapp/thirdparty/helper/BeanCaller.java

@@ -9,6 +9,8 @@ import javax.naming.InitialContext;
 
 import com.psi.ussd.interfaces.UssdReceiverFunction;
 
+
+
 public class BeanCaller implements Callable<String>{
     private final Properties prop;
     private final String ejb;

+ 3 - 2
GabonTelMobicashMobileAppHelper/src/main/java/com/psi/gabontel/mobileapp/thirdparty/helper/InitializerBean.java

@@ -76,8 +76,9 @@ public class InitializerBean {
             return auth.runCallable(new BeanCaller(prop,jndi,Arrays.asList(params)));
         } catch (Exception e) {
             log.error(key,e);
-            if(e.getCause().getClass().getSimpleName().equals("IllegalArgumentException")) {
-                return e.getCause().getMessage();
+            //if(e.getCause().getClass().getSimpleName().equals("IllegalArgumentException")) {
+            if(e.getClass().getSimpleName().equals("IllegalArgumentException")) {
+                return e.getMessage();
             }
             return "System busy. Please try again later.";
         }