notes on Visibroker Naming Service implicit object cluster and stale object references

Visibroker Naming Service (VBNS) is the Corba naming services provided by Borland Visibroker. It supports implicit object clustering which allows you to bind multiple object references under one name. This is not CORBA compliant, how ever it allows easy/transparent clustering of corba objects instead of explictly going through the hassle of ClusterManager.

Several things to note for implicit object cluster mode:
(1) if the peroperty “vbroker.naming.propBindOn” is set to 1, the implicit…


Read More »

Passing an array of objects when calling a document/literal web service with perl soap::lite

One recent problem I encountered was that I had to write a PERL client for an existing document/literal web service. The service is using polymorphism– there are two methods:

Product[] getProducts1(Products[] products1);
Product[] getProducts2();

“Product” is only an interface. Product1 and Product2 are concret classes that implement the “product’ interface. and the objects in the products array are either Product1 objects or Product2 objects;

Interface Product {
    public String getName();

Read More »

Specifying a Vector-type bean property in Spring bean config XML file

In Spring IOC framework you can define bean properties of some collection types, such as List, Set, Propertie and Map. For example, for a bean that has a property “theList” of type “java.util.ArrayList”, you can specify the value as below:

<bean id="exampleBean" class="examples.ExampleBean">
    <property name="theList">
              <list>
                     <value type="java.lang.String">a…

Read More »

html2opml — my html to opml converter

I tried to import my firefox bookmarks into blogrolling and found that it only accepts OPML but not html. So i wrote a small utility that converts html to opml.

html2opml is a php script that simply converts html to a opml file, and every URL in the HTML input will become an entry in the generated OPML. Since most entries in my bookmarks does not have RSS feeds only “link” type opml outlines with “Url” attribute are created.

The html2opml online utlility is at


Read More »

hacking ganux

Ganux simulates a linux terminal through a browser. According to the author: “I have changed it into a hacking-game. The objective of this game is to gain root of this “machine”. I can assure you that this’s not easy! A surprise will be given to those who can hack into it!”

So this is a minimum operating system running on the browser– quite interesting. I spent some time to look into the javascript code to find the secret there. Apparently it’s not difficult– basically it uses javascript to…


Read More »

photos from National Aero and Space Museum

A usage of firefox GreaseMonkey

quoted from Greasemonkey’s web site (http://greasemonkey.mozdev.org/) : Greasemonkey is a Firefox extension which lets you to add bits of DHTML (“user scripts”) to any webpage to change it’s behavior. In much the same way that user CSS lets you take control of a webpage’s style, user scripts let you easily control any aspect of a webpage’s design or interaction.

Just tried the firefox greasemonkey — I was trying to use it for enhancing the batch website snapshot-capture script: One problem…


Read More »

200x年的第一场雪

今天早上起床一看,赫,天地白茫茫的一片,山舞银蛇,原驰腊象。我惊诧于花生屯的白了。

这可是今年第一场雪耶! 赶快照相。偶诗兴大发,要为相片题词,遂摇头晃脑,出口成章曰:

不算子 咏雪
——————
黑车身上白,
白车身上肿。
红橙黄绿青蓝车,
全都开不动。

女儿不听劝,
雀跃白雪中。
忽然一跤仰八叉,
还嘴硬 “不痛,不痛!“

嘿,文采直追主席他老人家了,咋就以前没发现自己是个诗仙捏?

”怎么还愣着不去铲雪?“ 背后一声娇叱,破坏了眼前的诗情画意,呜呜。。。

(my old post, hehe)


Read More »