diff --git a/redisson-hibernate/redisson-hibernate-4/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java b/redisson-hibernate/redisson-hibernate-4/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java index 070a8b9fc..1ff03b1ea 100644 --- a/redisson-hibernate/redisson-hibernate-4/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java +++ b/redisson-hibernate/redisson-hibernate-4/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java @@ -51,7 +51,7 @@ public class JndiRedissonRegionFactory extends RedissonRegionFactory { context = new InitialContext(jndiProperties); return (RedissonClient) context.lookup(jndiName); } catch (NamingException e) { - throw new CacheException("Unable to locate Redisson instances by " + jndiName, e); + throw new CacheException("Unable to locate Redisson instance by name: " + jndiName, e); } finally { if (context != null) { try { diff --git a/redisson-hibernate/redisson-hibernate-5/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java b/redisson-hibernate/redisson-hibernate-5/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java index 070a8b9fc..1ff03b1ea 100644 --- a/redisson-hibernate/redisson-hibernate-5/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java +++ b/redisson-hibernate/redisson-hibernate-5/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java @@ -51,7 +51,7 @@ public class JndiRedissonRegionFactory extends RedissonRegionFactory { context = new InitialContext(jndiProperties); return (RedissonClient) context.lookup(jndiName); } catch (NamingException e) { - throw new CacheException("Unable to locate Redisson instances by " + jndiName, e); + throw new CacheException("Unable to locate Redisson instance by name: " + jndiName, e); } finally { if (context != null) { try { diff --git a/redisson-hibernate/redisson-hibernate-52/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java b/redisson-hibernate/redisson-hibernate-52/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java index 070a8b9fc..1ff03b1ea 100644 --- a/redisson-hibernate/redisson-hibernate-52/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java +++ b/redisson-hibernate/redisson-hibernate-52/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java @@ -51,7 +51,7 @@ public class JndiRedissonRegionFactory extends RedissonRegionFactory { context = new InitialContext(jndiProperties); return (RedissonClient) context.lookup(jndiName); } catch (NamingException e) { - throw new CacheException("Unable to locate Redisson instances by " + jndiName, e); + throw new CacheException("Unable to locate Redisson instance by name: " + jndiName, e); } finally { if (context != null) { try { diff --git a/redisson-hibernate/redisson-hibernate-53/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java b/redisson-hibernate/redisson-hibernate-53/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java index 84f7bd51c..60f3f6dee 100644 --- a/redisson-hibernate/redisson-hibernate-53/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java +++ b/redisson-hibernate/redisson-hibernate-53/src/main/java/org/redisson/hibernate/JndiRedissonRegionFactory.java @@ -52,7 +52,7 @@ public class JndiRedissonRegionFactory extends RedissonRegionFactory { context = new InitialContext(jndiProperties); return (RedissonClient) context.lookup(jndiName); } catch (NamingException e) { - throw new CacheException("Unable to locate Redisson instances by " + jndiName, e); + throw new CacheException("Unable to locate Redisson instance by name: " + jndiName, e); } finally { if (context != null) { try {