Re: [Old issue] Memory leak after stop web application in Tomcat

2012-07-19 Thread liny
Thanks, Gary. I created a bean like you said: And added it to context xml: If I don't call static shutdown() in MainApplication#stop(), like below: After manual stop web app from Tomcat web manager, the memory leaks still are there. Logs as below: you can see the AbstractInactivityMonitor

Re: [Old issue] Memory leak after stop web application in Tomcat

2012-07-17 Thread liny
Hi gtully: I changed to use 5.7-SNAPSHOT and did below in com.foo.MainApplication#stop: But still not work for me. Did ActiveMQ call AbstractInactivityMonitor#stopMonitorThreads while Connection#close? Or anything missing? -- View this message in context:

Re: [Old issue] Memory leak after stop web application in Tomcat

2012-07-16 Thread liny
Hi gtully: I made a war with source code to reproduce the problem, please download it from https://docs.google.com/open?id=0B-ZFcczN9qxYZmh5dDdoMFVCUkE My GoogleDoc . The Tomcat version is 6.0.33 or above, but I use Tomcat 7.0.28. Before starting this web app, you need to setup a broker TCP

Re: [Old issue] Memory leak after stop web application in Tomcat

2012-07-16 Thread liny
I also caught some logs, doesn't know whether it's related or not. -- View this message in context: http://activemq.2283324.n4.nabble.com/Old-issue-Memory-leak-after-stop-web-application-in-Tomcat-tp4653959p4654076.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

[Old issue] Memory leak after stop web application in Tomcat

2012-07-13 Thread liny
Hi, It's old issue, but I still can't or find any solution so far. After stop my web application, Tomcat told me some memory leak. I use VisualVM to check, and yes, below caused memory leak. Does anyone find any solutions? Can ActiveMQ team try to solve it? Thank you for any advice. -- View

Topic/Queue policyEntry setup suggestions

2012-04-09 Thread liny
Hi, I have Topic/Queue policyEntry setup question in activemq.xml and would like your suggestions. My broker has two Topic policyEntries setup at the beginning, like below: You can see that I have a RTD.X_NEXT_SETUP Topic with fixed 8 size recovery policy and OTD.A_METRICS Topic with last image

Re: How to delete scheduled messages ?

2012-03-24 Thread liny
Hi, Does ACTIVEMQ can support scheduled message deletion now or any future plan? Or Can you tell me how to use java code to do this via JMX? any solutions will be appreciated. Thanks. -- View this message in context:

Re: [HELP] How to make persistent Topic after activemq server restart?

2012-03-13 Thread liny
Hi~ I submit my first issue at https://issues.apache.org/jira/browse/AMQ-3766 https://issues.apache.org/jira/browse/AMQ-3766 . Hope we can have such great feature soon~ Thank you Gary and all. -- View this message in context:

Re: [HELP] How to make persistent Topic after activemq server restart?

2012-03-12 Thread liny
Hi, I had read http://activemq.apache.org/how-do-durable-queues-and-topics-work.html how-do-durable-queues-and-topics-work . It says My request is I don't S to get M4 and M5. S just need to get M7 - the last message. New subscriber needs to get M7 when connected to activemq server even after

Re: [HELP] How to make persistent Topic after activemq server restart?

2012-03-11 Thread liny
Hi, My ActiveMQ server version is 5.5.1. I was told that I should have durable consumer connect to activemq server first. So I took a test as below: 1. Create durable consumer X and connect to activemq server. I can see my durable consumer X in Active Durable Topic Subscribers from Web Console.

[HELP] How to make persistent Topic after activemq server restart?

2012-03-09 Thread liny
Hi, Sorry~I searched forum but still can't not make things work. Now what I can do is when activemq server started, I sent a topic message, new client can receive last one message because lastImageSubscriptionRecoveryPolicy and topic://OTD.METRICS?consumer.retroactive=true. What I can NOT do now

Re: Configuration Shared Master Slave (and some questions)

2012-01-19 Thread liny
Hi Abimael, Can you explain why your master needs to set networkConnectors? I thought only slave needs to set networkConnectors in Shared Master/Slave architecture. -- -- ~Mia は 最高!~ -- -- View this message in context:

Re: how I can configure the amq as a message deliver between 3(or more) brokers?

2012-01-19 Thread liny
Hi dongweizi, I am newbie and curious what your new configuration is, could you kindly share me? Thanks. -- View this message in context: http://activemq.2283324.n4.nabble.com/how-I-can-configure-the-amq-as-a-message-deliver-between-3-or-more-brokers-tp4308979p4312587.html Sent from the

Re: Configuration Shared Master Slave (and some questions)

2012-01-19 Thread liny
Hi, In http://activemq.apache.org/networks-of-brokers.html, there is a duplex property. Does this property have same function to build bi-directory between master and slave? If yes, I think master doesn't need to setup metworkConnection to slave, right? -- View this message in context:

Batch message sending with JmsTransactionManager of Spring?

2012-01-13 Thread liny
Hi, I am trying to do transaction with Spring. Below is my spring configuration: I can send msg with jmsTemplate without transaction, but I don't know how to start a transaction and commit in my program. Can someone show me sample how to do batch message sending with JmsTransactionManager or

