Can not access REST Management API from C# code, but it used to work for me

2014-03-27 Thread HellKnight
Hi all : I wrote a simple C# program, it calls REST Management API to delete batch of messages from ActiveMQ.It used to work fine,but my colleague found that it did not work today. We simply catch an “execution timeout” exception while calling the REST API. Then I create a jolokia URL that sho

Re: How can I call REST API for brokerMbean.getQueues() and queueViewMbean.removeMatchingMessage(java.lang.string) in c# ?

2014-02-11 Thread HellKnight
Hi kimmking: I could access the urls you provider in my chrome browser, they give me correct responses. However, I write a sample c# program to access these uri , I get "403 forbidden" error. I think I should "log in" in my program , as I log in to hawtio in my browser. How can I do that in c#?

Re: REST WSDL/WADL

2014-02-11 Thread HellKnight
Hi Mr. JGomes: I want to call REST management API in c# code, where can I get the wsdl file? Is using HttpWebRequest/Response class the only way to do it? -- View this message in context: http://activemq.2283324.n4.nabble.com/REST-WSDL-WADL-tp2361712p461.html Sent from the ActiveMQ - Use

Re: How can I call REST API for brokerMbean.getQueues() and queueViewMbean.removeMatchingMessage(java.lang.string) in c# ?

2014-02-11 Thread HellKnight
Still confused but thanks anyway.I should try it. -- View this message in context: http://activemq.2283324.n4.nabble.com/How-can-I-call-REST-API-for-brokerMbean-getQueues-and-queueViewMbean-removeMatchingMessage-java-lang-tp4677762p4677768.html Sent from the ActiveMQ - User mailing list archive

How can I call REST API for brokerMbean.getQueues() and queueViewMbean.removeMatchingMessage(java.lang.string) in c# ?

2014-02-10 Thread HellKnight
I think the subject itself explains my problem pretty good. Thanks very much for any help. Really getting into trouble to find solutions today. -- View this message in context: http://activemq.2283324.n4.nabble.com/How-can-I-call-REST-API-for-brokerMbean-getQueues-and-queueViewMbean-removeMatch

Re: how can I call REST management API in c# ?

2014-02-10 Thread HellKnight
Hi kimm. Thanks very much for quick reply. I have two further problems: first, I can not find any documentation about REST management api, I think there should be a list of available apis , and the convention to call them, at the very least, how to send api parameters and how to receive return

Re: Can I delete a message from a queue in c# code ?

2014-02-10 Thread HellKnight
Hi Mr. Bish : the IKVM way did not work fine, and I can't come up with any simple solution by now. Can you help me a little bit ? Here are my use case : the messages I sent are notifications for future work in a workflow system. Everyone who is responsible for doing the work should receive noti

how can I call REST management API in c# ?

2014-02-10 Thread HellKnight
I want to set a unique guid for each message in message head , then if I want , I could delete a specific message by its guid. I did some search and I think only jmx management api can help me with this task.But ActiveMQ.NMS did not have such apis. The activemq website says "Starting with versi

Re: Can I delete a message from a queue in c# code ?

2014-01-25 Thread HellKnight
I have implemented my solution , However, as you mentioned, it's really really painful , I suggest no one go IKVM path if they encounter similar problem. -- View this message in context: http://activemq.2283324.n4.nabble.com/Can-I-delete-a-message-from-a-queue-in-c-code-tp4676691p4676802.html S

Re: Can I delete a message from a queue in c# code ?

2014-01-24 Thread HellKnight
Hi artnaseef. Thanks for your reply. The short answer is "Yes" , I want more than one consumers getting the same message. The long answer : the messages I sent is notifications for future work in a workflow system. Everyone who is responsible for doing the work should receive notifications ,

Re: Can I delete a message from a queue in c# code ?

2014-01-24 Thread HellKnight
I have some consumers, each one has a unique queue on broker. Every message will be send to each consumer,which means I will send the same message to every existing queue on broker. And I use individual ack mode because I want client app do some work to process the msg before ack it. And I want per

