You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/09/24 13:42:07 UTC

[jira] [Resolved] (CAMEL-5611) Issue with JndiContext in camel tests

     [ https://issues.apache.org/jira/browse/CAMEL-5611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5611.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.11.0

Thanks for the patch.

I added a org.apache.camel.util.jndi.CamelSingletonInitialContextFactory to camel-core. Then in unit tests you can use that factory for the singleton use cases.
                
> Issue with JndiContext in camel tests
> -------------------------------------
>
>                 Key: CAMEL-5611
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5611
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, camel-test
>    Affects Versions: 2.10.1
>            Reporter: Benjamin Graf
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11.0
>
>         Attachments: CAMEL-5611.patch, cameljnditest.zip
>
>
> If you configure the jndiregistry in a unit test produced by CamelInitialContextFactory via jndi.properties you'll always get a new empty JndiContext if any library or component in between does a new InitialContext() call.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira