Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

stop() operation of MBean that manage a deployed EJB???  RSS feed

 
Nghiem Nguyen
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I want to manage my application like: start, stop...my services (stateless session bean ---> CMP).

I used an EJB to manage MBeans that manage my deployed EJBs, when I called stop() method, I also could use that EJB.
Why?

Please give me an answer.

Thanks.
Rock.
 
Jeremy Hsu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems from your question. You tried to manage the lifecycle of your deployed ejb through the mbean.

If this is what you are doing, then this is why it does not work because the lifecycle of the EJB is managed by the container. You have no way to manage the lifecycle of another EJB. Only the j2ee container can do that.
 
hs abc
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for Jeremy Hsu's reply.
Actually, when I call MBean's destroy() method, it work.Why not with stop() method?
Please answer me.
Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!