Re: Can I delete a message from a queue in c# code ?

2014-01-23 Thread HellKnight
I read a related post at stackoverflow.com , and you said IKVM could help in this situation ,I want to write a java program that could delete specific message as I wanted and then convert it to a dll by IKVM ,do you think this solution worth trying ? -- View this message in context: http://acti

Re: Can I delete a message from a queue in c# code ?

2014-01-23 Thread HellKnight
Thanks for the reply. I think your solution will delete all the message from a queue when there is no active consumer. But I want to delete messages according to their unique ID (the ID is set by me ) , and I want to delete messages when there are active consumers. Is there a simple solution for me

Can I delete a message from a queue in c# code ?

2014-01-22 Thread HellKnight
I want to set a unique guid for each message in message head , then if I want , I could delete a specific message if I want to. Is there any api in NMS could help me deleting the message ? I am using ActiveMQ 5.9.0 and NMS 1.6.1 Thanks in advance. -- View this message in context: http://acti

I want a queue allows only one consumer , can I do that ?

2014-01-22 Thread HellKnight
I want there is only zero or one consumer connected to a queue , if a new consumer want to connect to this queue , the previous consumer's connection will be closed and the new consumer will connect to this queue. How can I do that ? Thanks for any help in advance. -- View this message in conte

Re: It seems that leveldb encounter some error and broker could not work normally

2013-12-01 Thread HellKnight
The jira issue I have just created is here . Looking forward to your help and thanks in advance. -- View this message in context: http://activemq.2283324.n4.nabble.com/It-seems-that-leveldb-encounter-some-error-and-broker-could-not-work-normal

My log files and leveldb index files

2013-11-27 Thread HellKnight
I hope these things would help you guys diagnostic my problems. They are wrapper.log activemq.log and leveldb indexfiles : plist.index and dirty.index wrapper.log activemq.log

It seems that leveldb encounter some error and broker could not work normally

2013-11-27 Thread HellKnight
I installed activemq 5.9.0 as windows service under windows server 2008 r2 and use leveldb persistence. My coworker stopped the service and restarted it . Then I found that broker was running but no client could connect to it . I read the broker log file and found the following errors. I have no id

Re: Could ActiveMQ service start automatically after installing it as an NT service ?

2013-11-18 Thread HellKnight
I changed one line of installservice.bat a little , but it did not work out. original line : "%_REALPATH%wrapper.exe" -i %WRAPPER_CONF% %ACTIVEMQ_HOME% %ACTIVEMQ_PATH% after changing : "%_REALPATH%wrapper.exe" -i -s %WRAPPER_CONF% %ACTIVEMQ_HOME% %ACTIVEMQ_PATH% it seems the "-s" parameter for wi

Could ActiveMQ service start automatically after installing it as an NT service ?

2013-11-14 Thread HellKnight
The installservice.bat under win32/64 directory makes the installing of ActiveMQ as an windows service very convenient. However, ActiveMQ service is not started by default after I have installed it. Could ActiveMQ service get started automatically right after installing it as an windows service ?

Re: hawtio console could not be opened

2013-11-13 Thread HellKnight
Yes, an up-to-date chrome works fine -- View this message in context: http://activemq.2283324.n4.nabble.com/hawtio-console-could-not-be-opened-tp4674301p4674411.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Can I control the output of command ps -ef|grep activemq ?

2013-11-13 Thread HellKnight
Mr. Mielke: Quote from your post: 1063855181 71497 71476 0 0:00.38 ttys0150:04.99 /System/Library/Frameworks/JavaVM.framework/Home/bin/java -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Djava.io.tmpdir=/opt/FUSE/AMQ/apache-activemq-5.8.0/tm

Re: hawtio console could not be opened

2013-11-13 Thread HellKnight
and this is the screenshot of IE6: in chrome 3.0.197 the page is totally blank, but the network tab shows icon of hawtio and text "hawtio" -- View this message in context: http://activemq.2283324.n4.nabble.com/hawtio-console-could

