geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-4375) rebind of "auto-bound" stuff in jca: context doesn't work
Date Fri, 24 Oct 2008 18:45:44 GMT

    [ 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.


Mime
View raw message