Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mbeans and class loaders

 
harry hita
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

If I have an mbean defined in application 1 and then use the mbean server in application 2 to invoke a method on the mbean, which class loader will the invocation happen in? app 2's classloader or app 1's classloader?
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Harry,

Clients cannot invoke methods on MDBs (this is why MDBs don�t have remote or home interfaces). They are strict server side components that act like asynchronous JMS listeners. Only the container calls the onMessage() if a message was added to the associate JMS destination. Clients interact with the MDB indirectly, sending JMS messages to the JMS destination.
 
harry hita
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Valentin, but I was referring to mbeans (as in jmx managed objects) not message driven beans.



Originally posted by Valentin Tanase:
Hi Harry,

Clients cannot invoke methods on MDBs (this is why MDBs don�t have remote or home interfaces). They are strict server side components that act like asynchronous JMS listeners. Only the container calls the onMessage() if a message was added to the associate JMS destination. Clients interact with the MDB indirectly, sending JMS messages to the JMS destination.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic