[jbpm-commits] JBoss JBPM SVN: r3272 - in jbpm3/trunk/modules/integration/jboss42: src/main/etc and 1 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Dec 8 09:38:05 EST 2008
Author: thomas.diesler at jboss.com
Date: 2008-12-08 09:38:05 -0500 (Mon, 08 Dec 2008)
New Revision: 3272
Added:
jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARDeployerInterceptorEJB3.java
jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARDeployerInterceptorEJB3MBean.java
Removed:
jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3.java
jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3MBean.java
Modified:
jbpm3/trunk/modules/integration/jboss42/.classpath
jbpm3/trunk/modules/integration/jboss42/src/main/etc/bpm-process-deployer.xml
Log:
Update PARDeployerInterceptor
Modified: jbpm3/trunk/modules/integration/jboss42/.classpath
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/.classpath 2008-12-08 14:27:35 UTC (rev 3271)
+++ jbpm3/trunk/modules/integration/jboss42/.classpath 2008-12-08 14:38:05 UTC (rev 3272)
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+ <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
Modified: jbpm3/trunk/modules/integration/jboss42/src/main/etc/bpm-process-deployer.xml
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/etc/bpm-process-deployer.xml 2008-12-08 14:27:35 UTC (rev 3271)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/etc/bpm-process-deployer.xml 2008-12-08 14:38:05 UTC (rev 3272)
@@ -7,13 +7,11 @@
-->
<server>
- <!--
- <mbean code="org.jbpm.integration.jboss42.ProcessArchiveDeployerInterceptorEJB3" name="jboss.bpm:service=ProcessArchiveDeployerInterceptorEJB3">
+ <mbean code="org.jbpm.integration.jboss42.PARDeployerInterceptorEJB3" name="jboss.bpm:service=PARDeployerEJB3">
<depends-list optional-attribute-name="Interceptables">
<depends-list-element>jboss.ejb3:service=EJB3Deployer</depends-list-element>
</depends-list>
</mbean>
- -->
<mbean code="org.jbpm.integration.jboss42.ProcessXMLSubDeployer" name="jboss.bpm:service=ProcessXMLDeployer">
</mbean>
Copied: jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARDeployerInterceptorEJB3.java (from rev 3271, jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3.java)
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARDeployerInterceptorEJB3.java (rev 0)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARDeployerInterceptorEJB3.java 2008-12-08 14:38:05 UTC (rev 3272)
@@ -0,0 +1,100 @@
+/*
+ * 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.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 BPM Process Deployments
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 08-Dec-2008
+ */
+public class PARDeployerInterceptorEJB3 extends SubDeployerInterceptorSupport implements PARDeployerInterceptorEJB3MBean
+{
+ // The main deployer
+ private MainDeployerMBean mainDeployer;
+
+ @Override
+ protected final Object create(Invocation invocation, DeploymentInfo di) throws Throwable
+ {
+ Object retn = invokeNext(invocation);
+
+ ProcessDeploymentHelper depHelper = new ProcessDeploymentHelper();
+ depHelper.create(di);
+
+ return retn;
+ }
+
+ @Override
+ protected final Object destroy(Invocation invocation, DeploymentInfo di) throws Throwable
+ {
+ Object retn = invokeNext(invocation);
+
+ ProcessDeploymentHelper depHelper = new ProcessDeploymentHelper();
+ depHelper.destroy(di);
+
+ 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 process 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 process for: " + di.shortName, th);
+ mainDeployer.undeploy(di);
+ }
+
+ /**
+ * Handle all process 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 process for: " + moduleName, th);
+ }
+}
\ No newline at end of file
Copied: jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARDeployerInterceptorEJB3MBean.java (from rev 3271, jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3MBean.java)
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARDeployerInterceptorEJB3MBean.java (rev 0)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/PARDeployerInterceptorEJB3MBean.java 2008-12-08 14:38:05 UTC (rev 3272)
@@ -0,0 +1,41 @@
+/*
+ * 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 javax.management.ObjectName;
+
+import org.jboss.bpm.api.model.builder.ObjectNameFactory;
+import org.jboss.deployment.SubDeployerInterceptorMBean;
+
+/**
+ * A deployer service that manages BPM Process Deployments
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 08-Dec-2008
+ */
+public interface PARDeployerInterceptorEJB3MBean extends SubDeployerInterceptorMBean
+{
+ // default object name
+ public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.bpm:service=BPMDeployerEJB3");
+}
\ No newline at end of file
Deleted: jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3.java
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3.java 2008-12-08 14:27:35 UTC (rev 3271)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3.java 2008-12-08 14:38:05 UTC (rev 3272)
@@ -1,100 +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 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 BPM Process Deployments
- *
- * @author Thomas.Diesler at jboss.org
- * @since 08-Dec-2008
- */
-public class ProcessArchiveDeployerInterceptorEJB3 extends SubDeployerInterceptorSupport implements ProcessArchiveDeployerInterceptorEJB3MBean
-{
- // The main deployer
- private MainDeployerMBean mainDeployer;
-
- @Override
- protected final Object create(Invocation invocation, DeploymentInfo di) throws Throwable
- {
- Object retn = invokeNext(invocation);
-
- ProcessDeploymentHelper depHelper = new ProcessDeploymentHelper();
- depHelper.create(di);
-
- return retn;
- }
-
- @Override
- protected final Object destroy(Invocation invocation, DeploymentInfo di) throws Throwable
- {
- Object retn = invokeNext(invocation);
-
- ProcessDeploymentHelper depHelper = new ProcessDeploymentHelper();
- depHelper.destroy(di);
-
- 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 process 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 process for: " + di.shortName, th);
- mainDeployer.undeploy(di);
- }
-
- /**
- * Handle all process 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 process for: " + moduleName, th);
- }
-}
\ No newline at end of file
Deleted: jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3MBean.java
===================================================================
--- jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3MBean.java 2008-12-08 14:27:35 UTC (rev 3271)
+++ jbpm3/trunk/modules/integration/jboss42/src/main/java/org/jbpm/integration/jboss42/ProcessArchiveDeployerInterceptorEJB3MBean.java 2008-12-08 14:38:05 UTC (rev 3272)
@@ -1,41 +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 javax.management.ObjectName;
-
-import org.jboss.bpm.api.model.builder.ObjectNameFactory;
-import org.jboss.deployment.SubDeployerInterceptorMBean;
-
-/**
- * A deployer service that manages BPM Process Deployments
- *
- * @author Thomas.Diesler at jboss.org
- * @since 08-Dec-2008
- */
-public interface ProcessArchiveDeployerInterceptorEJB3MBean extends SubDeployerInterceptorMBean
-{
- // default object name
- public static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.bpm:service=BPMDeployerEJB3");
-}
\ No newline at end of file
More information about the jbpm-commits
mailing list