[jboss-user] [JCA/JBoss] - Re: No suitable driver found for java:PostgresDS

chewbacca do-not-reply at jboss.com
Mon Nov 26 09:45:02 EST 2007

Hi anyone,

  I'm still trying to figure it out. I will reinstate the problem now:

If I try to connect using the code below, it WORKS:

InitialContext ctx=new InitialContext();
DataSource ds=(DataSource)ctx.lookup( "java:PostgresDS");
Connection con=ds.getConnection();

If I try to this one, it DOESN'T WORKS:

<sql:setDataSource dataSource="java:PostgresDS" />

Anyone knows why?

Thank you all,


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

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

More information about the jboss-user mailing list