synapse-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: SNAPSHOT JMS publisher
Date Mon, 13 Apr 2009 21:47:23 GMT
On Wed, Apr 8, 2009 at 19:31, Asankha C. Perera <asankha@apache.org> wrote:
> Keith
>>>
>>> Why do you have
>>> ..transport.jms.ConnectionFactory=cn=outgoingQueueFactory... ? i.e. why
>>> =cn=..?
>>>
>>
>> I'm trying to use the connectionfactory that is set in the axis2.xml file
>> in
>> the "JMSSender" section. Similar to how the jms proxy uses the connection
>> factory in the JMSListener for listening to the queue.
>>
>
> To do this, define one or more connection factories in the sender as
> follows.. the names does not really matter, as you *must* continue to
> provide the full address URL when sending to a destination. Internally the
> sender will check if a CF is defined, and if so use it as appropriate

That is actually not true: you can refer to a connection factory
definition in axis2.xml explicitly using the
transport.jms.ConnectionFactory parameter.

> <transportSender name="jms"
> class="org.apache.axis2.transport.jms.JMSSender">
>   <parameter name="myTopicConnectionFactory">
>       <parameter
> name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
>       <parameter
> name="java.naming.provider.url">tcp://localhost:61616</parameter>
>       <parameter
> name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</parameter>
>       <parameter name="transport.jms.JMSSpecVersion">1.0.2b</parameter>
>       <parameter name="transport.jms.CacheLevel">producer</parameter>
>   </parameter>
>
>   <parameter name="myQueueConnectionFactory">
>       <parameter
> name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
>       <parameter
> name="java.naming.provider.url">tcp://localhost:61616</parameter>
>       <parameter
> name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter>
>       <parameter name="transport.jms.JMSSpecVersion">1.0.2b</parameter>
>       <parameter name="transport.jms.CacheLevel">producer</parameter>
>   </parameter>
>
>   <parameter name="default">
>       <parameter
> name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
>       <parameter
> name="java.naming.provider.url">tcp://localhost:61616</parameter>
>       <parameter
> name="transport.jms.ConnectionFactoryJNDIName">ConnectionFactory</parameter>
>       <parameter name="transport.jms.CacheLevel">connection</parameter>
>   </parameter>
> </transportSender>
>
> Ref:
> http://adroitlogic.org/knowledge-base-axis2/9-the-enhanced-jms-transport.html
>
>
>>> Please share the full synapse.xml, axis2.xml and the log files
>>>
>>
>> See attached
>>
>
> I do not see anything attached?
>
> cheers
> asankha
>
> --
> Asankha C. Perera
> AdroitLogic, http://adroitlogic.org
>
> http://esbmagic.blogspot.com
>
>
>
>
>

Mime
View raw message