[jboss-user] [JCA/JBoss] - Re: HSQLDB connection problem

cesarcba do-not-reply at jboss.com
Mon Dec 18 23:38:27 EST 2006


Hi..i found the error i was trying to make a connection in oder way...the way of my getconnection now is:

private Connection getConnection (){
		try {
			InitialContext ctxt = new InitialContext();
			DataSource ds = (DataSource) ctxt.lookup("java:DefaultDS");
			conexion = ds.getConnection();
		}
		catch (Exception except) {
			System.out.println("Error al obtener conexion");
		}
		return conexion;
	}

that was all..thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994883#3994883

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994883



More information about the jboss-user mailing list