Re: hawtio console could not be opened

2013-11-13 Thread HellKnight
I just tried the newest version of chrome, and it works fine, so I am sure the url is correct. The version of my browser is the only thing that changes, so maybe this is the reason ? IE8 on the same computer didn't work ,though. I upload a screenshot of IE8 , using url :http://localhost:8161/hawti

hawtio console could not be opened

2013-11-13 Thread HellKnight
I have two 5.9.0 brokers, one running under redhat 6.3 and one under windows xp sp3. I tried to access the new hawtio console, but the web browser only displays a blank page. I tried chrome 3.0.197.11 and IE 6.0.2900.5512 and neither could work ,they both displays a blank page, and there is no err

Can I control the output of command ps -ef|grep activemq ?

2013-11-12 Thread HellKnight
ps -ef|grep activemq gives a lot of output by default. I want the output of this command as simple as the following : root 27839 1 0 ? 00:40:00 /ActiveMQ/apache-activemq-5.9.0/bin/activemq No other output info. Can I do that ? -- View this message in context: http://activemq.2283324.n4.nabble

Re: timeout property of failover did not work ?

2013-11-09 Thread HellKnight
shame on me , Mr. Bish. Thanks. I will make sure never ask these trival "problems" -- View this message in context: http://activemq.2283324.n4.nabble.com/timeout-property-of-failover-did-not-work-tp4674120p4674124.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

timeout property of failover did not work ?

