Wednesday, March 5, 2014

How to debug Java code when using ANT script In IntelliJ IDEA


This post illustrates how to debug a Java Program which is executing stating from ANT script. This type of situation come across when executing a program which is in jar file and need to add additional parameters which were set up using ANT script arguments

Following is how we can write a ANT script , red highlight two lines support for the debug

 
                              classpathref="compile.classpath"
                      fork="true">
           
               
           


           
           
           
           
         
       
   

The following screen shot illustrates way we can configure Idea IDE to debug Java processor  , this port 5432 need to be same with IDE configuration




If you have any query please post

Monday, March 3, 2014

JPA vendors integration with Spring

Today I would like to post JPA vendor integration with Spring Frameworks. JPA is a Java Persistence API , a standard specification for JEE projects , There are many compliant implementation , it is call JPA vendors

Following are the popular JPA vendors
  1. EclipseLink
  2. Hibernate 
  3. OpenJPA