This is what I've been trying:
    <sequence name="sendJMSKoList">
        <send>
           <endpoint>
             <address  
uri="jms:/cn=testQueue?transport.jms.ConnectionFactory=cn=outgoingQueueFactory&amp;transport.jms.DestinationType=queue"/>
           </endpoint>
        </send>
    </sequence>

In axis2.xml, this is what the jmssender looks like:
        <parameter name="outgoingQueueFactory">
            <parameter
name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</parameter>
            <parameter
name="java.naming.provider.url">ldap://servicelayer-dev:389/o=imq</parameter>
            <parameter
name="transport.jms.ConnectionFactoryJNDIName">cn=marklogicXCF</parameter>
        </parameter>


This is the error I get:
ERROR JMSOutTransportInfo Cannot locate destination : cn=testQueue using
jms:/cn=testQueue?transport.jms.ConnectionFactory=cn=outgoingQueueFactory&transport.jms.DestinationType=queue
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource 






kbohnenberger wrote:
> 
> I'm looking at
> http://people.apache.org/~veithen/synapse/Synapse_Samples.html#Sample250
> to create a jms publisher.
> I have it "working" with the long uri in the address that sets all the
> connection params locally in the sequence like this:
>     <sequence name="sendJMSKoList">
>       <send>
>          <endpoint>
>               <address
> uri="jms:/cn=keithQueue1?transport.jms.ConnectionFactoryJNDIName=cn=marklogicXCF&amp;java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory&amp;java.naming.provider.url=ldap://servicelayer-dev:389/o=imq&amp;transport.jms.DestinationType=queue"/>
>                     
>          </endpoint>
>       </send>
>     </sequence>
> 
> 
> However, after this runs for a while I start getting connection
> exceptions.   It seems like this is creating a new connection every time
> it publishes.
> 
> Can I configure the address to point to the connection factory that I have
> in the axis2.xml file?
> If so, what is the syntax?  I tried "guessing" but couldn't get it to
> work.
> 
> 
> Thanks
> 
> Keith
> 

-- 
View this message in context: 
http://www.nabble.com/SNAPSHOT-JMS-publisher-tp22951348p22954129.html
Sent from the Synapse - User mailing list archive at Nabble.com.

Reply via email to