[flexcoders] Re: ActiveMQ with JBoss and Flex Data Service

2007-03-28 Thread elmiguelestaaqui
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 flexcoders@yahoogroups.com, 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-typeQueue/destination-type
   
 message-typejavax.jms.TextMessage/message-type
   
 connection-factoryConnectionFactory/connection-factory
   
 destination-jndi-namedynamicQueues/queue1/destination-jndi-name
   delivery-modeNON_PERSISTENT/delivery-mode
   
 message-priorityDEFAULT_PRIORITY/message-priority
   
 acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
   transacted-sessionsfalse/transacted-sessions
 
   initial-context-environment
   property
   
 nameContext.INITIAL_CONTEXT_FACTORY/name
   
valueorg.apache.activemq.jndi.ActiveMQInitialContextFactory/value
   /property
   property
   
 nameContext.PROVIDER_URL/name
   
 valuetcp://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
  durablefalse/durable
 
durable-store-managerflex.messaging.durability.FileStoreManager/durable-store-manager
  /server
  jms
  message-typejavax.jms.ObjectMessage/message-type
 
connection-factoryjava:comp/env/JmsConnectionFactory/connection-factory
 
destination-jndi-namejava:activemq/topic/inbound/destination-jndi-name
  destination-nameflexChat/destination-name
  delivery-modeNON_PERSISTENT/delivery-mode
  message-priorityDEFAULT_PRIORITY/message-priority
  acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
  transacted-sessionsfalse/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





[flexcoders] Re: ActiveMQ with JBoss and Flex Data Service

2007-03-28 Thread elmiguelestaaqui
Hello (again ;-)  )

I've tried with the dynamicQueues/queue1 and it's running!!!
thanks thanks thanks!!!

But I would like to know how I can use static queues, any idea?

Thanks!



--- In flexcoders@yahoogroups.com, 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-typeQueue/destination-type
   
 message-typejavax.jms.TextMessage/message-type
   
 connection-factoryConnectionFactory/connection-factory
   
 destination-jndi-namedynamicQueues/queue1/destination-jndi-name
   delivery-modeNON_PERSISTENT/delivery-mode
   
 message-priorityDEFAULT_PRIORITY/message-priority
   
 acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
   transacted-sessionsfalse/transacted-sessions
 
   initial-context-environment
   property
   
 nameContext.INITIAL_CONTEXT_FACTORY/name
   
valueorg.apache.activemq.jndi.ActiveMQInitialContextFactory/value
   /property
   property
   
 nameContext.PROVIDER_URL/name
   
 valuetcp://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
  durablefalse/durable
 
durable-store-managerflex.messaging.durability.FileStoreManager/durable-store-manager
  /server
  jms
  message-typejavax.jms.ObjectMessage/message-type
 
connection-factoryjava:comp/env/JmsConnectionFactory/connection-factory
 
destination-jndi-namejava:activemq/topic/inbound/destination-jndi-name
  destination-nameflexChat/destination-name
  delivery-modeNON_PERSISTENT/delivery-mode
  message-priorityDEFAULT_PRIORITY/message-priority
  acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
  transacted-sessionsfalse/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





[flexcoders] ActiveMQ with JBoss and Flex Data Service

2007-03-23 Thread elmiguelestaaqui
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-jbos\
s.html

In the messaging-config.xml file of flex I have written:

destination id=chat-jms
 properties
 server
durablefalse/durable
durable-store-managerflex.messaging.durability.FileStoreManager/durab\
le-store-manager
/server
 jms
message-typejavax.jms.ObjectMessage/message-type
connection-factoryjava:comp/env/JmsConnectionFactory/connection-facto\
ry
destination-jndi-namejava:activemq/topic/inbound/destination-jndi-nam\
e
destination-nameflexChat/destination-name
delivery-modeNON_PERSISTENT/delivery-mode
message-priorityDEFAULT_PRIORITY/message-priority
acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
transacted-sessionsfalse/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!