Book review: CSS – The Missing Manual
Amazing book to start CSS. Language is simple and step by step approach enables hands on with CSS.
Book review: CSS – The Missing Manual
Amazing book to start CSS. Language is simple and step by step approach enables hands on with CSS.
Found excellent article about Spring MVC
Only problem is final version is code is not given by writer.
You can download it from springapp.tar.
While reading articles on testing came across JUnit antipatterns very nicely written in depth article.
I was looking for good network simulator for CCNA. After lot of search I found two very useful simulators.
We will create global resource by adding its details in server.xml in tomcat.
$CATALINA_HOME/conf/server.xml
<Resource name="jdbc/myDB" auth="Container" type="javax.sql.DataSource" username="<<DB_user>" password="<<DB_pass>>" driverClassName="oracle.jdbc.OracleDriver" factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" url="jdbc:oracle:thin:@localhost:1521:XE" maxActive="20" maxIdle="10" maxWait="-1" />
Config is simple as it looks
JNDI Name for resource will be : jdbc/myDB
username: database user name
password: database user password
driverClassName : In our case its Oracle dirvers
url: connection url to db server.
Reference of resource will be specified in context.xml
$CATALINA_HOME/conf/context.xml
<ResourceLink name="jdbc/myDB"
global="jdbc/myDB"
type="javax.sql.DataSource"/>
Tomcat 6
Oracle 10G Express edition
Ref:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
http://www.datadisk.co.uk/html_docs/java_app/tomcat6/tomcat6_jdbc.htm