- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
目前我正在使用camel和wmq。我试图做的是向 wmq 发送消息。我使用 Spring 框架配置 Camel 。以下是配置 wmq 的方法:
component.xml
<bean id="websphere-mq" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<bean class="com.ibm.mq.jms.MQQueueConnectionFactory">
<property name="transportType">
<util:constant static-field="com.ibm.mq.jms.JMSC.MQJMS_TP_CLIENT_MQ_TCPIP" />
</property>
<property name="hostName" value="localhost" />
<property name="port" value="1414" />
<property name="queueManager" value="localmanager" />
<property name="channel" value="CH.ADM1" />
<property name="CCSID" value="819"/>
<property name="useConnectionPooling" value="true" />
</bean>
</property>
</bean>
config.xml
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="stream:in?promptMessage=Ausweisnummer: "/>
<process ref="TransformToXML"/>
<to uri ="xslt:mobako.sender.xsl"/>
<to uri ="websphere-mq:queue:LSMH.ZKSEAP.SERVICEBUS"/>
</route>
<route>
<from uri="websphere-mq:queue:ZKSEAP.LSMH.SERVICEBUS"/>
<to uri="stream:out"/>
</route>
</camelContext>
当我检查wmq时,我发现wmq一直在监听我的进程,但没有收到任何消息。
然后为了检查我的 wmq 配置是否正确,我尝试将 config.xml 更改为如下所示:
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="websphere-mq:queue:ZKSEAP.LSMH.SERVICEBUS"/>
<to uri="stream:out"/>
</route>
</camelContext>
之后我尝试将消息手动写入 wmq。当我尝试运行我的进程时,来自 wmq 的消息就会写在我的控制台上。
然后,我总结一下,通过我的配置,我可以从wmq获取消息,但无法写入wmq。
问题到底是什么?我的配置是否有问题或缺失?非常感谢。
已编辑
嘿嘿,终于知道出了什么问题了。问题是:我的 jms 版本与我的camel 版本不一样。但是,在我更改 jms 版本后,我的服务器上出现以下错误(关于 wmq):
2014-06-05 15:14:34,859 [Axis2 Task] ERROR WMQMsg - Expected MQ message format ' MQSTR ', but received 'MQHRF2 '
如何解决?再次感谢。
最佳答案
我认为您的问题在于 JMS 消息类型和转换。请参阅以下链接并尝试转换从 stream:in
获取的消息类型。
关于java - Camel : Write Message to WMQ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24057475/
我正在尝试获取 AMS 与 MQ Explorer 配合使用的快速入门 现在我在 Linux 上有用户 Bob 和 Alice, 以及 Windows 和 Linux 上的用户 Exp(运行资源管理器
如果一个发布者向一个MQ主题发布了一些消息,但是订阅者没有接受它,那么这些消息保存在哪里呢?有什么方法可以知道消息数吗? 最佳答案 由于 MQ 是 JMS 兼容的,所以答案主要是 JMS 答案。 如果
如果 JMS 客户端应用程序要求不能丢失任何消息,也不能重复发送以供处理,并且每条消息与其他消息无关(无批处理),那么哪种组合可以满足这些要求:- 持久化+自动确认 session 模式(异步消费者)
我正在尝试将现有的 Java 应用程序连接到 WebSphere MQ 8。这在过去适用于其他版本的 Java 和 WMQ,但对于 Java 8 和 WMQ8,这不起作用。我得到: handling
假设有一个移动应用程序需要从服务器发出同步请求/查询某些数据。该请求将首先到达托管的 JMS 客户端,该客户端将在外部队列(来自合作伙伴)上发布消息/请求。现在这里开始不清楚。我如何以同步方式从合作伙
对于以下代码 public class JMSSamplePut { private static String initialContextUrl = null;
我对 有点困惑syncpoint 来自 WebSphere MQ。根据 WMQ 信息中心的引用,同步点 定义如下: The decision to commit or back out the cha
我正在使用 JBoss EAP 7、用于连接 WMQ 的 WMQ 资源适配器和用于 AMQ 的 AMQ 资源适配器。我必须从 AMQ 获取消息并执行一些逻辑并将其放入 WMQ。每当 JMSProduc
目前我正在使用camel和wmq。我试图做的是向 wmq 发送消息。我使用 Spring 框架配置 Camel 。以下是配置 wmq 的方法: component.xml
当本地队列管理器在其 AMQ 错误日志中收到以下消息时: 09/13/12 08:00:19 - Process(3017.20) User(mqm) Program(amqrmppa_nd) AMQ
当我在没有安装 MQ 服务器和客户端的情况下使用 C# 连接 WebSphere MQ 时,出现异常 The type initializer for 'IBM.WMQ.MQQueueManager'
使用 WebSphere MQ 我想设置一个使用队列的主题,以便当应用程序或入站集群连接尝试将消息放入“队列”时,它实际上使用一个主题,并将其发布到 2 个订阅,它们是他们自己有 2 个独立的队列。本
使用 WebSphere MQ 我想设置一个使用队列的主题,以便当应用程序或入站集群连接尝试将消息放入“队列”时,它实际上使用一个主题,并将其发布到 2 个订阅,它们是他们自己有 2 个独立的队列。本
我们正在使用 IBM 的 WebSphere MQ 的 .NET API。 创建 MQQueueManager 对象显然是一项昂贵的操作,因此我们缓存并重用这些对象的池。 目前,对于每个请求,我们访问
我们目前正在为我们的 SVRCONN channel 实现安全导出。此导出将对我们的 LDAP(AD 或 UNIX)进行身份验证。我们当前的导出实现仅适用于来自 MQ EXPLORER 的连接。 当我
以下是 QMGR 日志文件中有关 WMQ channel 问题的相关部分: --------------------------------------------------------------
我正在使用 WMQ 访问大型机上的 IBM WebSphere MQ - 使用 C#。 我们正在考虑将我们的服务分散在多台机器上,然后我们需要确保两台不同机器上的两个服务不能同时读取/获取相同的 MQ
我有传统的 (com.ibm.mq.jar) MQ Java 应用程序用于测试目的。现在我需要使用该应用程序向 JMS 发送一些消息。当我尝试在 MQ 消息上设置任何 JMS 属性时,例如: mess
我在获取消息 ID 并将其设置为回复的相关 ID 时遇到问题。 这是一段代码: MQBYTE msgID; request_msg.messageId().copyOut(msgID, MQ_MSG_
目前我正在使用骡子,需要在 WMQ 队列中写入。但是我不想使用 WMQ 端点,而是想通过使用 JMS 端点来实现。这是我的配置:
我是一名优秀的程序员,十分优秀!