2010年6月8日星期二

Visibroker on Weblogic

I need to deploy an application on WebLogic, and this application acts as a visibroker client. But when connect it always has this error,

java.lang.Error: org.omg.CORBA.INITIALIZE: Could not initialize Invalid typecode kind org.omg.CORBA.TCKind@9bbe66 vmcid: 0x0 minor code: 0 completed: No

This is because WebLogic uses its own ORB. Configure the following system properties, it will be OK:

-Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB
-Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton

Using putty tunneling to bypass firewall

移除选定内容的格式设置During my developement, I need to open a SMSC simulator on my own PC, and let a server to connect to this simulator, but there is a firewall block the server open a connection to my PC. Here is how to use putty to configure it.

My simulator listens to port 8003, so configure putty tunnel like the following figure,

Select the type as Remote. Enter source port as 8003(you can also choose other port), and enter Destination as localhost:8003. Now the server also opens port 8003, so now you can direct all traffic to the server localhost, and the tunnel will direct the traffic to my own PC.

Attention: in the above configuration, the option "Local ports accept connections from other ports" must be checked.