User: fleury  
  Date: 00/05/19 20:09:38

  Modified:    src/java/org/spyderMQ/server Main.java
  Log:
  Still no build (selectors) but a Main that use a static variable, waiting for the 
JMX implementation
  
  Revision  Changes    Path
  1.2       +6 -9      spyderMQ/src/java/org/spyderMQ/server/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /products/cvs/ejboss/spyderMQ/src/java/org/spyderMQ/server/Main.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Main.java 2000/05/20 03:00:22     1.1
  +++ Main.java 2000/05/20 03:09:37     1.2
  @@ -36,7 +36,7 @@
    *   @author Norbert Lataille ([EMAIL PROTECTED])
    *   @author Rich Johns ([EMAIL PROTECTED])
    *
  - *   @version $Revision: 1.1 $
  + *   @version $Revision: 1.2 $
    */
   public class Main implements Runnable
   {
  @@ -47,6 +47,9 @@
        DistributedJMSServer theDistributedServer;
        SecurityManager securityManager;
        JMSServer theServer;
  +  //We prevent garbage collection with a static variable
  +  // MF FIXME: use JMX to admin and prevent garbage collectionf
  +  private static Main thisServer;
        
        //bind the TopicConnectionFactory object
        public void startJMSServer()
  @@ -191,13 +194,6 @@
        {
                try {
                        startJMSServer();
  -
  -                     //We have to find something else, JMX for example...
  -                     Boolean b=new Boolean(true);
  -                     synchronized (b) {
  -                             b.wait();
  -                     }
  -
                } catch (Exception e) {
                        System.out.println("I cannot start the server");
                        e.printStackTrace(System.err);                  
  @@ -206,7 +202,8 @@
        
        public static void main(String[] args) throws Exception
        {    
  -             new Main().run();
  +             thisServer = new Main();
  +    thisServer.run();
        }
        
   }
  
  
  

Reply via email to