- create
./conf/ral/services/nscmvendor.conf
[CamelConfig]
[.ServiceConfig]
[..Local]
[...@Service]
Name : nscmvendor
DefaultPort : 8118
DefaultRetry : 1
DefaultConnectType : SHORT
DefaultConnectTimeOut : 300
DefaultReadTimeOut : 2000
DefaultWriteTimeOut : 500
[....@Server]
IP : 127.0.0.1
Port : 8080
[....Protocol]
Name : http
[....Converter]
Name : form
- add a command
cmd_xxx
inapp/order/library/define/Cmd.php
- create
app/order/page/commit/Cmdxxx.php
likeapp/order/page/commit/Cmdnwmsorderstockoutcreate.php
- modify
home/map/wmq/pusher/conf/pusher/wmsg-group.yml
add commandcmd_xxx
commands: - send_msg - cmd_nwms_order_stockout_create
- modify ips and url in
/home/map/wmq/pusher/conf/pusher/wmsg-group.yml
service: type: dns tag: gzhxy ips: gzhxy: - 127.0.0.1:9993 path: /commit/recv conntimeout: 4s readtimeout: 6s writetimeout: 2s
- use
Wm_Lib_Wmq_Commit::sendCmd
to send wmq command like code in/home/map/service/page/business/CreateBusinessFormOrder.php
- create
conf/ral/services/wmqproxy.conf
[CamelConfig] [.ServiceConfig] [..Local] [...@Service] Name : wmqproxy DefaultPort : DefaultRetry : 1 DefaultConnectType : SHORT DefaultConnectTimeOut : 100 DefaultReadTimeOut : 1000 DefaultWriteTimeOut : 1000 [....@Server] IP : 127.0.0.1 Port : 9092 [....Protocol] Name : http [....Converter] Name : form
- restart wmq conf
.