-
1. Re: JDBC Help?
jfradkin Jun 15, 2003 12:57 PM (in response to jfradkin)more specifics in jdbc forum (have my mssql-ds.xml included)
I tried deleting all java installs (I did have an old directory) and re-installing as I read this had to do with more then one install, but I should be clean.
Works fine with.
Class.forName(driver);
Connection con1 = DriverManager.getConnection(url, username, password);
Statement stmt = con1.createStatement();
blows up on
Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/MSSQLDS");
con = ds.getConnection();
with
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial -
2. Re: JDBC Help?
jfradkin Jun 16, 2003 12:00 PM (in response to jfradkin)I figured it out I needed more client libs to get jndi working. I ended up using ds config from an example on this forum to get the connection happy. I am sure I am including more libs then I need but I did not see the exact combo and once I knew that was the issue I just included all the ones from jboss client.
Jope this helps, more detail under JDBC forum.