Re: How to connect Informix using JDBC?
Posted in 1998
Hun Soon Lee wrote: <snip> > // GET CONNECTION > java.sql.Connection con; > try{ > java.util.Properties props=new java.util.Properties(); > //props.put("charset","KSC5601"); > //props.put("dbEncoding","KSC5601"); > props.put("user","informix"); > props.put("password","*****"); > props.put("server","pinesoc"); > props.put("database","stores7"); > > con=java.sql.DriverManager.getConnecti > n("jdbc:informix://pine.chungnam.ac.kr:1400/stores7", > > props); <snip> I think the problem lies in your url, with the jdbc driver in the Client SDK you can connect two different ways, either directly (like in an application), using a url like this: "jdbc:informix-api-direct", or using an rmi server (like in an applet), then you use this kind of url: "jdbc:informix-api-remote:rmi://pine.chungnam.ac.kr:1400/" if the rmi server is running on port 1400. Rob Z.