File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes DataSource in stand alone javafile? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DataSource in stand alone javafile?" Watch "DataSource in stand alone javafile?" New topic

DataSource in stand alone javafile?

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi All,

can we use DataSource in stand alone( there is no web server or web container) java class?

can anybody can explain me?

Thanks & Regards,
Jan Cumps

Joined: Dec 20, 2006
Posts: 2565

Yes. You can use a DataSource in a standalone application.
The Apache commons dbcp project has several examples, like this one.

Regards, Jan

OCUP UML fundamental and ITIL foundation
I agree. Here's the link:
subject: DataSource in stand alone javafile?
It's not a secret anymore!