Menu

#1805 StdServerSessionPool Always Creates Topic Sessions

v3.2
closed-rejected
JBossMQ (152)
5
2004-04-01
2004-03-25
Todd Wolff
No

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.

Discussion

  • Todd Wolff

    Todd Wolff - 2004-03-29

    Logged In: YES
    user_id=839156

    Applies to 3.2.4 codebase

     
  • Adrian Brock

    Adrian Brock - 2004-04-01

    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

     
  • Adrian Brock

    Adrian Brock - 2004-04-01
    • assigned_to: nobody --> ejort
    • status: open --> closed-rejected
     
  • Todd Wolff

    Todd Wolff - 2004-04-02

    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.

     

Log in to post a comment.