[jbpm-commits] JBoss JBPM SVN: r3033 - in jbpm3/trunk/modules/integration/jboss42: src and 6 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Nov 21 09:40:28 EST 2008


Author: thomas.diesler at jboss.com
Date: 2008-11-21 09:40:27 -0500 (Fri, 21 Nov 2008)
New Revision: 3033

Added:
   jbpm3/trunk/modules/integration/jboss42/deploy.sh
   jbpm3/trunk/modules/integration/jboss42/src/main/etc/
   jbpm3/trunk/modules/integration/jboss42/src/main/etc/par-deployer.xml
   jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployer.java
   jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployerMBean.java
   jbpm3/trunk/modules/integration/jboss42/src/test/
   jbpm3/trunk/modules/integration/jboss42/src/test/resources/
   jbpm3/trunk/modules/integration/jboss42/src/test/resources/simple/
   jbpm3/trunk/modules/integration/jboss42/src/test/resources/simple/simple-process.xml
Removed:
   jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/DeployerInterceptor.java
Log:
Add PAR deployer

Added: jbpm3/trunk/modules/integration/jboss42/deploy.sh
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/deploy.sh	                        (rev 0)
+++ jbpm3/trunk/modules/integration/jboss42/deploy.sh	2008-11-21 14:40:27 UTC (rev 3033)
@@ -0,0 +1,4 @@
+#! /bin/bash
+
+cp target/jbpm-integration-jboss42-3.3.1-SNAPSHOT.jar $JBOSS422/server/default/deploy/jbpm/jbpm-service.sar
+cp src/main/etc/par-deployer.xml $JBOSS422/server/default/deploy/jbpm/jbpm-service.sar


Property changes on: jbpm3/trunk/modules/integration/jboss42/deploy.sh
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm3/trunk/modules/integration/jboss42/src/main/etc/par-deployer.xml
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/etc/par-deployer.xml	                        (rev 0)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/etc/par-deployer.xml	2008-11-21 14:40:27 UTC (rev 3033)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- The JBoss service configuration file for the PAR deployer service.
+  $Id$
+-->
+<server>
+   <mbean code="org.jbpm.integration.jboss42.PARSubDeployer"
+      name="jboss.deployer:service=PARDeployer">
+   </mbean>
+</server>
\ No newline at end of file


Property changes on: jbpm3/trunk/modules/integration/jboss42/src/main/etc/par-deployer.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Deleted: jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/DeployerInterceptor.java
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/DeployerInterceptor.java	2008-11-21 14:25:17 UTC (rev 3032)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/DeployerInterceptor.java	2008-11-21 14:40:27 UTC (rev 3033)
@@ -1,115 +0,0 @@
-/*
- * 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.
- */
-package org.jbpm.integration.jboss42;
-
-//$Id$
-
-import java.util.LinkedList;
-import java.util.List;
-
-import org.jboss.deployment.DeploymentInfo;
-import org.jboss.deployment.MainDeployerMBean;
-import org.jboss.deployment.SubDeployerInterceptorSupport;
-import org.jboss.mx.server.Invocation;
-import org.jboss.mx.util.MBeanProxy;
-
-/**
- * A deployer service that manages WS4EE compliant Web Services
- *
- * @author Thomas.Diesler at jboss.org
- * @since 03-May-2007
- */
-public abstract class DeployerInterceptor extends SubDeployerInterceptorSupport
-{
-   // The main deployer
-   private MainDeployerMBean mainDeployer;
-
-   @Override
-   protected final Object create(Invocation invocation, DeploymentInfo unit) throws Throwable
-   {
-      Object retn = invokeNext(invocation);
-
-
-      return retn;
-   }
-
-   @Override
-   protected final Object start(Invocation invocation, DeploymentInfo unit) throws Throwable
-   {
-      Object retn = invokeNext(invocation);
-
-      return retn;
-   }
-
-   @Override
-   protected final Object stop(Invocation invocation, DeploymentInfo unit) throws Throwable
-   {
-      Object retn = invokeNext(invocation);
-
-      return retn;
-   }
-
-   @Override
-   protected final Object destroy(Invocation invocation, DeploymentInfo unit) throws Throwable
-   {
-      Object retn = invokeNext(invocation);
-
-      return retn;
-   }
-
-   /** Create the deployer service
-    */
-   protected void createService() throws Exception
-   {
-      mainDeployer = (MainDeployerMBean)MBeanProxy.get(MainDeployerMBean.class, MainDeployerMBean.OBJECT_NAME, server);
-      super.attach();
-   }
-
-   /** Destroy the deployer service
-    */
-   protected void destroyService()
-   {
-      super.detach();
-   }
-
-   /** 
-    * Handle all webservice deployment exceptions.
-    * You can either simply log the problem and keep the EJB/WAR module
-    * alive or undeploy properly.
-    */
-   protected void handleStartupException(DeploymentInfo di, Throwable th)
-   {
-      log.error("Cannot startup webservice for: " + di.shortName, th);
-      mainDeployer.undeploy(di);
-   }
-
-   /** 
-    * Handle all webservice deployment exceptions.
-    *
-    * You can either simply logs the problem and keep the EJB/WAR module
-    * alive or undeploy properly.
-    */
-   protected void handleShutdownException(String moduleName, Throwable th)
-   {
-      log.error("Cannot shutdown webservice for: " + moduleName, th);
-   }
-}
\ No newline at end of file

