[Users] I can not connect the activemq. I have do my best, but it still does not work

wangjz [via Petals Forums] ml-node+s974793n3752684h78 at n3.nabble.com
Fri Feb 17 05:09:58 CET 2012



this is my jndi.properties. 
code: 
   
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory 
    java.naming.provider.url=tcp://localhost:61616 
   
connectionFactoryNames=connectionFactory,queueConnectionFactory,topicConnectionFactry 
    queue.MyQueue=example.MyQueue 
    topic.MyTopic=example.MyTopic 

And I put it on C:\apache-activemq-5.4.3\ . 
And I set C:\apache-activemq-5.4.3\jndi.properties in my classpath. 
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. 

And this is my jbi.xml 
code: 
<?xml version="1.0" encoding="UTF-8"?> 

<jbi:jbi version="1.0" 
        xmlns:generatedNs="Transit" 
        xmlns:jbi="http://java.sun.com/xml/ns/jbi"
        xmlns:jms="http://petals.ow2.org/components/jms/version-3"
       
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   
        <jbi:services binding-component="true">    
                <jbi:consumes 
                        interface-name="generatedNs:Transit" 
                        service-name="generatedNs:TransitService" 
                        endpoint-name="TransitServiceEndpoint">
                        <petalsCDK:timeout>30000</petalsCDK:timeout>
                        <petalsCDK:operation
xmlns:printMessageNs="Transit">printMessageNs:printMessage</petalsCDK:operation>
                        <petalsCDK:mep>InOnly</petalsCDK:mep>                   
                       
<jms:jndi-provider-url>tcp://localhost:61616</jms:jndi-provider-url>
                       
<jms:jndi-initial-context-factory>org.apache.activemq.jndi.ActiveMQInitialContextFactory</jms:jndi-initial-context-factory>
                       
<jms:jndi-destination-name>MyQueue</jms:jndi-destination-name>
                       
<jms:jndi-connection-factory>connectionFactory</jms:jndi-connection-factory>
                        <jms:transacted>false</jms:transacted>
                </jbi:consumes>
        </jbi:services>
</jbi:jbi>
Is there any wrong? Help me! Thanks a lot!  



_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.petalslink.com/I-can-not-connect-the-activemq-I-have-do-my-best-but-it-still-does-not-work-tp3752684p3752684.html
To start a new topic under Users (get help, provide help), email ml-node+s974793n2681628h42 at n3.nabble.com
To unsubscribe from Users (get help, provide help), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681628&code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20120216/87034d29/attachment.htm>


More information about the Users mailing list