Hi Anjana, AmilaJ and I looked into this issue. The JNDI look-up is working fine for DB Drivers, and LDAP. Can you also paste the code that you tried and failed? Since both AmilaJ and I felt that you might be using new InitialContext() instead of new InitialContext(hashMap) and expect the former to behave like the latter. Was that the case?
Thanks, Senaka. On Fri, Jul 8, 2011 at 9:22 PM, Anjana Fernando <[email protected]> wrote: > Reminder, this issue should be fixed for the Stratos release. I've created > a JIRA here [1]. > > [1] https://wso2.org/jira/browse/CARBON-10975 > > Cheers, > Anjana. > > > On Sun, Jul 3, 2011 at 4:33 PM, Anjana Fernando <[email protected]> wrote: > >> Hi Amila, >> >> On Sat, Jul 2, 2011 at 11:20 PM, Amila Jayasekara <[email protected]>wrote: >> >>> >>> Any idea, which call causes CarbonInitialJNDIContextFactory to pass an >>> empty hash table ? >>> >> >> Passed the empty hashtable as in, a proper one is passed into the place at >> line 755 (in the code that's in svn). There it says >> "factory.getInitialContext(h)", and creates an InitialContext object, that >> object in the construction somehow empties out the hashtable as given as "h" >> here. Anyhow, the result is at line 852, the expression >> "initialContext.getEnvironment()" returns an empty Hashtable object. >> >> Cheers, >> Anjana. >> >> >>> >>> Thanks >>> AmilaJ >>> >>> > >>> > Another thing to note is, the ESB has the geronimo-jta lib. This causes >>> > Atomikos to not to work properly, since the JDK also has these libs, >>> and you >>> > will ultimately get an ClassCastException. So I simply deleted this jar >>> and >>> > it worked without any issues. >>> > >>> > Cheers, >>> > Anjana. >>> > >>> > -- >>> > Anjana Fernando >>> > Senior Software Engineer >>> > WSO2 Inc. | http://wso2.com >>> > lean . enterprise . middleware >>> > >>> > _______________________________________________ >>> > Carbon-dev mailing list >>> > [email protected] >>> > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> > >>> > >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >> >> >> >> -- >> *Anjana Fernando* >> Senior Software Engineer >> WSO2 Inc. | http://wso2.com >> lean . enterprise . middleware >> > > > > -- > *Anjana Fernando* > Senior Software Engineer > WSO2 Inc. | http://wso2.com > lean . enterprise . middleware > -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
