Thursday, July 21, 2011

introduction to Jboss as 7 and Datasource configuration

Introduction:
1.download jboss as 7 from http://www.jboss.org/jbossas/downloads/
2.study directory stucture by reading user manual
3.there are two deployment mode 1.Domain 2.Standalone

Datasource Configuration:

1)add following code in standalone.xml or domain.xml
subsystem xmlns="urn:jboss:domain:datasources:1.0" ...
datasources
datasource jndi-name="java:/MySqlDS" pool-name="MySqlDS" enabled="true" jta="true" use-java-context="true" use-ccm="true"
connection-url
jdbc:mysql://localhost:3306/dbname
/connection-url
driver-class
com.mysql.jdbc.Driver
/driver-class
driver
mysql-connector-java-5.0.6-bin.jar
/driver>
/datasource
drivers
driver name="mysql-connector-java-5.0.6-bin.jar" module="com.mysql"/
/drivers
/datasources
Here...............
mysql-connector-java-5.0.6-bin.jar in this jar not conatain META-INF\services\java.sql.Driver file so
first configure or update jar
i)extract jar , then create empty subdirecory META-INF
ii)then create empty subdirecory META-INF\services
iii)then create file META-INF\services\java.sql.Driver which contain single line
like.. com.mysql.jdbc.Driver
iv)update jar by ... jar -uf mysql-connector-java-5.0.6-bin.jar META-INF\services\java.sql.Driver


Add folowing code in module.xml of
..\jboss-as-web-7.0.0.Final\modules\com\mysql\jdbc\main


resources
resource-root path="mysql-connector-java-5.0.6.jar"/
/resources


if above stucture is not present then create it

start using Jboss as 7 .... really nice and light weight

Monday, April 25, 2011

Java History

JAVA:s
Java is a programming language originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995 as a core component of Sun Microsystems.
James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991.
The language was initially called Oak after an oak tree that stood outside Gosling's office; it went by the name Green later, and was later renamed Java, from a list of random words.
It promised "Write Once, Run Anywhere" (WORA)
For example, J2EE targeted enterprise applications and the greatly stripped-down version J2ME for mobile applications (Mobile Java). J2SE designated the Standard Edition. In 2006, for marketing purposes, Sun renamed new J2 versions as Java EE, Java ME, and Java SE, respectively.

Principles:
1)It should be "simple, object oriented, and familiar".
2)It should be "robust and secure".
3)It should be "architecture neutral and portable".
4)It should execute with "high performance".
5)It should be "interpreted, threaded, and dynamic".
6) Java uses an automatic garbage collector to manage memory in the object lifecycle.

Saturday, March 27, 2010

Pramod Anarase

Hi...
Friends i am here only for u .i want to thanx u all being my friend.i promise u i never forget u..