I added an init method to it so I could stuff in the JNDI context that I had created for my test case ... is that wrong?
Apparently one is supposed to punt a file to the file system that describes how new InitialContext() is configured, I have held back from doing this (since the choice of JNDI solution is done by an application and we are only a library), the simple-jndi trick is working perfectly for testing purposes. I will think about your suggestion, I may prefer to have the "GeoTools" class manage the initial context. Cheers, Jody > Jody Garnett a écrit : > >> I am looking for ways to test JNDI functionality in GeoTools ... the >> JNDI class is supposed to serve up an InitialContext - but it does not >> appear to work (when you try to use the class to bind anything it starts >> to complain). >> > > You can send org.geotools.factory.JNDI completly to trash, or hack it at your > wish. It was an early attempt to provides a central place for JNDI, but it has > never been tested and the only code that tried to use it don't use it anymore. > > If it doesn't work for you, I suggest to delete JNDI from Geotools SVN. > > Martin > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
