Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 77112 invoked from network); 24 Oct 2008 10:35:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2008 10:35:28 -0000 Received: (qmail 94898 invoked by uid 500); 24 Oct 2008 10:35:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 94865 invoked by uid 500); 24 Oct 2008 10:35:29 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 94854 invoked by uid 99); 24 Oct 2008 10:35:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2008 03:35:29 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2008 10:34:17 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KtJxL-0006RK-3r for users@activemq.apache.org; Fri, 24 Oct 2008 03:31:47 -0700 Message-ID: <20147776.post@talk.nabble.com> Date: Fri, 24 Oct 2008 03:31:47 -0700 (PDT) From: cmoulliard To: users@activemq.apache.org Subject: Ajax - MessageListener Servlet : help requested !!! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cmoulliard@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org 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 = } 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 = } 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 = } 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 = } 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.