This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes mbeans and class loaders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "mbeans and class loaders" Watch "mbeans and class loaders" New topic
Author

mbeans and class loaders

harry hita
Greenhorn

Joined: Jan 05, 2005
Posts: 14
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

Joined: Feb 17, 2005
Posts: 704
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.


I think, therefore I exist -- Rene Descartes
harry hita
Greenhorn

Joined: Jan 05, 2005
Posts: 14
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.
 
 
subject: mbeans and class loaders
 
Similar Threads
Loading a Class using ClassLoader
reading a properties file
getting hold of a classholder handle
Startup/Shutdown class in JBOSS 4.0
Basic Questions