Skip to content

JMS

JMS binding。輸出的成員是 jms,每個物件都帶 bindingVersion: 0.0.1

@jmsServer

typespec
extern dec jmsServer(target: Namespace, config: valueof AsyncAPIJmsServerBinding);
欄位型別必填
jmsConnectionFactorystring
propertiesunknown[]
clientIDstring

套用在服務 namespace 上。

jmsConnectionFactory 是必填。缺它時,binding 會透過 missing-binding-field 回報並整個丟棄。

@jmsChannel

typespec
extern dec jmsChannel(
  target: Interface | Namespace,
  config: valueof AsyncAPIJmsChannelBinding
);
欄位型別必填
destinationstring
destinationTypestring

destinationTypequeuefifo-queue。JMS 沒有列 exchange,這一點和 Anypoint MQ 不同。

@jmsMessage

typespec
extern dec jmsMessage(target: Model, config: valueof AsyncAPIJmsMessageBinding);
欄位型別必填
headersunknown