[Messaging, JMS & JBossMQ] - Re: queue statistics
by marcobaroetto
i got it:
|
| try{
| ObjectName queueObjectName = ObjectName.getInstance(stringObjectName);
|
| org.jboss.mq.server.jmx.QueueMBean queueMBean =
| (org.jboss.mq.server.jmx.QueueMBean) MBeanServerInvocationHandler.newProxyInstance(
| server,
| queueObjectName,
| org.jboss.mq.server.jmx.QueueMBean.class,
| false
| );
|
|
| System.out.println("-------- QUEUE STATISTICS "+i+" ---------");
| System.out.println("queue depth "+i+": " + queueMBean.getQueueDepth());
| System.out.println("in process "+i+": " + queueMBean.getInProcessMessageCount());
| System.out.println("scheduled "+i+": " + queueMBean.getScheduledMessageCount());
| System.out.println("retries "+i+": " + queueMBean.getRecoveryRetries());
| System.out.println("---------------------------------------------------");
|
|
| }catch (Exception e){
| System.out.println("cannot get depth of the queue: " + e.getMessage() );
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127435#4127435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127435
18 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Re: No more console messages after first deployment - jboss
by jaikiran
I just gave this a try on my local setup. Going by your logs, it appears that you have placed beans.jar in the deploy folder and the beans.jar contains EJB2 beans. I used a similar application named myapp_ejb2.jar and placed it in deploy folder. Started JBoss. Here's what i see on the console:
| 20:39:39,739 INFO [EjbModule] Deploying HelloWorldBean
| 20:39:39,989 INFO [ProxyFactory] Bound EJB Home 'HelloWorldBean' to jndi 'HelloWorld'
| 20:39:39,989 INFO [EJBDeployer] Deployed: file:/D:/JBoss-4.2.2/jboss-4.2.2.GA/server/jaikiran/deploy/myapp_ejb2.jar/
Then i 'touched' the ejb-jar.xml to redeploy this application. Here's the logs that i see:
| 20:40:05,646 INFO [EJBDeployer] Undeploying: file:/D:/JBoss-4.2.2/jboss-4.2.2.GA/server/jaikiran/deploy/myapp_ejb2.jar/
| 20:40:05,661 INFO [ProxyFactory] Unbind EJB Home 'HelloWorldBean' from jndi 'HelloWorld'
| 20:40:05,661 INFO [EjbModule] Undeployed HelloWorldBean
| 20:40:05,849 INFO [EjbModule] Deploying HelloWorldBean
| 20:40:06,021 INFO [ProxyFactory] Bound EJB Home 'HelloWorldBean' to jndi 'HelloWorld'
| 20:40:06,021 INFO [EJBDeployer] Deployed: file:/D:/JBoss-4.2.2/jboss-4.2.2.GA/server/jaikiran/deploy/myapp_ejb2.jar/
Looks fine for me. Can you search for the string [EJBDeployer] Deployed: in your server.log?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127426#4127426
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127426
18 years, 2 months