Example #1
0
func main() {
	stomputils.JmsHost = "192.168.1.105"
	stomputils.JmsDest = "/queue/listenerBond.IDBCenter"
	stomputils.JmsPort = "61612"

	stomputils.Handle(handleMessage)
}
Example #2
0
func main() {
	//stomputils.JmsHost = "192.168.1.132"
	stomputils.JmsDest = "/topic/IDC.BondOffer"
	stomputils.JmsPort = "61612"

	var err error
	db, err = sql.Open("mysql", "artogrid:artogrid@tcp("+mysqlIp+":3306)/idb_center?charset=utf8")
	stomputils.CheckErr(err)
	defer db.Close()

	stomputils.Handle(handleMessage)
}