Added: jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployer.java
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployer.java	                        (rev 0)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployer.java	2008-11-21 14:40:27 UTC (rev 3033)
@@ -0,0 +1,88 @@
+/*
+ * 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.
+ */
+package org.jbpm.integration.jboss42;
+
+//$Id$
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.deployment.DeploymentInfo;
+import org.jboss.deployment.SubDeployerSupport;
+
+/**
+ * A deployer service that manages jBPM Process Archive Deployments
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 03-May-2007
+ */
+public class PARSubDeployer extends SubDeployerSupport implements PARSubDeployerMBean
+{
+  /** The suffixes we accept, along with their relative order */
+  private static final String[] DEFAULT_ENHANCED_SUFFIXES = new String[] {
+        "900:-process.xml"
+  };
+  
+  public PARSubDeployer()
+  {
+    setEnhancedSuffixes(DEFAULT_ENHANCED_SUFFIXES);
+  }
+
+  @Override
+  public boolean accepts(DeploymentInfo di)
+  {
+    boolean accepts = super.accepts(di);
+    if (accepts == true)
+    {
+      log.info("Accept: " + di);
+    }
+    return accepts;
+  }
+
+  @Override
+  public void create(DeploymentInfo di) throws DeploymentException
+  {
+    super.create(di);
+  }
+
+  @Override
+  public void destroy(DeploymentInfo di) throws DeploymentException
+  {
+    super.destroy(di);
+  }
+
+  @Override
+  public void init(DeploymentInfo di) throws DeploymentException
+  {
+    super.init(di);
+  }
+
+  @Override
+  public void start(DeploymentInfo di) throws DeploymentException
+  {
+    super.start(di);
+  }
+
+  @Override
+  public void stop(DeploymentInfo di) throws DeploymentException
+  {
+    super.stop(di);
+  }
+}
\ No newline at end of file


Property changes on: jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployer.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployerMBean.java
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployerMBean.java	                        (rev 0)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployerMBean.java	2008-11-21 14:40:27 UTC (rev 3033)
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ */
+package org.jbpm.integration.jboss42;
+
+//$Id$
+
+import org.jboss.deployment.SubDeployerExtMBean;
+
+/**
+ * A deployer service that manages jBPM Process Archive Deployments
+ * 
+ * @author Thomas.Diesler at jboss.org
+ * @since 03-May-2007
+ */
+public interface PARSubDeployerMBean extends SubDeployerExtMBean
+{
+}
\ No newline at end of file


Property changes on: jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARSubDeployerMBean.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbpm3/trunk/modules/integration/jboss42/src/test/resources/simple/simple-process.xml
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/test/resources/simple/simple-process.xml	                        (rev 0)
+++ jbpm3/trunk/modules/integration/jboss42/src/test/resources/simple/simple-process.xml	2008-11-21 14:40:27 UTC (rev 3033)
@@ -0,0 +1,16 @@
+<process-definition name="timerProcess" xmlns="urn:jbpm.org:jpdl-3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://jbpm.org/xsd/jpdl-3.2.xsd">
+  <start-state name='start'>
+    <transition to='a' />
+  </start-state>
+  <state name='a'>
+    <transition to='b' />
+  </state>
+  <state name='b'>
+    <transition to='c' />
+  </state>
+  <state name='c'>
+    <transition to='end' />
+  </state>
+  <end-state name='end' />
+</process-definition>


Property changes on: jbpm3/trunk/modules/integration/jboss42/src/test/resources/simple/simple-process.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jbpm-commits mailing list