User: chirino
Date: 01/08/31 20:00:59
Modified: src/main/org/jboss/mq/il ServerILJMXService.java
ServerILJMXServiceMBean.java
Log:
Fixing compile problems due to migration of classes from jboss.util to jboss.system
Revision Changes Path
1.4 +31 -24 jbossmq/src/main/org/jboss/mq/il/ServerILJMXService.java
Index: ServerILJMXService.java
===================================================================
RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/ServerILJMXService.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ServerILJMXService.java 2001/08/30 02:35:54 1.3
+++ ServerILJMXService.java 2001/09/01 03:00:58 1.4
@@ -1,5 +1,5 @@
/*
- * JBossMQ, the OpenSource JMS implementation
+ * JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
@@ -9,12 +9,15 @@
import java.util.Properties;
import javax.management.*;
import javax.naming.InitialContext;
-
import org.jboss.mq.GenericConnectionFactory;
import org.jboss.mq.SpyConnectionFactory;
import org.jboss.mq.SpyXAConnectionFactory;
import org.jboss.mq.server.JMSServer;
+
+
+
+
import org.jboss.system.ServiceMBeanSupport;
/**
@@ -22,19 +25,20 @@
* extended to provide a full implementation.
*
* @author Hiram Chirino ([EMAIL PROTECTED])
- * @created August 16, 2001
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
-public abstract class ServerILJMXService extends
org.jboss.system.ServiceMBeanSupport implements ServerILJMXServiceMBean {
- private String connectionFactoryJNDIRef;
+public abstract class ServerILJMXService extends ServiceMBeanSupport implements
ServerILJMXServiceMBean
+{
+ private String connectionFactoryJNDIRef;
- private String xaConnectionFactoryJNDIRef;
+ private String xaConnectionFactoryJNDIRef;
/**
* @param newConnectionFactoryJNDIRef the JNDI reference where the
* connection factory should be bound to
*/
- public void setConnectionFactoryJNDIRef( java.lang.String
newConnectionFactoryJNDIRef ) {
+ public void setConnectionFactoryJNDIRef(java.lang.String
newConnectionFactoryJNDIRef)
+ {
connectionFactoryJNDIRef = newConnectionFactoryJNDIRef;
}
@@ -42,7 +46,8 @@
* @param newXaConnectionFactoryJNDIRef java.lang.String the JNDI reference
* where the xa connection factory should be bound to
*/
- public void setXAConnectionFactoryJNDIRef( java.lang.String
newXaConnectionFactoryJNDIRef ) {
+ public void setXAConnectionFactoryJNDIRef(java.lang.String
newXaConnectionFactoryJNDIRef)
+ {
xaConnectionFactoryJNDIRef = newXaConnectionFactoryJNDIRef;
}
@@ -63,7 +68,8 @@
* @return java.lang.String the JNDI reference where the connection
* factory should be bound to
*/
- public java.lang.String getConnectionFactoryJNDIRef() {
+ public java.lang.String getConnectionFactoryJNDIRef()
+ {
return connectionFactoryJNDIRef;
}
@@ -71,7 +77,8 @@
* @return java.lang.String the JNDI reference where the xa connection
* factory should be bound to
*/
- public java.lang.String getXAConnectionFactoryJNDIRef() {
+ public java.lang.String getXAConnectionFactoryJNDIRef()
+ {
return xaConnectionFactoryJNDIRef;
}
@@ -80,17 +87,17 @@
*
* @throws javax.naming.NamingException it cannot be unbound
*/
- public void bindJNDIReferences()
- throws javax.naming.NamingException {
+ public void bindJNDIReferences() throws javax.naming.NamingException
+ {
- GenericConnectionFactory gcf = new GenericConnectionFactory( getServerIL(),
getClientConnectionProperties() );
- SpyConnectionFactory scf = new SpyConnectionFactory( gcf );
- SpyXAConnectionFactory sxacf = new SpyXAConnectionFactory( gcf );
+ GenericConnectionFactory gcf = new GenericConnectionFactory(getServerIL(),
getClientConnectionProperties());
+ SpyConnectionFactory scf = new SpyConnectionFactory(gcf);
+ SpyXAConnectionFactory sxacf = new SpyXAConnectionFactory(gcf);
// Get an InitialContext
InitialContext ctx = new InitialContext();
- ctx.bind( connectionFactoryJNDIRef, scf );
- ctx.bind( xaConnectionFactoryJNDIRef, sxacf );
+ ctx.bind(connectionFactoryJNDIRef, scf);
+ ctx.bind(xaConnectionFactoryJNDIRef, sxacf);
}
@@ -99,12 +106,12 @@
*
* @throws javax.naming.NamingException it cannot be unbound
*/
- public void unbindJNDIReferences()
- throws javax.naming.NamingException {
+ public void unbindJNDIReferences() throws javax.naming.NamingException
+ {
// Get an InitialContext
InitialContext ctx = new InitialContext();
- ctx.unbind( connectionFactoryJNDIRef );
- ctx.unbind( xaConnectionFactoryJNDIRef );
+ ctx.unbind(connectionFactoryJNDIRef);
+ ctx.unbind(xaConnectionFactoryJNDIRef);
}
/**
@@ -112,9 +119,9 @@
* @exception Exception Description of Exception
* @throws javax.naming.NamingException if the server is not found
*/
- public JMSServer lookupJMSServer()
- throws Exception {
- return ( JMSServer )getServer().invoke( new ObjectName(
org.jboss.mq.server.JBossMQServiceMBean.OBJECT_NAME ), "getJMSServer", new Object[]{},
new String[]{} );
+ public JMSServer lookupJMSServer() throws Exception
+ {
+ return (JMSServer)getServer().invoke(new
ObjectName(org.jboss.mq.server.JBossMQServiceMBean.OBJECT_NAME), "getJMSServer", new
Object[]{}, new String[]{});
}
}
1.4 +7 -6 jbossmq/src/main/org/jboss/mq/il/ServerILJMXServiceMBean.java
Index: ServerILJMXServiceMBean.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/ServerILJMXServiceMBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ServerILJMXServiceMBean.java 2001/08/30 02:35:54 1.3
+++ ServerILJMXServiceMBean.java 2001/09/01 03:00:59 1.4
@@ -1,21 +1,21 @@
/*
- * JBossMQ, the OpenSource JMS implementation
+ * JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.mq.il;
-import java.lang.Object;
+import org.jboss.system.ServiceMBean;
/**
* This interface is used to define which methods will be exposed via JMX.
*
* @author Hiram Chirino ([EMAIL PROTECTED])
- * @created August 16, 2001
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
-public interface ServerILJMXServiceMBean extends org.jboss.system.ServiceMBean {
+public interface ServerILJMXServiceMBean extends ServiceMBean
+{
/**
* @return java.lang.String the JNDI reference where the connection
@@ -27,17 +27,18 @@
* @param newConnectionFactoryJNDIRef the JNDI reference where the
* connection factory should be bound to
*/
- public void setConnectionFactoryJNDIRef( java.lang.String
newConnectionFactoryJNDIRef );
+ public void setConnectionFactoryJNDIRef(java.lang.String
newConnectionFactoryJNDIRef);
/**
* @param newXaConnectionFactoryJNDIRef java.lang.String the JNDI reference
* where the xa connection factory should be bound to
*/
- public void setXAConnectionFactoryJNDIRef( java.lang.String
newXaConnectionFactoryJNDIRef );
+ public void setXAConnectionFactoryJNDIRef(java.lang.String
newXaConnectionFactoryJNDIRef);
/**
* @return java.lang.String the JNDI reference where the xa connection
* factory should be bound to
*/
public java.lang.String getXAConnectionFactoryJNDIRef();
+
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development