Feeds:
Posts
Comments

Archive for the ‘JAVA’ Category

I was trying to access a secure web site using Apache HttpClient API. However, it was failing giving me the following exception
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
In apache HttpClient website, it states that “HttpClient provides full support for HTTP over Secure Sockets Layer (SSL) or [...]

Read Full Post »

This article is a small POC on how the readOnly attribute used in Spring Transaction strategy improves database access in case of transactions that involve only READing data from datasources.
First a small extract from the Spring reference documentation:

The TransactionDefinition interface specifies:
• Isolation: the degree of isolation this transaction has from the work of other transactions. For [...]

Read Full Post »

I have been using Spring TX Management for quite sometime until I recently came upon an article describing the common pitfalls that occur in Transaction Strategies. Although many cases were covered, I would like to describe the common one that is seen in most code.
I am going to explain it with the help of a [...]

Read Full Post »

Few days back I have started looking at Apache Camel Framework. It is an excellent routing framework that can perform many amazing functionalities in just few lines of code.However, due to the lack of documentations more complex code might get harder to implement. And as a beginner you might get confused in to which message [...]

Read Full Post »

In many different forums, I have seen posts regarding how to send parameters to JasperReport. If you are still looking for an answer, you can definitely find it over here.
I am assuming that you are familiar with JasperReport and the JRXML template.
JasperReport allows you to pass parameters to the report during runtime. In order to [...]

Read Full Post »

In one of our current integration projects, where we were using Spring, we had a Spring bean which was constantly running every 20 to 30 seconds pooling the database and fetching new status of records. These statuses would be constantly sent to our client as and when new status came up. This Spring bean is [...]

Read Full Post »

I have been working with wicket for the last one year. It is one of the best web frameworks. In our organization, we are using Oracle Application Sever (OAS) to deploy our applications. We were using OAS 9.0.4.3 and we had no issues with wicket. Recently we upgraded our OAS to 10.1.2.0.2 and then issues [...]

Read Full Post »

Have you ever faced strange or unexpected problems with your application after putting it into production? Is the same code works just fine when you test it? Is the problem just too hard to even simulate?Well if the problem does not appear when you test it but its there in production and assuming you have [...]

Read Full Post »

Barcode Encoding in JAVA

Generating barcodes, be it 1D or 2D, have never been easier. I will be using the Barbecue open source project hosted on sourceforge to generate a 1D barcode. After the barcode is generated I will decode the barcode by uploading it to a website whose service we shall use. However its also very simple to [...]

Read Full Post »

Today we shall look into a nice feature on how to secure our JDBC connections. It’s generally a standard to make JDBC connections in java applications to connect to database. We mostly have web applications running in a web container. These web applications make JDBC connections to the databases to retrieve data for the applications. [...]

Read Full Post »