User: user57 Date: 02/04/03 20:34:25 Modified: src/main/org/jboss/ejb/plugins StatefulSessionFilePersistenceManager.java Log: o Using ServerConfigLocator instead of ServerConfigImplMBean Revision Changes Path 1.35 +5 -4 jboss/src/main/org/jboss/ejb/plugins/StatefulSessionFilePersistenceManager.java Index: StatefulSessionFilePersistenceManager.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/StatefulSessionFilePersistenceManager.java,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- StatefulSessionFilePersistenceManager.java 5 Mar 2002 18:41:48 -0000 1.34 +++ StatefulSessionFilePersistenceManager.java 4 Apr 2002 04:34:25 -0000 1.35 @@ -36,7 +36,9 @@ import org.jboss.ejb.StatefulSessionPersistenceManager; import org.jboss.ejb.StatefulSessionEnterpriseContext; import org.jboss.logging.Logger; -import org.jboss.system.server.ServerConfigImplMBean; + +import org.jboss.system.server.ServerConfigLocator; + import org.jboss.util.jmx.MBeanServerLocator; /** @@ -47,7 +49,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">Rickard Öberg</a> * @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a> * @author <a href="mailto:[EMAIL PROTECTED]">Sebastien Alborini</a> - * @version $Revision: 1.34 $ + * @version $Revision: 1.35 $ */ public class StatefulSessionFilePersistenceManager implements StatefulSessionPersistenceManager @@ -89,8 +91,7 @@ String ejbName = con.getBeanMetaData().getEjbName(); // Get the system data directory - File systemDataDir = (File) - MBeanServerLocator.locate().getAttribute(ServerConfigImplMBean.OBJECT_NAME, "DataDir"); + File systemDataDir = ServerConfigLocator.locate().getServerDataDir(); // Gte a handle on the sysdata/sessions/ejbname directory dataDir = new File(new File(systemDataDir, "sessions"), ejbName);
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development