i try to stop "message-delivery from a queue".

DocImportProcessorEJB:

  | onMessage(Message m) {
  |    if (...) {
  |       ObjectName objectName = 
  |                      new 
ObjectName("jboss.j2ee:binding=message-driven-bean, 
  |                                      jndiName=local/DocImportProcessorEJB, 
  |                                      plugin=invoker,service=EJB");          
                                        
  |       MBeanServer server = MBeanServerLocator.locateJBoss();
  |       server.invoke(objectName, "stopDelivery", new Object[] {}, null);
  |    }
  | }

error:

  |      [exec] 22:34:36,937 INFO  [STDOUT]          
  |                  javax.management.InstanceNotFoundException: 
  |                  jboss.j2ee:binding=message-driven-bean,                    
                 
  |                  jndiName=local/DocImportProcessorEJB, 
  |                  plugin=invoker,service=EJB is not registered.
  | 

jmx-console:

  | Domain Name:        jboss.j2ee
  | service:    EJB
  | plugin:     invoker
  | binding:    message-driven-bean
  | jndiName:   local/[EMAIL PROTECTED]
  | 

local/[EMAIL PROTECTED] is this the name of the instance?
however, its dynamic. it changes with every jboss-restart.

what would be the correct objectname to reference the mbean?

thank you for reply (and sorry for my english)
marc

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893279#3893279

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893279


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to