I use Wildfly application server and would like to use Redis as datastore service. Redis server is running on the same machine as Wildfly. Do I need some special configuration for Wildfly to access Redis from classes deployed on it? I use jedis as client for Redis.
Asked
Active
Viewed 1,374 times
0
-
Try and see :) I know nothing about Redis so I can't help much. – James R. Perkins Jul 23 '14 at 17:06
1 Answers
0
Turned out that there is nothing special about accessing Redis server form code deployed on application server - everything is the same (at least when both servers are running on localhost):
Jedis jedis = new Jedis("localhost");
System.out.println("Db size = " + jedis.dbSize());
Works fine.

thereisnospoon
- 33
- 8