Hi Brian, thanks for your reply.
I'm trying your tips, because I had forgotten to put the jar in the WEB-INF/lib. But it isn't running. When jboss deploy my program.war, no exceptions are thrown. But if I run in my browser http://localhost:8080/program/myprogram.mxml, this exception is thrown: javax.naming.NameNotFoundException: activemq/topic/inbound ...... I've tried without "java:" like you said me, I've tried a lots of topic and queues names, topic.inbound, topic/inbound, etc., because in the jmx-console of jboss, in the jndiviewer, "activemq/topic/inbound" appears, but none of them has worked. Have you other files in your deployed directory, like "jndi.properties", "context.xml" or "applicationcontext.xml", ??? Thanks for your help :-) --- In [email protected], "Brian Dunphy" <[EMAIL PROTECTED]> wrote: > > Make sure you have the ActiveMQ jar file in your WEB-INF/lib directory. > > Also, my destination XML looks significantly different: > > <destination id="queue1"> > <adapter ref="jms" /> > <properties> > <jms> > <destination-type>Queue</destination-type> > > <message-type>javax.jms.TextMessage</message-type> > > <connection-factory>ConnectionFactory</connection-factory> > > <destination-jndi-name>dynamicQueues/queue1</destination-jndi-name> > <delivery-mode>NON_PERSISTENT</delivery-mode> > > <message-priority>DEFAULT_PRIORITY</message-priority> > > <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode> > <transacted-sessions>false</transacted-sessions> > > <initial-context-environment> > <property> > > <name>Context.INITIAL_CONTEXT_FACTORY</name> > <value>org.apache.activemq.jndi.ActiveMQInitialContextFactory</value> > </property> > <property> > > <name>Context.PROVIDER_URL</name> > > <value>tcp://192.168.2.187:61616</value> > </property> > </initial-context-environment> > > </jms> > </properties> > <channels> > <channel ref="my-rtmp" /> > </channels> > </destination> > > Most notably, I'm not sure you need the "java:" bit in your > <destination-jndi-name> property, and you might consider adding the > <initial-context-environment> section as I have above. > > Best of luck! > > Brian > > On 23 Mar 2007 05:57:18 -0700, elmiguelestaaqui > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > Hi, > > > > I'm trying deploy activemq in jboss. All it's allright, I launch a java app > > that send messages to topic destination, but when I want to connect from > > flex consumer to that destination, no messages are received. > > I have follow all steps in the activemq with jboss integration tutorial: > > http://devzone.logicblaze.com/site/integrating-apache-activemq-with-jboss.html > > > > In the messaging-config.xml file of flex I have written: > > > > <destination id="chat-jms"> > > <properties> > > <server> > > <durable>false</durable> > > <durable-store-manager>flex.messaging.durability.FileStoreManager</durable-store-manager> > > </server> > > <jms> > > <message-type>javax.jms.ObjectMessage</message-type> > > <connection-factory>java:comp/env/JmsConnectionFactory</connection-factory> > > <destination-jndi-name>java:activemq/topic/inbound</destination-jndi-name> > > <destination-name>flexChat</destination-name> > > <delivery-mode>NON_PERSISTENT</delivery-mode> > > <message-priority>DEFAULT_PRIORITY</message-priority> > > <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode> > > <transacted-sessions>false</transacted-sessions> > > </jms> > > </properties> > > <channels> > > <channel ref="my-rtmp"/> > > </channels> > > <adapter ref="jms"/> > > </destination> > > > > > > In the java app I connect to "activemq/topic/inbound", and I send messages. > > In the flex app I create a consumer, with destination "chat-jms", but I > > don't receive messages > > :( > > > > Any suggestion? > > > > Thanks! > > > > > > > -- > Brian Dunphy >

