Here's my config file.
JBoss SpyMessage (javax.jms.Message instance) throw following exception for
all properties set inside JMSUtils.setTransportHeaders method:
[EMAIL PROTECTED]"javax.jms.JMSException: Illegal property name:
XXX"
and following exception when content type is set inside
JMSSender.createJMSMessage method:
[EMAIL PROTECTED]"java.lang.IllegalArgumentException:
The property name 'Content-Type' is not a valid java identifier."
I couldn't find anybody who tested Synapse with JBossMQ over here.
-Irantha
----- Original Message -----
From: "Andreas Veithen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 04, 2008 2:42 PM
Subject: Re: JMS transport with JBossMQ error
Can you share your Synapse configuration with us?
Andreas
On Tue, Nov 4, 2008 at 07:54, Irantha <[EMAIL PROTECTED]> wrote:
When using a JMS endpoint with JBossMQ I get the following error.
[Axis2 Task] ERROR JMSSender Error creating a JMS message from the axis
message context
javax.jms.JMSException: Illegal property name: JMSXDeliveryCount
at org.jboss.mq.SpyMessage.checkProperty(SpyMessage.java:1006)
at org.jboss.mq.SpyMessage.setStringProperty(SpyMessage.java:750)
at
org.apache.synapse.transport.jms.JMSUtils.setTransportHeaders(JMSUtils.java:618)
at
org.apache.synapse.transport.jms.JMSSender.createJMSMessage(JMSSender.java:483)
at
org.apache.synapse.transport.jms.JMSSender.sendMessage(JMSSender.java:204)
at
org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:104)
at
org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:614)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Synapse is running within JBoss. Is this a known issue?
-Irantha
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<!-- Introduction to switching transports - JMS to http/s -->
<definitions xmlns="http://ws.apache.org/ns/synapse">
<proxy name="StockQuoteProxy" transports="jms">
<target>
<inSequence>
<property action="set" name="OUT_ONLY" value="true"/>
</inSequence>
<endpoint>
<address uri="jms:/SimpleStockQuoteService?transport.jms.ConnectionFactoryJNDIName=java:comp/env/Jms&java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory&java.naming.provider.url=localhost:1099&transport.jms.DestinationType=queue"/>
</endpoint>
<outSequence>
<send/>
</outSequence>
</target>
<publishWSDL uri="file:WEB-INF/repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
<parameter name="transport.jms.ContentType">application/xml</parameter>
</proxy>
</definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]