Name: Rocky

Email:

Posts by rjaiswal

    Java and Ruby integration via SOAP

    In my last blog we talked about Ruby and Java integration via JRuby. Since JRuby runs on JVM, bytecode can be shared but in case you do not want a JVM level integration then SOAP is usually your next level of support.

    Imagine a scenario where you want to call a SOAP server written in Java from Ruby, this is quite common as most enterprises have their middleware written in Java and new application can be written quickly in Ruby/Rails. Here is how you can go about integrating the two -

    Read more »

    Integrating JRuby and Java to create a mini rules engine

    Ruby is a beautiful language, but that is just me saying it. A thing of beauty has to be experienced on its own by someone. A major reason behind the slow adoption of Ruby in the enterprise is infrastructure / installation and speed. Although, personally I have never seen Ruby as slow (specially 1.9), but asking someone to run Ruby code on his/her machine is a problem as they need to install Ruby and other associated 'gems' used by my program. Enter JRuby - it is a 100% pure Java implementation of the Ruby Programming Language, so in effect you can run a JRuby program on any machine that has a JVM. Just include a jar and you are good to go.
    Read more »

    Big bad projects

    A long time back (when I had more hair on my head), one of my managers remarked - "You know guys, I just met an old friend of mine who now works for _____ as a Project Manager and he said that he delivered a 18 months fixed price project right on time and right on schedule. We need to have the same capabilities as ____."

    I sat dumbfounded, I wanted to scream out "He was just lucky or he was lying or you should talk to the team members who worked in that team", but I didn't say anything because pesky "juniors" aren't looked upon very nicely in hierarchical organizations.

    I now imagine myself having a conversation with the same manager in that same room, which goes something like this.
    Read more »

    Working with Git

    A video blog / screencast to help you get started with Git.






    Integrating Spring 3 with JPA 2

    I have been working on Grails recently and am amazed with the productivity gains it gives. Grails is great for giving you a kick-start, it uses convention over configuration and gives you things such as ORM, transaction management, dependency injection among others, without you writing a single line of configuration.

    I decided to mimic the Grails behavior in a Spring + Hibernate application. To stay on the cutting edge I decided to use Hibernate 3.5 and Spring 3, to top it up I decided to use Hibernate as an implementation of JPA 2. Recently released, Hibernate 3.5 combines the Hibernate Annotations and the Hibernate Entity-Manager projects into Hibernate-Core, so basically its just one jar which provides the full implementation of JPA 2. For advantages of using JPA 2 see the excellent presentation here - http://jazoon.com/portals/0/Content/ArchivWebsite/jazoon.com/jazoon09/download/presentations/8461.pdf
    Read more »