Re: ajax activemq tomcat 7

2012-01-06 Thread liny
I tried tomcat 7 before, same exception like you. Now i am using tomcat 6. -- View this message in context: http://activemq.2283324.n4.nabble.com/ajax-activemq-tomcat-7-tp4266478p4268718.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: failover invalid connect parameters

2011-12-21 Thread liny
Hi, I don't understand why below two broker URLs don't work: I still get Any help is appreciated -- View this message in context: http://activemq.2283324.n4.nabble.com/failover-invalid-connect-parameters-tp3923668p4221073.html Sent from the ActiveMQ - User mailing list archive at

activemq-web-demo-5.5.1.war occurs java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder

2011-11-21 Thread liny
Hi, I downloaded activemq-web-demo-5.5.1.war from http://repo1.maven.org/maven2/org/apache/activemq/activemq-web-demo/5.5.1/ http://repo1.maven.org/maven2/org/apache/activemq/activemq-web-demo/5.5.1/ and put into Tomcat webapps directory, but has below error: Does anyone deploy it without

Re: activemq-web-demo-5.5.1.war occurs java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder

2011-11-21 Thread liny
Hi, SLF4J said 1.5.11 is not compatible with Java 6, so I remove 1.5.11 with slf4j-api-1.6.4.jar, logback-classic-1.0.0.jar, and logback-core-1.0.0.jar. Tomcat also told me that servlet-api-2.5.jar won't be loaded. Now I am facing below: -- View this message in context:

Re: activemq-web-demo-5.5.1.war occurs java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder

2011-11-21 Thread liny
Hi, For java.lang.IllegalStateException: !(Jetty || Servlet 3.0 || ContinuationFilter), I did below change in web.xml of web demo: Strange! -- View this message in context:

Re: activemq-web-demo-5.5.1.war occurs java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder

2011-11-21 Thread liny
Hi, I check source code of org.apache.activemq.web.SessionFilter and found this filter is needed. So I modified web.xml of web demo application as below: OK~Now AJAX stock portfolio demo works with Tomcat 6. Then I copied same web demo application to webapps directory of Tomcat7, but got below

Re: [HELP] IllegalStateException: Not supported with Tomcat 7.0.22 and AjaxServlet

2011-11-20 Thread liny
Hi, I don't know what should I do now. http://tomcat.apache.org/migration.html#Migrating_from_6.0.x_to_7.0.x http://tomcat.apache.org/migration.html#Migrating_from_6.0.x_to_7.0.x says: Is ActiveMQ recompilation for Tomcat 7 with new org.apache.catalina.comet package needed? -- View this

[HELP] IllegalStateException: Not supported with Tomcat 7.0.22 and AjaxServlet

2011-11-18 Thread liny
Hi, I have a web application to test AJAX feature, and it works fine with Tomcat 6.0.20. When I put same web application to Tomcat 7.0.22, exception is below: I think it must be relative AjaxServlet or jars of tomcat_home/lib between Tomcat6 and Tomcat7 but have no idea what's going on. Would

Re: Ajax and Tomcat 6 - based on web-demo with a non embedded broker

2011-11-17 Thread liny
Hi, You can add below into your application web.xml: Don't forget put jetty jar file (mine is jetty-all-server-7.1.6.v20100715.jar) into lib directory. -- View this message in context:

Re: Help: Tomcat/ActiveMQ integration and using Ajax

2011-11-17 Thread liny
Hi, You can refer to http://activemq.2283324.n4.nabble.com/Ajax-and-Tomcat-6-based-on-web-demo-with-a-non-embedded-broker-tp3297683p4082182.html HERE . I am using Tomcat 6, and AJAX using jetty. -- View this message in context:

Re: [Ajax] 404 not found and parsererror

2011-11-14 Thread liny
Any advice is appreciated. Thank you. -- View this message in context: http://activemq.2283324.n4.nabble.com/Ajax-404-not-found-and-parsererror-tp4022009p4039390.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: [Ajax] 404 not found and parsererror

2011-11-14 Thread liny
Hi, Dejan: Thanks for reply. I will try it later. As a newbie, I don't know why ../amq/amq.js is used in demo, not ../js/amq.js. Could you please help on http://www.manning-sandbox.com/thread.jspa?threadID=47130tstart=0 http://www.manning-sandbox.com/thread.jspa?threadID=47130tstart=0 ? -- View

Re: Problem with Ajax API

2011-11-10 Thread liny
I have same problem and post in http://activemq.2283324.n4.nabble.com/Ajax-404-not-found-and-parsererror-td4022009.html. Can you please help me? -- View this message in context: http://activemq.2283324.n4.nabble.com/Problem-with-Ajax-API-tp3155676p4022868.html Sent from the ActiveMQ - User

Can't start in console mode

2011-11-01 Thread liny
Hi, I am new to ActiveMQ and downloaded version 5.5.1. While execute activemq console, an error message is showed as below: So I take a look inside activemq executable file and found: Startup command will become: And $(echo console|sed 's,^console,,') will be $(). I think this is the problem