You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2008/10/22 18:59:46 UTC

[jira] Created: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

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

                 Key: GERONIMO-4375
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: naming
    Affects Versions: 2.1.3, 2.2
            Reporter: David Jencks
            Assignee: David Jencks
             Fix For: 2.1.4, 2.2


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"));


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643396#action_12643396 ] 

Shawn Jiang commented on GERONIMO-4375:
---------------------------------------

I found that openejb 3.0 depends on ASM 2.2.3 interface too so that the openejb should be upgraded to version 3.1 in geronimo 2.1 branch. 




> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: GERONIMO-4375_21branch.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644210#action_12644210 ] 

Shawn Jiang commented on GERONIMO-4375:
---------------------------------------

David,

You are right, it's xbean-finder but not xbean-naming that depends on ASM.  I'm fine with the latest fix on this. 

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: G4375_revert2ASM223.patch, GERONIMO-4375_21branch.patch, xbean-115_for_3.3tag.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644070#action_12644070 ] 

Jarek Gawor commented on GERONIMO-4375:
---------------------------------------

I switched back branches/2.1 to asm 2.2.3 and xbean 3.3 except xbean-naming which stayed on 3.5-SNAPSHOT version (revision 709224).



> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: G4375_revert2ASM223.patch, GERONIMO-4375_21branch.patch, xbean-115_for_3.3tag.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642017#action_12642017 ] 

David Jencks commented on GERONIMO-4375:
----------------------------------------

This is an xbean-naming problem, see XBEAN-115.

Tests added in trunk and xbean version bumped in rev 707233.

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks closed GERONIMO-4375.
----------------------------------

    Resolution: Fixed

starting with the patch I also ported the asm upgrade and a couple other required tweaks in rev 707858 to branches/2.1

This is a pretty rare problem with a likely workaround of binding stuff at different names than the auto-bound stuff so if anyone wants to revert the port to 2.1 I won't object.

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: GERONIMO-4375_21branch.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642510#action_12642510 ] 

David Jencks commented on GERONIMO-4375:
----------------------------------------

I think the additional problems in trunk are fixed in rev 707709 which upgrades asm to 3.1 and fixes TemporaryClassLoader following the openejb lead.

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: GERONIMO-4375_21branch.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643774#action_12643774 ] 

David Jencks commented on GERONIMO-4375:
----------------------------------------

Shawn,

Why do you think xbean-naming depends on asm?  The pom shows no dependencies at all... the xbean root pom has a junit test scope dependency....that's all.  I still think upgrading just xbean-naming ought to work.

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: G4375_revert2ASM223.patch, GERONIMO-4375_21branch.patch, xbean-115_for_3.3tag.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642503#action_12642503 ] 

David Jencks commented on GERONIMO-4375:
----------------------------------------

There are problems in trunk that will need to be also fixed in 2.1 if we port this.  In particular xbean trunk uses asm 3.1 which requires changes to TemporaryClassloader

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: GERONIMO-4375_21branch.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn Jiang updated GERONIMO-4375:
----------------------------------

    Attachment: xbean-115_for_3.3tag.patch

This is the patch to fix xbean-115 based on xbean 3.3. tag code.

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: G4375_revert2ASM223.patch, GERONIMO-4375_21branch.patch, xbean-115_for_3.3tag.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn Jiang updated GERONIMO-4375:
----------------------------------

    Attachment: G4375_revert2ASM223.patch

Because it's the xbean-naming 3.5 that depends on ASM 3.1, keep other xbean to 3.3 does not resolve the    potential compatibility after upgrading asm.

Here is the patch to revert asm to 2.2.3 and revert xbean to 3.3, which requires pulling the XBEAN-115 fix to xbean 3.3 tag code to make a patched xbean 3.3 manually.

I'll upload a xbean 3.3 based patch to XBEAN-115 in case someone needs to keep the asm to 2.2.3 in geronimo 2.1.

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: G4375_revert2ASM223.patch, GERONIMO-4375_21branch.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "Shawn Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn Jiang updated GERONIMO-4375:
----------------------------------

    Attachment: GERONIMO-4375_21branch.patch

This is a patch for 2.1 branch based on the changes made in trunk.

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: GERONIMO-4375_21branch.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643424#action_12643424 ] 

David Jencks commented on GERONIMO-4375:
----------------------------------------

For a short term fix it's probably better to roll back some of the code changes for e.g. xbean-reflect and just upgrade the xbean-naming jar.

> rebind of "auto-bound" stuff in jca: context doesn't work
> ---------------------------------------------------------
>
>                 Key: GERONIMO-4375
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4375
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.1.3, 2.2
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 2.1.4, 2.2
>
>         Attachments: GERONIMO-4375_21branch.patch
>
>
> 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"));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.