[JBoss-user] [Messaging, JMS JBossMQ] - Programatically remove a queue receiver..
Hi, I was wondering whether it is possible to get a hold of the list of receivers attached to a queue and remove and add them programatically e.g. using JMX ? The problem is that we have a third party solution that pulls stuff off a JMS queue. When the load on this system is heavy we want to start a new instance of this third party application on another box, it pulls messages off the same queue. When the load is light, we don't want this new instance to take stuff off the queue but due to a failing in the third part software, stopping that new instance will kill both clients. I suppose any other ideas as to how to overcome this problem are welcome too. Thanks, Steve. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3902257#3902257 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3902257 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Getting an IllegalArgumentException with RMIAdaptor in 3.2
Hi, I'm trying to write a simple client to access the MBean for a JMS destination. Whenver I try and invoke a method on the RMIAdaptor I get an IllegalArgumentException claiming I've used the wrong number of arguements Can anyone help !? Here's the code :- Properties props = new Properties(); props.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); props.setProperty(Context.PROVIDER_URL, jnp://ifdevdoc2:6999); InitialContext ctx = new InitialContext(props); RMIAdaptor server = (RMIAdaptor) ctx.lookup(jmx/invoker/RMIAdaptor); ObjectName name = new ObjectName(jboss.mq.destination :name=THRequest); //error happens here.. System.out.println(server.getAttribute(name, JNDIName)); Thanks, Steve. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3898909#3898909 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3898909 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Getting an
Still getting the same error :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3898913#3898913 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3898913 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Getting an
Properties props = new Properties(); | | props.setProperty( | Context.INITIAL_CONTEXT_FACTORY, | org.jnp.interfaces.NamingContextFactory); | props.setProperty(Context.PROVIDER_URL, jnp://ifdevdoc2:6999); | InitialContext ctx = new InitialContext(props); | | RMIAdaptor server = (RMIAdaptor) ctx.lookup(jmx/invoker/RMIAdaptor); | ObjectName name = new ObjectName(jboss.mq.destination:name=THRequest,service=Queue); | | | //error here | System.out.println(server.getAttribute(name, JNDIName)); I still get the same error. We're using JBoss 3.2.3 here, it may also be of note that if I try a method with no parameters e.g. getDefaultDomain it works fine. Using reflection determines that getAttribute has two parameters as well... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3898918#3898918 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3898918 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Getting an
Thanks for all your help ! Using that last suggestion I got an error that enabled me to find out it was due to having the wrong version of the javax.management classes on my client side. many thanks, Steve. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3898927#3898927 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3898927 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user