[jboss-user] [JCA/JBoss] - Re: No suitable driver found for java:PostgresDS
chewbacca
do-not-reply at jboss.com
Mon Nov 26 08:16:08 EST 2007
Hi Vicky,
I managed to run the test, and it worked. I used the follwing JSP code:
<%
InitialContext ctx=new InitialContext();
DataSource ds=(DataSource)ctx.lookup( "java:PostgresDS");
Connection con=ds.getConnection();
System.out.println("Connection successful");
con.close();
%>
and it printed 'Connection successful' in the JBoss console window.
What does it means? That the JDBC driver is correct?
Thank you,
Andre
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107718#4107718
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107718
More information about the jboss-user
mailing list