PooledConnectionFactory and cache

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

PooledConnectionFactory and cache

Jose María Zaragoza

I'm using ActiveMQ 5.8.0

I'm confused about what cache means in PooledConnectionFactory?

For example

when it's said "connection is cached",  does it mean that the same
connection is shared between threads ? or it's only a pool of connection
what is borrowed by PooledConnectionFactory
 to a only one  client (thread) and returned when calls close ?

when it's said "session is cached" , does it mean the same session is
shared between threads?
Because JMS spec talks about session is non thread safe and should be use
by only one thread

cache is per thread or shared between all threads that use the same

Thanks and regards