Publishing Webservice on Multiple Network Interfaces

Recently our IT support group decided to move one of component to a new VCS Cluster.

This component is a service component exposing various web services which are consumed by another .Net based UI component.

The initial attempt was not successful as the component was incompatible with multi-homed hosts (those with multiple IP addresses / network interfaces), because it listen to port 80 on the primary network interface only.

As currently the component was running on a single-homed host, there’s no problem, since there’s only one IP address, and no ambiguity.

But VCS clusters are multi-homed devices – they have local IP, and cluster IP.

And in VCS world, nobody is connecting to host name / IP directly, connection should be established to cluster name / IP.

So to make the component publish web service on all interfaces, instead of using localhost or host address, use 0.0.0.0 as address. With 0.0.0.0 you tell it to ‘listen’ to incoming connections to any ip-address (associated with box).

More



Making Eclipse more like IntelliJ IDEA

I really like both Eclipse and IntelliJ IDEA. But at work I had to use Eclipse and for my personal coding I prefer IntelliJ IDEA.

The main pain point here is remembering keyboard shortcuts. I didn’t wanted to remember different keystrokes for same functionality in Eclipse and IDEA.

There are some features from IDEA which are not supported by Eclipse out of box. But now-a-days, the gap is closing/widening depending upon which release you use.

So here I provide instructions on how to make Eclipse as much close like IDEA from usage perspective.

Click to continue reading “Making Eclipse more like IntelliJ IDEA”

More



TestDox and IntelliJ IDEA 9

I really missed TestDox plugin for IDEA. There is no official version as of now for IDEA 9.0

I tried to install latest available version but its not compatible. I played around with plugin.xml by removing until-build=”IU-93.94″, it got enabled but then threw following exception,

Caused by: java.lang.NumberFormatException: For input string: "IU-93.94"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:449)
	at java.lang.Integer.parseInt(Integer.java:499)
	at org.codehaus.testdox.intellij.IntelliJApiFactory.<init>(IntelliJApiFactory.java:24)

I had patched the IntelliJApiFactory and updated .class file in the testdox-plugin-1.1.12-diana.jar. I am using it for some time and my usage is limited to navigate between class and its test. Not seeing any exceptions but overall IDEA 9.x plugin api are changed a lot and using a patched plugin might crash IDEA.

But for those who can’t live without it, can download it here. Extract it to your IDEA plugins directory.

More



Maven, dbdeploy, HSQLDB without Ant

Believe me, integrating Maven and dbdeploy is a pain using Ant. For some weird reasons, dbdeploy ant task was causing maven build to crash.

So tried to integrate dbdeploy with maven without ant on my Snow Leopard –

Click to continue reading “Maven, dbdeploy, HSQLDB without Ant”

More



Integrating Spring and EHCache

Using Spring Modules and EHCache, one can transparently cache method results. Spring Modules uses a proxy which intercepts call to the method of bean; consults the cache to check if method was called with same parameters before, if so will return cached result.

EHCache is the actual provider of caching solution and Spring Module handles method interception and result storing in cache.

Click to continue reading “Integrating Spring and EHCache”

More



maven2, slf4j, hibernate error

Got following exception while executing “mvn test”

java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory

Click to continue reading “maven2, slf4j, hibernate error”

More



mysql prompt auto complete

To enable auto complete on mysql prompt –

mysql> \#

After above

mysql> show DATA<PRESS TAB>
DATABASE DATABASES DATA

More



Converting Mailman/Pipermail text archive to mbox

I wanted to import mailing list archive in my Apple Mail.app which support “Files in mbox format”. Found following python script by Paul which converts text archive to mbox.

Click to continue reading “Converting Mailman/Pipermail text archive to mbox”

More



My initial attempts at creating websites…

Hmm…. I never thought I will find it again… While going through some of old CDs, I found earlier sites created during my four year degree course in Computer Engg at PICT.

  1. 1999-2000 – This was the first attempt while I was in my Third year..was quite obsessed with DHTML… 🙂
  2. 2000-2001 – This was in the Final year…Flash had taken over by then……

There is still final version of site still trying to find…. something for this weekend…

More



Data Loss Bug in Cocoatech’s Path Finder 5.5.6

Cocoatech’s Path Finder is a great application. I am trying it out for some time now. I have noticed following bug couple of times.

If you have a file of more than 4gb stored on file system of type “Mac OS Extended” , and if you try to move it to a FAT32 partition, it fails.

Which is fine since max file size on FAT32 file system is 4gb. What is frustrating is that Path Finder doesn’t tell you this that the file move operation is failed. On top of it, it will remove file stored on “Mac OS Extended” file system, thinking the file move operation was successful.

Uhhh….big thumbs down… I wish they fix this problem….

More



Next

Prev


WordPress Loves AJAX