[savara-commits] savara SVN: r111 - in tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb: generator and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Sun Dec 6 06:30:05 EST 2009


Author: objectiser
Date: 2009-12-06 06:30:04 -0500 (Sun, 06 Dec 2009)
New Revision: 111

Removed:
   tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/generator/JBossMQMessagingSystem.java
Modified:
   tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/dialogs/GenerateDialog.java
Log:
Remove JBossMQ as a messaging option, as basing on JBossAS5.1

Modified: tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/dialogs/GenerateDialog.java
===================================================================
--- tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/dialogs/GenerateDialog.java	2009-12-06 00:15:35 UTC (rev 110)
+++ tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/dialogs/GenerateDialog.java	2009-12-06 11:30:04 UTC (rev 111)
@@ -53,7 +53,6 @@
 		m_buildSystems.add(new MavenBuildSystem());
 		
 		m_messagingSystems.add(new JBMMessagingSystem());
-		m_messagingSystems.add(new JBossMQMessagingSystem());
 		
 		initialize(m_file);
 	}

Deleted: tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/generator/JBossMQMessagingSystem.java
===================================================================
--- tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/generator/JBossMQMessagingSystem.java	2009-12-06 00:15:35 UTC (rev 110)
+++ tools/eclipse/trunk/plugins/org.jboss.savara.tools.jbossesb/src/java/org/jboss/savara/tools/jbossesb/generator/JBossMQMessagingSystem.java	2009-12-06 11:30:04 UTC (rev 111)
@@ -1,84 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
- * by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * 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,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA  02110-1301, USA.
- */
-package org.jboss.savara.tools.jbossesb.generator;
-
-import java.util.logging.Logger;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jdt.core.IJavaProject;
-import org.jboss.savara.tools.jbossesb.model.ESBLanguageModel;
-import org.jboss.savara.tools.jbossesb.model.ESBService;
-
-/**
- * This class provides the information related to the JBossMQ
- * messaging system.
- */
-public class JBossMQMessagingSystem extends MessagingSystem {
-
-	private static final String JBOSSMQ_MESSAGING = "JBossMQ";
-	private static final String JBOSSMQ_CONFIG_FILE = "jbmq-queue-service.xml";
-
-	/**
-	 * The default constructor.
-	 */
-	public JBossMQMessagingSystem() {
-		super(JBOSSMQ_MESSAGING);
-	}
-	
-	/**
-	 * This method returns the configuration filename.
-	 * 
-	 * @return The configuration filename
-	 */
-	public String getConfigFileName() {
-		return(JBOSSMQ_CONFIG_FILE);
-	}
-	
-	/**
-	 * This method returns the messaging configuration for the
-	 * supplied service.
-	 * 
-	 * @param model The model
-	 * @param service The service
-	 * @return The messaging configuration
-	 */
-	protected String getServiceConfig(ESBLanguageModel model,
-							ESBService service) {
-		StringBuffer buf=new StringBuffer();
-
-		String dest=model.getJMSDefinition(service.getJMSBusIdRef());
-				
-		if (dest != null) {
-			buf.append("\t<mbean code=\"org.jboss.mq.server.jmx.Queue\"\r\n");
-			buf.append("\t\t\tname=\""+service.getCategory()+".destination:service=Queue,name="+dest+"\">\r\n");
-			buf.append("\t\t<depends optional-attribute-name=\"DestinationManager\">\r\n");
-			buf.append("\t\t\tjboss.mq:service=DestinationManager\r\n");
-			buf.append("\t\t</depends>\r\n");
-			buf.append("\t</mbean>\r\n");
-		} else {
-			logger.severe("Failed to find destination for JMS bus id '"+
-					service.getJMSBusIdRef()+"'");
-		}
-		
-		return(buf.toString());
-	}
-
-	private static Logger logger = Logger.getLogger("org.jboss.savara.tools.jbossesb.generator");
-}



More information about the savara-commits mailing list