this is my jndi.properties.
<br/>code:
<br/> java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
<br/> java.naming.provider.url=tcp://localhost:61616
<br/> connectionFactoryNames=connectionFactory,queueConnectionFactory,topicConnectionFactry
<br/> queue.MyQueue=example.MyQueue
<br/> topic.MyTopic=example.MyTopic
<br/><br/>And I put it on C:\apache-activemq-5.4.3\ .
<br/>And I set C:\apache-activemq-5.4.3\jndi.properties in my classpath.
<br/>It does not work. When I install the su-JMS-TransitService-consume.zip,I get a exception:ConnectionFactory 'connectionFactory' not found in the JNDI context.
<br/><br/>And this is my jbi.xml
<br/>code:
<br/><?xml version="1.0" encoding="UTF-8"?>
<br/><!--
        JBI descriptor for the Petals' "petals-bc-jms" component (JMS).
        Originally created for the version 3.1 of the component.
--><br/><jbi:jbi version="1.0"
<br/> xmlns:generatedNs="Transit"
<br/> xmlns:jbi="<a href="http://java.sun.com/xml/ns/jbi"" target="_top" rel="nofollow" link="external">http://java.sun.com/xml/ns/jbi"</a><br/> xmlns:jms="<a href="http://petals.ow2.org/components/jms/version-3"" target="_top" rel="nofollow" link="external">http://petals.ow2.org/components/jms/version-3"</a><br/> xmlns:petalsCDK="<a href="http://petals.ow2.org/components/extensions/version-5"" target="_top" rel="nofollow" link="external">http://petals.ow2.org/components/extensions/version-5"</a><br/> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">" target="_top" rel="nofollow" link="external">http://www.w3.org/2001/XMLSchema-instance"></a><br/>
<br/> <!-- Import a Service into Petals or Expose a Petals Service => use a BC. --><br/> <jbi:services binding-component="true"><br/>
<br/> <!-- Expose a Petals Service => consumes a Service. --><br/> <jbi:consumes
<br/> interface-name="generatedNs:Transit"
<br/> service-name="generatedNs:TransitService"
<br/> endpoint-name="TransitServiceEndpoint"><br/>
<br/> <!-- CDK specific elements --><br/> <petalsCDK:timeout>30000</petalsCDK:timeout><br/> <petalsCDK:operation xmlns:printMessageNs="Transit">printMessageNs:printMessage</petalsCDK:operation><br/> <petalsCDK:mep>InOnly</petalsCDK:mep><br/>
<br/> <!-- Component specific elements -->
<br/> <jms:jndi-provider-url>tcp://localhost:61616</jms:jndi-provider-url><br/> <jms:jndi-initial-context-factory>org.apache.activemq.jndi.ActiveMQInitialContextFactory</jms:jndi-initial-context-factory><br/> <jms:jndi-destination-name>MyQueue</jms:jndi-destination-name><br/> <jms:jndi-connection-factory>connectionFactory</jms:jndi-connection-factory><br/> <jms:transacted>false</jms:transacted><br/> </jbi:consumes><br/> </jbi:services><br/></jbi:jbi><br/>Is there any wrong? Help me! Thanks a lot!
        
        <br/>
        <br/>
        <hr noshade="noshade" size="1" color="#cccccc" />
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://forum.petalslink.com/I-can-not-connect-the-activemq-I-have-do-my-best-but-it-still-does-not-work-tp3752683p3752683.html">http://forum.petalslink.com/I-can-not-connect-the-activemq-I-have-do-my-best-but-it-still-does-not-work-tp3752683p3752683.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under General (discussions and announcements), email ml-node+s974793n2681633h34@n3.nabble.com <br/>
                To unsubscribe from General (discussions and announcements), <a href="http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681633&code=Z2VuZXJhbEBmb3J1bS5wZXRhbHNsaW5rLm9yZ3wyNjgxNjMzfDM0MTAxNjA5NA==">click here</a>.<br/>
                <a href="http://forum.petalslink.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif">NAML</a>
        </div>