Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-1973

Calling session.objects fails to return objects in certain cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6
    • Ruby Client
    • None
    • Fedora 11, Qpid svn trunk revision 787286

    Description

      Suppose we have a simple schema consisting of class A and class B, where A is the parent of class B.
      Suppose also that we have a simple ruby console program that, upon having the obj_props callback called by the broker, ignores all objects not of class A. For any objects of class A, it prints out the instance (of class A) and all corresponding child instances (of class B).

      In the case where managed_connections is enabled in the session, if the agent connected to the broker before the console, then the session.objects method fails to return any objects. The agent can be running for a large length of time before the console connects, and other consoles that connected can see all the published qmf objects, but the console that connected after the agent cannot see the objects.

      Finally, I tried writing a simple console that extended debug console that queried for objects on user input to try debugging when session.objects() fails. It appears that the console picks up the qmf objects in the schema written by the user before picking up any of the org.apache.* schemas, and that after the console picks up the org.apache.* schemas, then session.objects() works normally.

      Attachments

        Activity

          People

            tross Ted Ross
            arjunroy Arjun Roy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 72h
                72h
                Logged:
                Time Spent - Not Specified
                Not Specified