this is my jndi.properties.
<br/>code:
<br/>&nbsp; &nbsp; java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
<br/>&nbsp; &nbsp; java.naming.provider.url=tcp://localhost:61616
<br/>&nbsp; &nbsp; connectionFactoryNames=connectionFactory,queueConnectionFactory,topicConnectionFactry
<br/>&nbsp; &nbsp; queue.MyQueue=example.MyQueue
<br/>&nbsp; &nbsp; 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/>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
<br/><!-- 
        JBI descriptor for the Petals' "petals-bc-jms" component (JMS).
        Originally created for the version 3.1 of the component.
 --><br/>&lt;jbi:jbi version=&quot;1.0&quot; 
<br/>&nbsp; &nbsp; &nbsp; &nbsp; xmlns:generatedNs=&quot;Transit&quot;
<br/>&nbsp; &nbsp; &nbsp; &nbsp; xmlns:jbi=&quot;<a href="http://java.sun.com/xml/ns/jbi&quot;" target="_top" rel="nofollow" link="external">http://java.sun.com/xml/ns/jbi&quot;</a><br/>&nbsp; &nbsp; &nbsp; &nbsp; xmlns:jms=&quot;<a href="http://petals.ow2.org/components/jms/version-3&quot;" target="_top" rel="nofollow" link="external">http://petals.ow2.org/components/jms/version-3&quot;</a><br/>&nbsp; &nbsp; &nbsp; &nbsp; xmlns:petalsCDK=&quot;<a href="http://petals.ow2.org/components/extensions/version-5&quot;" target="_top" rel="nofollow" link="external">http://petals.ow2.org/components/extensions/version-5&quot;</a><br/>&nbsp; &nbsp; &nbsp; &nbsp; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;" target="_top" rel="nofollow" link="external">http://www.w3.org/2001/XMLSchema-instance&quot;&gt;</a><br/>&nbsp; &nbsp; &nbsp; &nbsp; 
<br/>&nbsp; &nbsp; &nbsp; &nbsp; <!-- Import a Service into Petals or Expose a Petals Service => use a BC. --><br/>&nbsp; &nbsp; &nbsp; &nbsp; &lt;jbi:services binding-component=&quot;true&quot;&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; 
<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- Expose a Petals Service => consumes a Service. --><br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;jbi:consumes
<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; interface-name=&quot;generatedNs:Transit&quot;
<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; service-name=&quot;generatedNs:TransitService&quot;
<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endpoint-name=&quot;TransitServiceEndpoint&quot;&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; 
<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- CDK specific elements --><br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;petalsCDK:timeout&gt;30000&lt;/petalsCDK:timeout&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;petalsCDK:operation xmlns:printMessageNs=&quot;Transit&quot;&gt;printMessageNs:printMessage&lt;/petalsCDK:operation&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;petalsCDK:mep&gt;InOnly&lt;/petalsCDK:mep&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- Component specific elements -->&nbsp; &nbsp; &nbsp; &nbsp; 
<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;jms:jndi-provider-url&gt;tcp://localhost:61616&lt;/jms:jndi-provider-url&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;jms:jndi-initial-context-factory&gt;org.apache.activemq.jndi.ActiveMQInitialContextFactory&lt;/jms:jndi-initial-context-factory&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;jms:jndi-destination-name&gt;MyQueue&lt;/jms:jndi-destination-name&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;jms:jndi-connection-factory&gt;connectionFactory&lt;/jms:jndi-connection-factory&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;jms:transacted&gt;false&lt;/jms:transacted&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/jbi:consumes&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/jbi:services&gt;<br/>&lt;/jbi:jbi&gt;<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&amp;node=2681633&amp;code=Z2VuZXJhbEBmb3J1bS5wZXRhbHNsaW5rLm9yZ3wyNjgxNjMzfDM0MTAxNjA5NA==">click here</a>.<br/>
                <a href="http://forum.petalslink.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;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>