User: pkendall
Date: 01/08/08 17:21:43
Modified: src/main/org/jbossmq/il/jvm JVMServerILFactory.java
Log:
Major updates (especially to topics).
Speed improvements.
Make JVM IL work (by using a singleton JMSServer).
Message Listeners re-implemented using client-side thread.
Revision Changes Path
1.2 +3 -20 jbossmq/src/main/org/jbossmq/il/jvm/JVMServerILFactory.java
Index: JVMServerILFactory.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jbossmq/il/jvm/JVMServerILFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- JVMServerILFactory.java 2001/07/29 23:34:21 1.1
+++ JVMServerILFactory.java 2001/08/09 00:21:43 1.2
@@ -10,43 +10,26 @@
import org.jbossmq.il.ServerILFactory;
import org.jbossmq.il.ServerIL;
-import org.jbossmq.il.ServerILJMXService;
import org.jbossmq.server.JMSServer;
-import javax.management.*;
-
-import org.jboss.util.ServiceMBeanSupport;
-
/**
* Implements the ServerILFactory interface to create a new JVMServerIL
*
* @author David Maplesden
* @version $Revision$
*/
-public class JVMServerILFactory extends ServiceMBeanSupport implements
ServerILFactory {
+public class JVMServerILFactory implements ServerILFactory {
public void init(Properties init){
}
- public String getName(){
- return "JVMServerILFactory";
- }
-
/**
* Used to construct the GenericConnectionFactory (bindJNDIReferences() builds
it)
* @returns ServerIL the instance of this IL
*/
public ServerIL getServerIL() throws Exception{
- return new JVMServerIL(lookupJMSServer());
- }
-
- /**
- * @param finds the JMSServer instance via JNDI
- * @throws javax.naming.NamingException if the server is not found
- */
- public JMSServer lookupJMSServer() throws Exception {
- return (JMSServer)getServer().invoke(new
ObjectName(org.jbossmq.server.JBossMQServiceMBean.OBJECT_NAME), "getJMSServer", new
Object[] {}, new String[] {} );
+ return new JVMServerIL(JMSServer.getInstance());
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development