In the JDBC API, a DataSource object is a means to access a database. A DataSource object is identified by set of properties which is used to communicate with the server. These properties include information such as the location of the database server, the name of the database, the protocol used to communicate with the server, the username and password of the privileged database user.
In the application server, a data source is known as JDBC Resource
The rest of the post demonstrates how to configure a JDBC Resource in GlassFish application server and retrieve the same data source using JNDI through a simple web servlet
Read more ...
Search This BlogOct 22, 2012Configuring and retrieving a DataSource objectOct 8, 2012Prototype Design Pattern
Definition Applicability Read more ... Jun 17, 2012Getting started with Objective C on Ubuntu with GNUStep
Setting up the Environment sudo apt-get install build-essential sudo apt-get install gnustep sudo apt-get install gnustep-make sudo apt-get install gobjc sudo apt-get install libgnustep-base-dev sudo apt-get install libgnustep-gui-dev Read more ... May 19, 2012A simple java web application in minutes
You can set up your simple java web application in no time using Create Web Application ProjectYour sample application is created and ready to be packaged and deployed Read more ... May 18, 2012Maven cheat sheet for the beginners
Maven is a build automation tool used by the java developers. Some of the commands which I use on daily basis are: Create a Java ProjectAbove is a single line command to create hello world java project. The command creates the project in a well defined directory structure along with the provision to write and execute junit test cases for the project createdRead more ...
Subscribe to:
Posts
(
Atom
)
|