Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4375

rebind of "auto-bound" stuff in jca: context doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3, 2.2
    • 2.1.4, 2.2
    • naming
    • Security Level: public (Regular issues)
    • None

    Description

      This works:

      InitialContext ctx = new InitialContext(contextEnv);
      Context fooCtx = ctx.createSubcontext("jca:foo");
      fooCtx.createSubcontext("bar");
      ctx.bind("jca:foo/bar/baz", 1);
      assertEquals(ctx.lookup("jca:foo/bar/baz"), 1);
      ctx.rebind("jca:foo/bar/baz", 2);
      assertEquals(ctx.lookup("jca:foo/bar/baz"), 2);

      this doesn't, where jca:/test/test/GBean/resourceSource is an datasource installed by the ResourceBinding GBean

      InitialContext ctx = new InitialContext(contextEnv);
      assertTrue(ctx.lookup("jca:/test/test/GBean/resourceSource") instanceof DataSource);
      ctx.rebind("jca:/test/test/GBean/resourceSource", 2);
      assertEquals(2, ctx.lookup("jca:/test/test/GBean/resourceSource"));

      Attachments

        1. GERONIMO-4375_21branch.patch
          10 kB
          Lin Quan Jiang
        2. G4375_revert2ASM223.patch
          6 kB
          Lin Quan Jiang
        3. xbean-115_for_3.3tag.patch
          4 kB
          Lin Quan Jiang

        Activity

          People

            djencks David Jencks
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: