activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmoulliard <cmoulli...@gmail.com>
Subject Ajax - MessageListener Servlet : help requested !!!
Date Fri, 24 Oct 2008 10:31:47 GMT

Hi,

I try to implement the portfolio example provided under the sub-project
activemq-web et demo but unfortunately, I cannot receive any result from the
MessageListener Servlet working with my Ajax web client browser ?

Remark :
- The only modification that I made to the code is to by pass the
PortfolioServlet and replace the stock price generator by a spring bean
component called by camel through a timer endpoint ? 
- Messages are well published onto the topic://STOCK.* queues because I can
see them through JConsole
- A request is send from the web client to the MessageListenerServlet but no
feedback is returned ?

Here is the trace  of my log in DEBUG :

Launch of the application + queue creation 

2008-10-24 12:18:59,480 [00&period=60000] INFO  BrokerService                 
- ActiveMQ 5.1.0 JMS Message Broker (localhost) is starting
2008-10-24 12:18:59,480 [00&period=60000] INFO  BrokerService                 
- ActiveMQ 5.1.0 JMS Message Broker (localhost) is starting
2008-10-24 12:18:59,480 [00&period=60000] INFO  BrokerService                 
- For help or more information please see: http://activemq.apache.org/
2008-10-24 12:18:59,480 [00&period=60000] INFO  BrokerService                 
- For help or more information please see: http://activemq.apache.org/
2008-10-24 12:18:59,636 [JMX connector  ] INFO  ManagementContext             
- JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
2008-10-24 12:18:59,636 [JMX connector  ] INFO  ManagementContext             
- JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
2008-10-24 12:18:59,840 [00&period=60000] INFO  BrokerService                 
- ActiveMQ JMS Message Broker (localhost,
ID:dell-charles-1929-1224843539621-0:0) started
2008-10-24 12:18:59,840 [00&period=60000] INFO  BrokerService                 
- ActiveMQ JMS Message Broker (localhost,
ID:dell-charles-1929-1224843539621-0:0) started
2008-10-24 12:18:59,840 [00&period=60000] DEBUG VMTransportFactory            
- binding to broker: localhost
2008-10-24 12:18:59,840 [00&period=60000] DEBUG VMTransportFactory            
- binding to broker: localhost
2008-10-24 12:18:59,855 [00&period=60000] INFO  TransportConnector            
- Connector vm://localhost Started
2008-10-24 12:18:59,855 [00&period=60000] INFO  TransportConnector            
- Connector vm://localhost Started
2008-10-24 12:18:59,996 [VMTransport    ] DEBUG TransportConnection           
- Setting up new connection: vm://localhost#0
2008-10-24 12:18:59,996 [VMTransport    ] DEBUG TransportConnection           
- Setting up new connection: vm://localhost#0
2008-10-24 12:19:00,027 [VMTransport    ] DEBUG AbstractRegion                
- Adding destination: topic://ActiveMQ.Advisory.Connection
2008-10-24 12:19:00,027 [VMTransport    ] DEBUG AbstractRegion                
- Adding destination: topic://ActiveMQ.Advisory.Connection
2008-10-24 12:19:00,090 [VMTransport    ] DEBUG AbstractRegion                
- Adding consumer: ID:dell-charles-1929-1224843539621-2:0:-1:1
2008-10-24 12:19:00,090 [VMTransport    ] DEBUG AbstractRegion                
- Adding consumer: ID:dell-charles-1929-1224843539621-2:0:-1:1
2008-10-24 12:19:00,480 [00&period=60000] DEBUG ActiveMQSession               
- ID:dell-charles-1929-1224843539621-2:0:1 sending message:
ActiveMQTextMessage {commandId = 0, responseRequired = false, messageId =
ID:dell-charles-1929-1224843539621-2:0:1:1:1, originalDestination = null,
originalTransactionId = null, producerId =
ID:dell-charles-1929-1224843539621-2:0:1:1, destination =
topic://STOCK.MSFT, transactionId = null, expiration = 0, timestamp =
1224843540480, arrival = 0, brokerInTime = 0, brokerOutTime = 0,
correlationId = null, replyTo = null, persistent = true, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content = null, marshalledProperties =
null, dataStructure = null, redeliveryCounter = 0, size = 0, properties =
{org_apache_camel_splitSize=1, org_apache_camel_splitCounter=0},
readOnlyProperties = true, readOnlyBody = true, droppable = false, text =
<price bid="97.1730797767862" movement="down" offer="97.27025285656298"
stock="MSFT"/>}
2008-10-24 12:19:00,480 [00&period=60000] DEBUG ActiveMQSession               
- ID:dell-charles-1929-1224843539621-2:0:1 sending message:
ActiveMQTextMessage {commandId = 0, responseRequired = false, messageId =
ID:dell-charles-1929-1224843539621-2:0:1:1:1, originalDestination = null,
originalTransactionId = null, producerId =
ID:dell-charles-1929-1224843539621-2:0:1:1, destination =
topic://STOCK.MSFT, transactionId = null, expiration = 0, timestamp =
1224843540480, arrival = 0, brokerInTime = 0, brokerOutTime = 0,
correlationId = null, replyTo = null, persistent = true, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content = null, marshalledProperties =
null, dataStructure = null, redeliveryCounter = 0, size = 0, properties =
{org_apache_camel_splitSize=1, org_apache_camel_splitCounter=0},
readOnlyProperties = true, readOnlyBody = true, droppable = false, text =
<price bid="97.1730797767862" movement="down" offer="97.27025285656298"
stock="MSFT"/>}
2008-10-24 12:19:00,496 [VMTransport    ] DEBUG AbstractRegion                
- Adding destination: topic://STOCK.MSFT
2008-10-24 12:19:00,496 [VMTransport    ] DEBUG AbstractRegion                
- Adding destination: topic://STOCK.MSFT
2008-10-24 12:19:00,511 [VMTransport    ] DEBUG AbstractRegion                
- Adding destination: topic://ActiveMQ.Advisory.Topic
2008-10-24 12:19:00,511 [VMTransport    ] DEBUG AbstractRegion                
- Adding destination: topic://ActiveMQ.Advisory.Topic
2008-10-24 12:19:58,418 [VMTransport    ] DEBUG TransportConnection           
- Setting up new connection: vm://localhost#2
2008-10-24 12:19:58,418 [VMTransport    ] DEBUG TransportConnection           
- Setting up new connection: vm://localhost#2
2008-10-24 12:19:58,418 [VMTransport    ] DEBUG AbstractRegion                
- Adding consumer: ID:dell-charles-1929-1224843539621-2:1:-1:1
2008-10-24 12:19:58,418 [VMTransport    ] DEBUG AbstractRegion                
- Adding consumer: ID:dell-charles-1929-1224843539621-2:1:-1:1
2008-10-24 12:19:58,418 [00&period=60000] DEBUG ActiveMQSession               
- ID:dell-charles-1929-1224843539621-2:1:1 sending message:
ActiveMQTextMessage {commandId = 0, responseRequired = false, messageId =
ID:dell-charles-1929-1224843539621-2:1:1:1:1, originalDestination = null,
originalTransactionId = null, producerId =
ID:dell-charles-1929-1224843539621-2:1:1:1, destination =
topic://STOCK.SUNW, transactionId = null, expiration = 0, timestamp =
1224843598418, arrival = 0, brokerInTime = 0, brokerOutTime = 0,
correlationId = null, replyTo = null, persistent = true, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content = null, marshalledProperties =
null, dataStructure = null, redeliveryCounter = 0, size = 0, properties =
{org_apache_camel_splitSize=1, org_apache_camel_splitCounter=0},
readOnlyProperties = true, readOnlyBody = true, droppable = false, text =
<price bid="34.9326573510917" movement="up" offer="34.967590008442784"
stock="SUNW"/>}
2008-10-24 12:19:58,418 [00&period=60000] DEBUG ActiveMQSession               
- ID:dell-charles-1929-1224843539621-2:1:1 sending message:
ActiveMQTextMessage {commandId = 0, responseRequired = false, messageId =
ID:dell-charles-1929-1224843539621-2:1:1:1:1, originalDestination = null,
originalTransactionId = null, producerId =
ID:dell-charles-1929-1224843539621-2:1:1:1, destination =
topic://STOCK.SUNW, transactionId = null, expiration = 0, timestamp =
1224843598418, arrival = 0, brokerInTime = 0, brokerOutTime = 0,
correlationId = null, replyTo = null, persistent = true, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content = null, marshalledProperties =
null, dataStructure = null, redeliveryCounter = 0, size = 0, properties =
{org_apache_camel_splitSize=1, org_apache_camel_splitCounter=0},
readOnlyProperties = true, readOnlyBody = true, droppable = false, text =
<price bid="34.9326573510917" movement="up" offer="34.967590008442784"
stock="SUNW"/>}
2008-10-24 12:19:58,433 [VMTransport    ] DEBUG AbstractRegion                
- Adding destination: topic://STOCK.SUNW
2008-10-24 12:19:58,433 [VMTransport    ] DEBUG AbstractRegion                
- Adding destination: topic://STOCK.SUNW

Here is the log of my web call :

2008-10-24 12:20:25,824 [http-8080-1    ] DEBUG MessageListenerServlet        
- GET client=org.apache.activemq.web.WebClient@7e80a
session=DC707773062F22CFCDF8AE36863E92DF uri=/Tracker-web/amq
query=timeout=0&_=
2008-10-24 12:20:25,824 [http-8080-1    ] DEBUG MessageListenerServlet        
- GET client=org.apache.activemq.web.WebClient@7e80a
session=DC707773062F22CFCDF8AE36863E92DF uri=/Tracker-web/amq
query=timeout=0&_=
2008-10-24 12:20:25,840 [http-8080-1    ] DEBUG MessageListenerServlet        
- doMessage timeout=0
2008-10-24 12:20:25,840 [http-8080-1    ] DEBUG MessageListenerServlet        
- doMessage timeout=0

KR,

Charles Moulliard

-----
Enterprise Architect

Xpectis
12, route d'Esch
L-1470 Luxembourg

Phone +352 25 10 70 470
Mobile +352 621 45 36 22

e-mail : cmoulliard@xpectis.com
web site :  www.xpectis.com www.xpectis.com 
My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://www.nabble.com/Ajax---MessageListener-Servlet-%3A-help-requested-%21%21%21-tp20147776p20147776.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message