Install Or Manage multiple versions of Java on OS X
· β˜• 3 min read · ✍️ Dinesh
A few weeks ago my Mac hard drive crashed and I had to get a new grad drive. As part of upgrade, I had to wipe my drive clean and install Yosemite. What I did not realize was that Apple had goofed up Java instlation on Mac, as result of which my IntelliJ idea compalained that it requires legacy Jdk version of Java 6. The dilemma that I had was hwo am I going to mainain the different version of Java.

Restful Webservice in 7 Steps using Spring boot
· β˜• 5 min read · ✍️ Dinesh
Last week I was working on a new application which required me to build a web service to access it’s functionality. I decided to check out Spring 4 RestController. I was amazed at how far we have come from writing all the boiler template code, xmls etc for making a restful call. With Spring4 boot, it was matter of adding simple annotation for RestController. I will be honest, I have not been up to date on how to use a Restful webservice, I built a couple of Restful service a couple of year ago, but most of the services in my current project are old school (SOAP calls), so I never got a chance to build one from scratch and at peace.

A quick tutorial on SAAJ API
· β˜• 6 min read · ✍️ Dinesh
We ran into an issue last week. I had to call a third party web service that was built in PHP. Anyone who wokrs with Java will tell you that calling a web service is not more 15 minutes coding. You take the wsdl, run wsdl2Java command from Axis2 and start calling the service. Like I said before, things are never so straightforward. No matter what version of Axis or CXF we used, we kept getting this error:

Read / Write Excel file in Java using Apache POI
· β˜• 6 min read · ✍️ Dinesh
About a year or two ago I was working with finance team where they wanted to pull the credit card transactions for all the customer using various combinations. Ex – – Get the credit card txns for today or certain date. – Get the txns for customer who used Mastercard or Visa. However they wanted this application to generate a Excel file and save it on their local machine so that they could prepare reports for our CEO.

13 Most Common Java Keytool Keystore Commands
· β˜• 3 min read · ✍️ Dinesh
I was working on a project last month where I had to call a third-party web service. The third-party web service wanted me to add a SSL keystore and I struggled. I could have gone to my UNIX Admin and asked him to do this job but decided to learn about all about keystores. I went through couple of forums and SOΒ and ended my spending 2 – 3 hours reading about keystores and commonly used commands.

10 IntelliJ IDEA Keyboard Shortcuts That You Must Know
· β˜• 6 min read · ✍️ Dinesh
Linux nerds/geeks happily flaunt their keyboard skills when they get a chance. I admit that I am not a shortcut junky but I too have some keyboard shortcuts under my sleeve that I use in day to day work. I have to say that not only have these shortcuts increased my productivity but they have also made my life a lot easier. I am sharing my 10 most used shortcuts at work.

About Me
· β˜• 1 min read · ✍️ Dinesh
Still to come

Apache Camel : How to call java webservice
· β˜• 6 min read · ✍️ Dinesh
I have made up my mind to get rid of WSO2 ESB at my office. It is clumsy, buggy, hard to test, no body wants to work on it and the documentation is horrible. I looked at various alternative and Apache Camel was free and easy to set up and work with me. To cut the story short, I was able to run most of the example but was struggling with CXFΒ to call a third party service hosted at a random url.

Launch Website in Amazon EC2
· β˜• 9 min read · ✍️ Dinesh
I wrote this blog about a year ago and left it in the draft because this post somehow was not getting auto saved on WordPress and since its long post it took time for me type, take screenshots and paste. I did not have energy and time to do it all over again. I had a copy of it though in my google drive and I cannot tell you how many times this document has helped me.

How to configure JNDI with Spring and Jboss4/5
· β˜• 3 min read · ✍️ Dinesh
This is a simple process but if you try and search on the web you will come across various incomplete solutions which will leave you more confused than you already were. This configuration involves just four simple steps that I will walk through to help you set up JNDI on Jboss. I am using Jboss 4.3, but this should be valid for other version of Jboss as well. I have a web application which is built on Spring 3.

Rails: Jquery is not loading
· β˜• 2 min read · ✍️ Dinesh
It’s been a while I have posted anything. I have been extremly busy and have been working on an extremely critical project where we were asked to become PCI 2.0 compliant. I worked on some interesting problems however today I will be discussing on something trivial and discuss my frustration about Rails. I have to admit that a number of times I thought I should just give up and start learning Python or stick to my forte i.

How to post parameters to a url using Ajax/Javascript between two website
· β˜• 3 min read · ✍️ Dinesh
I am working a new project and I recently ran into an interesting problem. One of the web site that I keep up at work was supposed to take the user toΒ another website which required me to add post parameters. EX - www.mywebsite.makeapayment.com ==> Collects Billing information ex - name, amount, address etc.==> Post this information to www.vendor-website.com. I did not realize the problem until I started coding and my colleague pointed out that as soon as www.

Using multiple profiles in Maven + Eclipse
· β˜• 3 min read · ✍️ Dinesh
It’s possible that many of you already knew this but if not then here’ some basic info on Maven profiles. I have been using maven for over 2 and half years now, and have been copy pasting assembly and install files. I never bothered to know how Maven figures out how to read assembly and install file names. For example- PROBLEM: For all my projects I have been using assembly-jboss.xml to put the file/directory information and telling maven about my desired directory structure i.