The create method within StdServerSessionPool always
creates a pool of topic sesions, ie. SpyTopicSession.
Using a non-XA connection as an example, the logic
within create method uses instanceof to test
connection and being that org.jboss.mq.SpyConnection
implements both TopicConnection and QueueConnection,
the (con instanceof QueueConnection) else if logic
never executes.
Logged In: YES
user_id=839156
Applies to 3.2.4 codebase
Logged In: YES
user_id=9459
What problem does this cause?
SpySession implements both Queue and Topic Sessions, or at least
the part that is relevent for a connection consumer.
Regards,
Adrian
Logged In: YES
user_id=839156
No. SpyQueueSession implements QueueSession and
SpyTopicSession implements TopicSession. The logic within
StdServerSessionPool is implemented such that the user
cannot create a pool of QueueSessions, ie. SpyQueueSession
is never instantiated.