The issue isn't with any of this code.

It's in how you are configuring the DataSource in your container.
Sounds like you are specifying host and port, but, you typically must
also specify a database or schema within that server. That should be
the one containing your data table.

On Fri, Sep 24, 2010 at 4:49 PM, Sam Yang <[email protected]> wrote:
> I got  "java.sql.SQLException: No database selected", but my database config
> is right,who know what's wrong?
>

Reply via email to