Do I need suggestions or am I doing a custom java method as a static OR access through a Java object from the adapter?
My scenario: thousands of users commit transactions, and each user again and again accesses the same method and simply changes some values ββspecific to that user or transaction.
Now, if I create them as static methods, this will cause problems for users, since we know that calling the adapter is asynchronous .... so if several users calling the same method at the same time, then it will cause a problem, it returns different meanings to each other?
Or, if I access all user java methods, first declaring this class object, and then accessing the methods, providing the parameters .... so that when multiple users access the same method at the same time, then they will get proper / relevant data?
In terms of performance, which approach is good and uses the static method method, it brings users incorrect data ... one user information to another, and the other to another person.
thanks Abdul Ahad
------------ my code is similar to ---
java code: public static String getBalanceSummaries(String userAct){ String replyMsg=""; try { replyMsg = getBalanceStatementfromMQ(userAct); }catch(Exception e) {} return replyMsg; } -----WL Adapter code:------ function showAllBalace(userActNo){ return{ result: com.my.package.getBalanceSummaries(userActNo) }; }
source share