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

2007-03-26 Thread Brian Dunphy
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!