【发布时间】:2020-05-08 20:35:55
【问题描述】:
我正在使用 Spring Integration,我正在尝试(在 IntegrationFlow 中)在 Jms 中设置 outboundAdapter 和 connectionFactory。由于我是这些类的新手,因此我无法创建任何不会在该代码 sn-p 中引发错误的东西。如何定义 ConnectionFactory 类才能使其工作?
private MessageChannel workflowExample() {
return IntegrationFlows
.from(requests())
.transform(someTransformer())
.handle(Jms.outboundAdapter(connectionFactory)
.destination("somewhere"))
.get();
}
【问题讨论】:
-
>throw an error in that code snippet- 您需要显示异常及其堆栈跟踪。
标签: java spring jms spring-integration spring-jms