[jbpm-commits] JBoss JBPM SVN: r4270 - jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi.
do-not-reply at jboss.org
do-not-reply at jboss.org
Wed Mar 18 04:26:36 EDT 2009
Author: heiko.braun at jboss.com
Date: 2009-03-18 04:26:36 -0400 (Wed, 18 Mar 2009)
New Revision: 4270
Removed:
jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi/JBPMServiceImpl.java
Log:
Remove legacy class from build
Deleted: jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi/JBPMServiceImpl.java
===================================================================
--- jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi/JBPMServiceImpl.java 2009-03-18 08:06:35 UTC (rev 4269)
+++ jbpm4/trunk/modules/integration/spi/src/main/java/org/jbpm/integration/spi/JBPMServiceImpl.java 2009-03-18 08:26:36 UTC (rev 4270)
@@ -1,68 +0,0 @@
-/*
- * 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.jbpm.integration.spi;
-
-import org.jbpm.Configuration;
-import org.jbpm.ProcessEngine;
-import org.jbpm.internal.log.Log;
-
-import javax.naming.InitialContext;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class JBPMServiceImpl implements JBPMService
-{
- private static final Log log = Log.getLog(JBPMServiceImpl.class.getName());
-
- private final static String DEFAULT_JNDI_NAME = "java:/ProcessEngine";
-
- private ProcessEngine processEngine;
-
- public void start()
- {
- this.processEngine = new Configuration().buildProcessEngine();
-
- try
- {
- InitialContext ctx = new InitialContext();
- ctx.bind(DEFAULT_JNDI_NAME, new ProcessEngineReference("default", this.processEngine));
- log.info("ProcessEngine bound to: " + DEFAULT_JNDI_NAME);
- }
- catch (Exception e)
- {
- throw new RuntimeException("Failed to create JBPMService", e);
- }
-
- }
-
- public void stop()
- {
- this.processEngine = null;
- log.info("JBPMService stopped");
- }
-
- public ProcessEngine getProcessEngine()
- {
- return this.processEngine;
- }
-}
More information about the jbpm-commits
mailing list