This content has been marked as final.
Show 2 replies
-
1. Re: hornetQ with and without using JNDI
ataylor Jul 21, 2014 7:50 AM (in response to anuradhap)using JNDI adds no overhead to HornetQ, its simply used for looking up the jms resources remotely. The only way that this would be an issue was if you were looking up the same resource every time you used it which would (say for every message send) which would be the wrong approach.
-
2. Re: hornetQ with and without using JNDI
anuradhap Jul 22, 2014 12:21 AM (in response to ataylor)Hi,
I'm sorry i forgot to mention that this overhead exists only when persistence was made true in standalone-full.xml.
<hornetq-server>
<persistence-enabled>true</persistence-enabled>
........
If it is true, i noticed that a client using JNDI was taking more time. This does not affect the sender written with HornetQ Core Api.
If persistence is false,the JNDI sender is very quick.
I'm looking up the jndi resource only once.