I dont want J2EE enterprise Connnector architecture.
My simple requirement is : I would like to get some fuctionality, which is there in C program.
Ok. However, you asked a question and I gave you an answer. You can get the functionality of the C program with the JCA API. (See link above more info)
Good luck!