The static members is going to be a pain to workaround.

If everything were member variables, just need to have protected methods, 
something like:


  | protected getMBeanServer()
  | {
  |    return MBeanServerFactory.createMBeanServer();
  | }
  | 
  | protected ObjectName getDetectorObjectName()
  | {
  |    return ObjectNameFactory.create("remoting:service=detector");
  | }
  | 
  | protected Detector getDetector()
  | {
  |    return new MulticastDetector();
  | }
  | 
  | protected Connector getConnector()
  | {
  |    return new Connector();
  | }
  | 

Then the main code just calls these getters - thus allowing subclasses to 
override these and be able to configure them as they want.

But, the detector and MBeanServer are static (I understand why - you only want 
one for all transport servers to use) and are accessed in some static methods.  
So this won't actually compile.

So, somehow have to work around that.

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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to