2013-11-08 Thread HellKnight
I am using activemq 5.9.0 linux , nms 1.6.0 , developing by visual studio 2010 sp1 and win xp sp2 . I want to use failover transport , and send operation fails after 500ms while trying reconnecting. So I use a URI like this :failover:(tcp://192.168.193.177:61616)?timeout=500 I write a very simple

Re: Change indexFactory property of levelDB and the broker failed to start

2013-11-04 Thread HellKnight
I want to use KahaDB and run the broker before my problem is solved. But I am worrying that messages were stored in levelDB instead of KahaDB, so after the broker start up I will have a broker that has no messages. -- View this message in context: http://activemq.2283324.n4.nabble.com/Change-in

Re: What configration should I do so that I can ensure my broker is using jni driver of levelDB ?

2013-11-04 Thread HellKnight
I have updated my situation in this post . It seems I have all the jar files needed. I am very worried because my broker failed to start up and please help me . --

Change indexFactory property of levelDB and the broker failed to start

2013-11-04 Thread HellKnight
I want to use jni version of levelDB since I heard it's stable.I change the indexFactory as follow: ... ... Unfortunately it did not work out. The broker shutdown automatically. There is an error in activemq.log: Error: indexFactory=Could not load any of the index factory classes

Re: What configration should I do so that I can ensure my broker is using jni driver of levelDB ?

2013-11-04 Thread HellKnight
Mr Tully: Does that mean I can also ignore this warning in 5.8.0 version ? -- View this message in context: http://activemq.2283324.n4.nabble.com/What-configration-should-I-do-so-that-I-can-ensure-my-broker-is-using-jni-driver-of-levelDB-tp4673827p4673878.html Sent from the ActiveMQ - User

Re: What configration should I do so that I can ensure my broker is using jni driver of levelDB ?

2013-11-04 Thread HellKnight
I found this link : https://github.com/fusesource/leveldbjni should I download the jar file there and copy it to some activemq related dir ? I 've also got an broker running under redhat 6.3, how should I use levelDB jni implementation under linux ? -- View this message in context: http://acti

What configration should I do so that I can ensure my broker is using jni driver of levelDB ?

2013-11-04 Thread HellKnight
I've got an ActiveMQ borker (version 5.8.0) running under windows xp sp2. I switched from kahaDB to level DB recent days and I occationally found the following log while starting up broker today,it says: "Using the pure java LevelDB implementation which is still experimental. Production users shou

Re: Poor performance while using virtual topic mode

2013-10-18 Thread HellKnight
Never had any experience about servers, clusters , linux OS , enterprise level software etc before(Actually I mean when I was at university).It really suffers when I encounter some problems and can not come up with any ideas to find its cause step by step and resolve it at last, not to mention

Re: The consumers couldn't disconnect from broker properly

2013-10-17 Thread HellKnight
I typed "netstat -anp | grep 61616" in the server command window, and I find that "192.168.28.66 : 7042" is connected to server port 61616. -- View this message in context: http://activemq.2283324.n4.nabble.com/The-consumers-couldn-t-disconnect-from-broker-properly-tp4672722p4672724.html Sent

Re: The consumers couldn't disconnect from broker properly

2013-10-17 Thread HellKnight
Mr.Bish: Thanks for helping me using ActiveMQ these days. I turned off Inactivity monitor on the broker. I know it could kill old stale connections after a given time. However, I think why there is "old stale connections" in the first place is the real problem---If the client program and the

Re: Re:Re: Is it possible to dispatch a message in the topic to only a certain queues while using virtual topic?

2013-10-17 Thread HellKnight
The login process is something like our forum , loginName and password is sent to some web service, the web service verify these data from what's stored in database of server side.If loginName and password is legal, the client program will receive an OK message and a consumer is created , starti

Poor performance while using virtual topic mode

2013-10-17 Thread HellKnight
I am using virtual topic mode of ActiveMQ in my system.However, I found that performance degrades magnificantly if you add queues mapping to the virtual Topic. I did some simple tests in my Envrionment, the result is as follow : For each queue I added, it will costs the producer an extra 20 ms to

Re: Poor performance while using virtual topic mode

2013-10-17 Thread HellKnight
I did some more tests and I found the performance issue is due to message persistence. If I chose to send non-persistent messages , it took less than 1ms to send a message , even though by synchronous sends.I did not change the default configration about message persistence in activemq.xml. Can any

Re: Re:Re: Is it possible to dispatch a message in the topic to only a certain queues while using virtual topic?

2013-10-16 Thread HellKnight
only online consumers could receive message if I use non-durable subscriptions. This couldn't meet my requirments. -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-it-possible-to-dispatch-a-message-in-the-topic-to-only-a-certain-queues-while-using-virtual-topic-tp467262

Could LevelDB improve performance when sending messages to composite destinations ?

2013-10-16 Thread HellKnight
It was said "A send to a composite destination only stores the message on disk once." in this post . I am using virtual topics and bothered by performance issues ,so I changed kahaDB to Le

Re: Poor performance while using virtual topic mode

2013-10-16 Thread HellKnight
Could anyone give me some performance test resluts? I wonder how fast activemq should be while sending persistent messages. And how much does performance for persistent messages correlated to the HardDisk performance of server machine ? Thanks in advance for any help! -- View this message in con

The consumers couldn't disconnect from broker properly

2013-10-14 Thread HellKnight
The consumer program is writting in c# using NMS libraries and .NET 4.0, running under windows 7/xp sp2. The broker is running under redhat 6.3, ActiveMQ Version 5.8.0. I am using virtual topic mode. My problem is : Sometimes after the consumer has disconnected , I could still find it active and c

Having trouble while editing startup script and activemq.xml in order to monitor AMQ by jconsole

2013-10-11 Thread HellKnight
I want to monitor ActiveMQ by jconsole . ActiveMQ 5.8.0 running under redhat 6.3 , and jconsole is running under windows xp sp2. I did some googling , it seems to me that I have to modify activemq.xml and the startup script -- /bin/activemq. The example of startup script I found is as foll

Having trouble while editing startup script and activemq.xml in order to monitor AMQ by jconsole

2013-10-11 Thread HellKnight
I want to monitor ActiveMQ by jconsole . ActiveMQ 5.8.0 running under redhat 6.3 , and jconsole is running under windows xp sp2. I did some googling , it seems to me that I have to modify activemq.xml and the startup script: /bin/activemq. The example of startup script I found is as follow :

Could a producer written in c++ send a object to consumer written in c# ?

2013-10-11 Thread HellKnight
Producers in my system are mostly written in c++ and they will sent c++ objects through activemq, but consumers are written in c# , how could the consumer understand a object written in c++? I know this is a vague question and its not a 100% activemq problem , but I have absolutely no idea how this

Is it possible to dispatch a message in the topic to only a certain queues while using virtual topic?

2013-10-10 Thread HellKnight
I am using virtual topics but I've encountered a problem and I could not come up with a perfect solution , so I decide to post it and I believe you guys could help me . My use case is something like this : a producer is monitoring a database.Once the database is updated, the producer will send

Re: How can I check the existence of a durable subscriber with a given name using NMS?

2013-10-10 Thread HellKnight
I am using 5.8.0. However my client programs are written in C# by NMS libraries , so JMX won't do any direct good to me unless some NMS API could be used instead of JMX API -- View this message in context: http://activemq.2283324.n4.nabble.com/How-can-I-check-the-existence-of-a-durable-subscrib

Re: How can I check the existence of a durable subscriber with a given name using NMS?

2013-10-10 Thread HellKnight
How can I check the existence of a queue with a given name using this plugin ? -- View this message in context: http://activemq.2283324.n4.nabble.com/How-can-I-check-the-existence-of-a-durable-subscriber-with-a-given-name-using-NMS-tp4672438p4672505.html Sent from the ActiveMQ - User mailing l

Re: How can I check the existence of a durable subscriber with a given name using NMS?

2013-10-10 Thread HellKnight
Mr. Gomes: I am using the Statistics plug-in now. I used wildcard to get the statistics of every destination on the broker. However, I don't know the number of destinations on the broker, so I have no idea how many replies will be sent back to the "reply-to" queue. So the code receiving those

Re: How can I check the existence of a durable subscriber with a given name using NMS?

2013-10-09 Thread HellKnight
How can I check the existence of a queue with a given name using this plugin ? -- View this message in context: http://activemq.2283324.n4.nabble.com/How-can-I-check-the-existence-of-a-durable-subscriber-with-a-given-name-using-NMS-tp4672438p4672508.html Sent from the ActiveMQ - User mailing li

How can I check the existence of a durable subscriber with a given name using NMS?

2013-10-09 Thread HellKnight
There are JMX APIs such as getDurableTopicSubscribers and getInactiveTopicSubscribers , so the task looks easy if you are writing java code. However, I am coding in C# and using NMS libraries so I could not find a way that I can use these APIs(if there is a way to do so please let me know ! ). Ho

Re: Individual Acknowledgement seems not working in NMS

2013-10-08 Thread HellKnight
Mr. Bish: I've read your comments about my jira issue and thanks for resolving that. However, I found myself in bigger trouble now: What I want to achieve in the first place is as follow: 1. A producer program will monitor a database . When that database is updated , the producer will gene

Re: Individual Acknowledgement seems not working in NMS

2013-10-07 Thread HellKnight
Mr Tabish121: I created a jira issue as you required please click here . My unit test is also uploaded. Looking forward to your reply. -- View this message in context: http://activemq.2283324.n4.nabble.com/Individual-Acknowledgement-seem

Re: Individual Acknowledgement seems not working in NMS

2013-09-29 Thread HellKnight
I have upload my unit test project in a rar file , but it is not accepted by the mailing list up until now.Can you download it or I have to send it to you mailbox ? -- View this message in context: http://activemq.2283324.n4.nabble.com/Individual-Acknowledgement-seems-not-working-in-NMS-tp46719

Re: Individual Acknowledgement seems not working in NMS

2013-09-29 Thread HellKnight
I've deleted my original post. So some background info here : activemq 5.8.0 running under redhat 6.3 , nms 1.6.0 windows xp sp2 vs2010 .NET4.0 as my development envrionment. -- View this message in context: http://activemq.2283324.n4.nabble.com/Individual-Acknowledgement-seems-not-working

Re: Individual Acknowledgement seems not working in NMS

2013-09-29 Thread HellKnight
I create a simple unit test to show my problem in VS2010 , coded in c#. The idea of my test is as follow : 1. Send some message to the broker by web console. 2. Start a durable subscriber , and receive the test messages. 3. Close the connection of the durable subscriber and start listening again.

Individual Acknowledgement seems not working in NMS

2013-09-29 Thread HellKnight
I am using activemq 5.8.0 , VS 2010 , windows xp sp2 , .NET 4.0 AND NMS , writing code in C#. Pseudo code of my program is like this : Open connection with activemq broker.. start a consumer with async mode... . public voi

Re: Is there an timeout exception for session.commit() ?

2013-09-09 Thread HellKnight
I feel a little shamed...The problem is actually simple : I am using async sending , but I did not register any exception listener for the connection I used -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-there-an-timeout-exception-for-session-commit-tp4671013p4671295.

Re: Clients not receiving ResourceAllocationException in transacted sessions

2013-09-02 Thread HellKnight
use alwaysSyncSend has huge impacts on performance, but async sends could not receive exceptions in the same thread you call producer.send(). Could the client side receive jms.resourceAllocationException while calling session.commit() ? Then async sends and receive exception in the same thread co

Re: Is there an timeout exception for session.commit() ?

2013-09-02 Thread HellKnight
I used sendFailIfNoSpace and alwaysSyncSend , but the client side receive no exception. Activemq.log did record an error about resource allocation and memory limits reached. Any ideas ? -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-there-an-timeout-exception-for-se

Re: transaction timeout

2013-09-01 Thread HellKnight
Hi Mr. Strachan: you said "For JMS transactions, there's no transaction timeout (since they generally don't affect anyone else but your session, so its up to you when to commit() / rollback()). " So I suppose you are suggesting that there is a way we can set up jms transaction timeout manually. I

Re: Is there an timeout exception for session.commit() ?

2013-09-01 Thread HellKnight
" I wrote a producer program ,sending 10 messages in a for loop , then called session.commit() since I am using transactional mode." I wonna know what exactly happened in the broker and the producer while these codes get executed ? Does the producer send all messages asyncly to the broker ,the

Is there an timeout exception for session.commit() ?

2013-09-01 Thread HellKnight
I am suing activemq 5.8.0 , .NET 4.0 . I wrote a producer program ,sending 10 messages in a for loop , then called session.commit() since I am using transactional mode. After 10 minutes, I checked the web console , and found out the broker received no messages. Activemq.log showed an warnin

The durable consumers didn't exit normally,then it couldn't reconnect to broker

2013-08-30 Thread HellKnight
I wrote a durable consumer program by VS2010 , Visual C#. I ran the program in debug mode and it encountered some exception , didn't terminate normally. Then the consumer couldn't connect to broker again, instead it throws the exception: durable consumer is in use for clientID: client1 and subname

Re: Why I get "waiting for space to send transacted message" warning?

2013-08-29 Thread HellKnight
a; //I create a BytesMessage . for(int i = 0 ;i<1 ; i++) prod.send()//I send Message persistently , I didn't type out all the params in send method s1.commit();//commit the transaction } HellKnight wrote > I am using activemq 5.

I lost messages when sending from multiple producers ,each producer is in a seperate thread

2013-08-29 Thread HellKnight
the producer program is much the same as in this post the only diff is that each producer sends 100 msgs this time to avoid the problem mentioned in my previous post.

Why I get "waiting for space to send transacted message" warning?

2013-08-29 Thread HellKnight
I am using activemq 5.8.0 , jdk 1.7 , c# NMS (.NET 4.0). I write a producer and a consumer program for testing purpose. But I get the warning in the subject of this post : waiting for space to send transacted message . the producer program is sth like this(not the complete code) : ... ICon