Using ELOH to say HELO
-S
Picking Beans, Grinding them, adding Chocolate, little Sugar and deep Aroma. Guys we are not making coffee here but talking JAVA. Being a JAVA fanatic I'll be putting down my experiences and sharing knowledge.
IBM DB2
jdbc:db2://
com.ibm.db2.jdbc.app.DB2Driver
JDBC-ODBC Bridge
jdbc:odbc:
sun.jdbc.odbc.JdbcOdbcDriver
Microsoft SQL Server
jdbc:weblogic:mssqlserver4:
weblogic.jdbc.mssqlserver4.Driver
Oracle Thin
jdbc:oracle:thin:@
oracle.jdbc.driver.OracleDriver
PointBase Embedded Server
jdbc:pointbase://embedded[:
com.pointbase.jdbc.jdbcUniversalDriver
Cloudscape
jdbc:cloudscape:
com.cloudscape.core.JDBCDriver
Cloudscape RMI
jdbc:rmi://
RmiJdbc.RJDriver
Firebird (JCA/JDBC Driver)
jdbc:firebirdsql:[//
org.firebirdsql.jdbc.FBDriver
IDS Server
jdbc:ids://
ids.sql.IDSDriver
Informix Dynamic Server
jdbc:informix-sqli://
com.informix.jdbc.IfxDriver
InstantDB (v3.13 and earlier)
jdbc:idb:
jdbc.idbDriver
InstantDB (v3.14 and later)
jdbc:idb:
org.enhydra.instantdb.jdbc.idbDriver
Interbase (InterClient Driver)
jdbc:interbase://
interbase.interclient.Driver
Hypersonic SQL (v1.2 and earlier)
jdbc:HypersonicSQL:
hSql.hDriver
Hypersonic SQL (v1.3 and later)
jdbc:HypersonicSQL:
org.hsql.jdbcDriver
Microsoft SQL Server (JTurbo Driver)
jdbc:JTurbo://
com.ashna.jturbo.driver.Driver
Microsoft SQL Server (Sprinta Driver)
jdbc:inetdae:
com.inet.tds.TdsDriver
Microsoft SQL Server 2000 (Microsoft Driver)
jdbc:microsoft:sqlserver://
com.microsoft.sqlserver.jdbc.SQLServerDriver
MySQL (MM.MySQL Driver)
jdbc:mysql://
org.gjt.mm.mysql.Driver
Oracle OCI 8i
jdbc:oracle:oci8:@
oracle.jdbc.driver.OracleDriver
Oracle OCI 9i
jdbc:oracle:oci:@
oracle.jdbc.driver.OracleDriver
PostgreSQL (v6.5 and earlier)
jdbc:postgresql://
postgresql.Driver
PostgreSQL (v7.0 and later)
jdbc:postgresql://
org.postgresql.Driver
Sybase (jConnect 4.2 and earlier)
jdbc:sybase:Tds:
com.sybase.jdbc.SybDriver
Sybase (jConnect 5.2)
jdbc:sybase:Tds:
com.sybase.jdbc2.jdbc.SybDriver
To test your driver once it's installed, try the following code:
{
Class.forName("Driver name");
Connection con = DriverManager.getConnenction("jdbcurl","username","password");
//other manipulation using jdbc commands
}
catch(Exception e)
{
}
You can remove the following components:
You can remove all or selected ones depending on what services of JBoss your application will be using. Generally applications have their own implementation of Schedulers, Mail services Queues etc. but if you are dependent on JBoss's implementation then choose wisely.
How and What to remove:
For removing the ones listed above you need to take care of their dependencies else JBoss will be sad and fill your log.
Slimming helps ... LEANER your code FATTER your salary ... :) .
-S
I am not sure how many of you have visited http://24x7-java.blogspot.com/ and felt good.
You'll find lots of pages describing the process of enabling ssl on JBoss, but many of them explain in a way which it too technical. The intention here is to let everyone do it easily (on windows OS).
So describing it in baby steps
Q. What you need?
A. JDK and JBoss
Step 1. Open command prompt and goto bin directory under JDK (not jre) and execute
keytool -genkey -alias tomcat -keyalg RSA
(if you have JAVA_HOME/bin in your system path then you can just execute the above command on the prompt ).
You'll be prompted for the following and fill as per your need.
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: Sunil
What is the name of your organizational unit?
[Unknown]: development
What is the name of your organization?
[Unknown]: test
What is the name of your City or Locality?
[Unknown]: Shimla
What is the name of your State or Province?
[Unknown]: HP
What is the two-letter country code for this unit?
[Unknown]: IN
Is CN=Sunil, OU=development, O=test, L=Shimla, ST=HP, C=IN correct?
[no]: Yes
Enter key password for
(RETURN if same as keystore password):
Keep the key password same as your keystore for ease.
Step 2. Copy the default keystore created in your C:\Documents and Settings\<currently-loggedin-user>.keystore
to
<drivepath>:\jboss\server\default\conf and rename it to my.keystore
Step 3. Edit file
<drivepath>:\jboss\server\default\deploy\jboss-web.deployer\server.xml or
<drivepath>:\jboss\server\default\deploy\jbossweb-tomcat55.sar\server.xml depending on the version of jBoss and make the following changes.
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false"
strategy="ms"
address="${jboss.bind.address}"
keystoreFile="${jboss.server.home.dir}/conf/my.keystore"
keystorePass="keypassword"
truststoreFile="${jboss.server.home.dir}/conf/my.keystore"
truststorePass="keypassword"
sslProtocol="TLS"/>
Step 4. Start you jboss run -c default and thats all. Your application will now be avaliable on both http:// and https:// . If you want to disable http:// Comment the tag below in server.xml
<Connector port="80" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
The Connector port is by default 8080.