Phil,
Thanks for the post! I'm trying to do just what you suggest with the
MBeans. I need to deploy instances of the MBeans as well as start and
stop topics & queues-all programmatically. In fact, I aim to do all of
that through web services, so the normal JMX web console is out.
Right now I'm struggling to find examples of how to deploy MBeans and
create JMS queues and topics. Got any leads? :)
Thanks!
Bogus Exception
> I would probably go JMX. Write an MBean and deploy it with your
> application. Then you could either use JBoss's JMX console to
> manually call methods on it or get hold of the MBean programatically
> via the MBeanLocator and call it's methods that way.
Philipp Taprogge - 07 May 2007 23:36 GMT
Hi!
> In fact, I aim to do all of
> that through web services, so the normal JMX web console is out.
Are you sure, the overhead webservices employ is worth it?
Depending on the application, a Client-Server app might me more
light-weight. Unfortunately, you have added very little information
about your application, so if you indeed have reason to use
webservices, disregard this remark.
> Right now I'm struggling to find examples of how to deploy MBeans and
> create JMS queues and topics. Got any leads? :)
IIRC there's a tutorial somewhere on the JBoss site. I have recently
implemented MBeans in an EJB3 environment and there it's just a set
of annotations on the MBean class itself. Please send me a private
mail if you need a code example for that.
HTH,
Phil