File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DataSource in stand alone javafile?" Watch "DataSource in stand alone javafile?" New topic
Author

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,
seetharaman.v
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

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
youtube channel
 
Consider Paul's rocket mass heater.
 
subject: DataSource in stand alone javafile?