-
October 2nd, 2020, 09:08 AM
#3
Hello,
By adapter stopping the service to all, by that stock rates not updating to all. I can see my screen also this not getting update the rates. This totally getting issue on my remote adapter I feel.
I need to check my code also whether this causes any issue, could you please help me is the possible to store my java file errors on LS log file.
My code is like,
public class ExternalFeedSimulator {
private static Jedis jedis;
private static JedisPool jedisPool;
public ExternalFeedSimulator() {
JedisPoolConfig poolConfig = new JedisPoolConfig();
poolConfig.setMaxTotal(1000);
jedisPool = new JedisPool(poolConfig, RedisDBConfig.HOST, RedisDBConfig.PORT, RedisDBConfig.TIMEOUT);
}
public static String getJSON() {
try {
jedis = jedisPool.getResource();
ClientsRateRow[] craterows = gson.fromJson(jedis.get("WLallclientsrates"), ClientsRateRow[].class);
for (ClientsRateRow raterow : craterows) {
liveratesnew.put(raterow.client_com_id, raterow);
curclientrates.add(raterow);
}
} catch (IllegalStateException ex) {
ex.printStackTrace();
} catch (JedisConnectionException e) {
e.printStackTrace();
} catch (SecurityException e) {
e.printStackTrace();
} finally {
jedis.close();
}
return null;
}
To check if get any error this need to store into LS log file. Can you help how to store the errors into ls log file from my customer class.
Similar Threads
-
By kailashb in forum Adapter SDKs
Replies: 2
Last Post: August 20th, 2015, 11:41 AM
-
By Slavko Parezanin in forum Adapter SDKs
Replies: 1
Last Post: January 19th, 2015, 09:43 AM
-
By thanie2001 in forum Client SDKs
Replies: 5
Last Post: August 20th, 2009, 10:38 AM
-
By Mone in forum Client SDKs
Replies: 2
Last Post: October 17th, 2008, 09:22 AM
-
By Mone in forum Client SDKs
Replies: 1
Last Post: April 19th, 2007, 07:42 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 04:34 PM.
Bookmarks