[jboss-dev-forums] [Design of POJO Server] - Re: bean/mbean integration issue

adrian@jboss.org do-not-reply at jboss.com
Wed Jan 17 11:11:39 EST 2007


More concretely, for the case in hand - invoking a method on another context
during the install phase...

The code should be something like:

  | if (context instanceof DispatchContext)
  | {
  |    DispatchContext dc = (DispatchContext) context;
  |    dc.dispatch(...);
  | }
  | else
  | {
  |    throw new IllegalArgumentException("Cannot install, context " + context + " does not implement DispatchContext");
  | }
  | 

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

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



More information about the jboss-dev-forums mailing list