[jboss-user] [Messaging, JMS & JBossMQ] - Re: import org.jboss.mq.server.jmx.Queue

vitor_b do-not-reply at jboss.com
Tue Mar 27 08:50:04 EDT 2007


It looks that reference to this object cannot be sent outside JVM in which this object lives. This is an simple object, not bean, so you cannot access it. Honestly I don't know how to do that. From inside server you could access and use that reference.

So... personally i would create session bean working on server, which will expose some methods. These methods would get info about yoour queue via MBean Proxy. You could create MBean proxy in ejbCreate method, and this bean could be stateless.
So you would lokup for that bean, call methods on it, and all logic taking info about your queue would be inside that bean methods. 
It is heavier but I don't know the other way.

Best regards


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

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

More information about the jboss-user mailing list