User: mnf999  
  Date: 01/08/29 19:34:52

  Modified:    src/main/org/jboss/mq/pm/file PersistenceManager.java
  Log:
  just making sure the file is used correctly
  
  Revision  Changes    Path
  1.3       +14 -7     jbossmq/src/main/org/jboss/mq/pm/file/PersistenceManager.java
  
  Index: PersistenceManager.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/pm/file/PersistenceManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PersistenceManager.java   2001/08/17 03:04:05     1.2
  +++ PersistenceManager.java   2001/08/30 02:34:52     1.3
  @@ -24,7 +24,7 @@
   import org.jboss.mq.server.JMSDestination;
   import org.jboss.mq.server.JMSServer;
   
  -import org.jboss.util.ServiceMBeanSupport;
  +import org.jboss.system.ServiceMBeanSupport;
   
   /**
    *  This class manages all persistence related services for file based
  @@ -32,9 +32,9 @@
    *
    * @author     Paul Kendall ([EMAIL PROTECTED])
    * @created    August 16, 2001
  - * @version    $Revision: 1.2 $
  + * @version    $Revision: 1.3 $
    */
  -public class PersistenceManager extends org.jboss.util.ServiceMBeanSupport 
implements PersistenceManagerMBean, org.jboss.mq.pm.PersistenceManager {
  +public class PersistenceManager extends org.jboss.system.ServiceMBeanSupport 
implements PersistenceManagerMBean, org.jboss.mq.pm.PersistenceManager {
      protected java.util.ArrayList txPool = new java.util.ArrayList();
   
      protected long   tidcounter = Long.MIN_VALUE;
  @@ -81,10 +81,17 @@
   
      public void initService()
         throws Exception {
  -      URL configFile = getClass().getClassLoader().getResource( "jboss.jcml" );
  -      dataDirURL = new URL( configFile, dataDirectory );
  -      dataDirFile = new File( dataDirURL.getFile() );
  -      JMSServer server = ( JMSServer )getServer().invoke( new ObjectName( 
org.jboss.mq.server.JBossMQServiceMBean.OBJECT_NAME ), "getJMSServer", new Object[]{}, 
new String[]{} );
  +                     
  +      //URL configFile = getClass().getClassLoader().getResource( "jboss.jcml" );
  +      //dataDirURL = new URL( configFile, dataDirectory );
  +      //dataDirFile = new File( dataDirURL.getFile() );
  +      
  +             File homeDir = new File(System.getProperty("jboss.system.home"));
  +             dataDirFile = new File(homeDir,dataDirectory);
  +             System.out.println("DATADIRFILE"+ dataDirFile.getAbsolutePath());
  +             dataDirURL = dataDirFile.toURL();
  +       
  +             JMSServer server = ( JMSServer )getServer().invoke( new ObjectName( 
org.jboss.mq.server.JBossMQServiceMBean.OBJECT_NAME ), "getJMSServer", new Object[]{}, 
new String[]{} );
         server.setPersistenceManager( this );
      }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to