[jboss-cvs] JBossAS SVN: r62323 - trunk/server/src/main/org/jboss/naming.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Apr 13 08:06:06 EDT 2007
Author: adrian at jboss.org
Date: 2007-04-13 08:06:06 -0400 (Fri, 13 Apr 2007)
New Revision: 62323
Modified:
trunk/server/src/main/org/jboss/naming/LinkRefPairService.java
Log:
Port JBAS-4329 from jboss-4.2
Modified: trunk/server/src/main/org/jboss/naming/LinkRefPairService.java
===================================================================
--- trunk/server/src/main/org/jboss/naming/LinkRefPairService.java 2007-04-13 11:18:35 UTC (rev 62322)
+++ trunk/server/src/main/org/jboss/naming/LinkRefPairService.java 2007-04-13 12:06:06 UTC (rev 62323)
@@ -1,29 +1,30 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.naming;
import javax.naming.InitialContext;
import org.jboss.deployment.DeploymentException;
+import org.jboss.logging.Logger;
import org.jboss.system.ServiceMBeanSupport;
/**
@@ -35,6 +36,15 @@
public class LinkRefPairService extends ServiceMBeanSupport
implements LinkRefPairServiceMBean
{
+ /** This is a hack to make sure this class doesn't get garbage collected */
+ protected static final Class HACK = LinkRefPairObjectFactory.class;
+
+ static
+ {
+ // Make sure the LinkRefPairObjectFactory class is initialized
+ Logger.getLogger(LinkRefPairService.class).debug("LinkRefPair guid=" + LinkRefPairObjectFactory.guid);
+ }
+
// Constants -----------------------------------------------------
// Attributes ----------------------------------------------------
More information about the jboss-cvs-commits
mailing list