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

wangjz [via Petals Forums] ml-node+s974793n3752683h84 at n3.nabble.com
Fri Feb 17 05:08:38 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-tp3752683p3752683.html
To start a new topic under General (discussions and announcements), email ml-node+s974793n2681633h34 at n3.nabble.com
To unsubscribe from General (discussions and announcements), visit http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2681633&code=Z2VuZXJhbEBmb3J1bS5wZXRhbHNsaW5rLm9yZ3wyNjgxNjMzfDM0MTAxNjA5NA==
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/general/attachments/20120216/16000826/attachment.htm>


More information about the General mailing list