This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
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: 2543
    
  10

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: DataSource in stand alone javafile?
 
It's not a secret anymore!