Tuesday, November 16, 2010

Configuring database connectivity

User feedback has indicated that the DBConnectionInfo configuration element could use some documentation. DBConnectionInfo is particularly inscrutable, compared with other XML plan file elements, because it uses "constructor-arg"s that are referenced by index, instead of some type of descriptive property name. The user sees "<constructor-arg index="0"" and has no idea what that means. So I’ll detail the elements right here:
<bean id="connectionInfo" class="org.diffkit.db.DKDBConnectionInfo">
  <constructor-arg index="0" value="oracle" />  1
  <constructor-arg index="1" value="ORACLE" />  2
  <constructor-arg index="2" value="XE" />      3
  <constructor-arg index="3" value="" />       4
  <constructor-arg index="4" value="1521" />    5
  <constructor-arg index="5" value="diffkit" /> 6
  <constructor-arg index="6" value="diffkit" /> 7
1Your name for this ConnectionInfo element. You can select an abitrary name, and it has no relationship with any real DB construct. This name is merely for presentation-- it will appear in the logs and some types of reports.
2The "Flavor" of connection. Can be any one of: H2, MYSQL, ORACLE, DB2, SQLSERVER, POSTGRES. These correspond to the constants in the Java enum org.diffkit.db.DKDBFlavor.
3The database name. This is what the vendor refers to as the database name.
4The hostname. Can also be an ip address.
5The port.
6The DB username you want to log in as.
7The DB password for username in 6.

For Java programmers

DiffKit is configured using the "core" Spring framework. The above <bean></bean> XML element simply plugs the constructor-args into the longest Constructor of the org.diffkit.db.DKDBConnectionInfo class.


  1. The code can be configured. It depends on how you provide the function to it.

    SEO Philippines

  2. Thanks for explaining by line by line, surely this clearly well explained

    Top SEO Outsourcing Company

  3. Our company sees this thing as something very important. As we all know, database is everything to a system.

  4. Hi friends, This is Murali from Chennai. I am a technology freak. Your technical information is really useful for me to know more about this technology. Keep update your blog.
    Oracle Training in Chennai

  5. Thanks for the nice information. I am sure, I will tweet this to my twitter account. This will help a lot of users.Kansas CIty SEO Search engine optimization is not an event, but rather a process.

  6. Thanks for share this Data base connectivity string. this string are use more time connect to data base. I am SEO executive and read more time developing helpful blogs and best SEO blog because its very Informative.

  7. Rsweb Consulting is a leading name in providing comprehensive search engine optimization services (SEO)Seo services Canada​. The experienced and professional SEOs employment. Thanks for sharing Detail.

  8. I'am planning to join Oracle certified course. I want some expert advice whether i should go for it or not.
    oracle training in chennai|FITA Chennai complaints

  9. Really great news!!! this information is well worth looking everyone. Good tips. I will be sharing this with all of my friends! Thank you for sharing valuable information. Google seo service share diffrent types of blogs realted SEO ,SMO linkbuilding etc. SEO blog, SEO services, seo tips, Google seo services, Top seo blog.

  10. It's nice blog I have really enjoyed keeping up with you on this blog.This is very useful post for everyone. Thank you so much this post.

    Best Link Building Company

  11. Every weekend i used to pay a quick visit this web site, because i want enjoyment, for the reason that this this web page conations truly fastidious funny material too.
    Internet Marketing

  12. Thanks for sharing the informative blog with us. If you are looking for the seo outsourcing service provider then, aussiepinoycallcentre.com.au is the best option for it. For more customer support outsourcing

  13. Your article contains very much information about database connectivity. Your article is very informative and useful to know more about the garena game hackers. Thank you. Oracle integration cloud service Certification

  14. Thank you for sharing such a Magnificient article about database. I found this blog very useful for future references. keep sharing such informative blogs with us. Efficient Policy Management Software

  15. This is excellent information which is shared by you. This information is meaningful and magnificent for us to increase our knowledge about it. Keep sharing this kind of information. Thank you. Read more info about Seo Outsourcing Company in Uk

  16. Giftkarte.com makes it simple, secure, and quick to send the best presents from India Gift to Pakistan for any occasion. Giftkarte.com can handle domestic presents in India if you want to mail them.