[jbpm-commits] JBoss JBPM SVN: r1860 - in jbpm4/pvm/trunk/modules/core/src/main: java/org/jbpm/pvm/internal/wire/binding and 1 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Aug 11 05:03:59 EDT 2008
Author: porcherg
Date: 2008-08-11 05:03:59 -0400 (Mon, 11 Aug 2008)
New Revision: 1860
Removed:
jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobTestMessageSession.java
jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobTestTimerSession.java
Modified:
jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/wire/binding/MessageSessionBinding.java
jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/wire/binding/TimerSessionBinding.java
jbpm4/pvm/trunk/modules/core/src/main/resources/org/jbpm/pvm/wire.xsd
Log:
remove JobTestMessageSession and JobTestTimerSession
Deleted: jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobTestMessageSession.java
===================================================================
--- jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobTestMessageSession.java 2008-08-11 07:14:47 UTC (rev 1859)
+++ jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobTestMessageSession.java 2008-08-11 09:03:59 UTC (rev 1860)
@@ -1,45 +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.pvm.internal.jobexecutor;
-
-import org.jbpm.pvm.internal.job.MessageImpl;
-import org.jbpm.pvm.internal.log.Log;
-import org.jbpm.pvm.internal.util.ReflectUtil;
-import org.jbpm.pvm.job.JobTestHelper;
-import org.jbpm.pvm.session.DbSession;
-import org.jbpm.pvm.session.MessageSession;
-
-/**
- * @author Tom Baeyens
- */
-public class JobTestMessageSession implements MessageSession {
-
- private static final Log log = Log.getLog(JobTestMessageSession.class.getName());
-
- /* injected */
- DbSession dbSession;
-
- public void send(MessageImpl<?> message) {
- log.debug("sending "+message+" for target "+ReflectUtil.getUnqualifiedClassName(JobTestHelper.class));
- dbSession.save(message);
- }
-}
Deleted: jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobTestTimerSession.java
===================================================================
--- jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobTestTimerSession.java 2008-08-11 07:14:47 UTC (rev 1859)
+++ jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobTestTimerSession.java 2008-08-11 09:03:59 UTC (rev 1860)
@@ -1,45 +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.pvm.internal.jobexecutor;
-
-import org.hibernate.Session;
-import org.jbpm.pvm.job.Timer;
-import org.jbpm.pvm.session.TimerSession;
-
-
-/**
- * @author Tom Baeyens
- */
-public class JobTestTimerSession implements TimerSession {
-
- /* injected */
- Session session;
-
- public void schedule(Timer timer) {
- session.save(timer);
- }
-
- public void cancel(Timer timer) {
- session.delete(timer);
- }
-
-}
Modified: jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/wire/binding/MessageSessionBinding.java
===================================================================
--- jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/wire/binding/MessageSessionBinding.java 2008-08-11 07:14:47 UTC (rev 1859)
+++ jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/wire/binding/MessageSessionBinding.java 2008-08-11 09:03:59 UTC (rev 1860)
@@ -23,7 +23,6 @@
import org.jbpm.pvm.internal.jms.JmsMessageSession;
import org.jbpm.pvm.internal.jobexecutor.JobExecutorMessageSession;
-import org.jbpm.pvm.internal.jobexecutor.JobTestMessageSession;
import org.jbpm.pvm.internal.util.XmlUtil;
import org.jbpm.pvm.internal.wire.descriptor.ContextTypeRefDescriptor;
import org.jbpm.pvm.internal.wire.descriptor.JndiDescriptor;
@@ -71,10 +70,6 @@
parse.addProblem("attribute <"+XmlUtil.getTagLocalName(element)+" destination-jndi=\"...\" is required when target=\"jms\"");
}
- } else if ("test".equals(target)) {
- objectDescriptor.setClassName(JobTestMessageSession.class.getName());
- objectDescriptor.addInjection("dbSession", new ContextTypeRefDescriptor(DbSession.class));
-
} else {
objectDescriptor.setClassName(JobExecutorMessageSession.class.getName());
objectDescriptor.addInjection("transaction", new TransactionRefDescriptor());
Modified: jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/wire/binding/TimerSessionBinding.java
===================================================================
--- jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/wire/binding/TimerSessionBinding.java 2008-08-11 07:14:47 UTC (rev 1859)
+++ jbpm4/pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/wire/binding/TimerSessionBinding.java 2008-08-11 09:03:59 UTC (rev 1860)
@@ -13,12 +13,10 @@
**/
package org.jbpm.pvm.internal.wire.binding;
-import org.hibernate.Session;
import org.jbpm.pvm.internal.ejb.EnterpriseTimerSession;
import org.jbpm.pvm.internal.jobexecutor.JobDbSession;
import org.jbpm.pvm.internal.jobexecutor.JobExecutor;
import org.jbpm.pvm.internal.jobexecutor.JobExecutorTimerSession;
-import org.jbpm.pvm.internal.jobexecutor.JobTestTimerSession;
import org.jbpm.pvm.internal.util.XmlUtil;
import org.jbpm.pvm.internal.wire.descriptor.ContextTypeRefDescriptor;
import org.jbpm.pvm.internal.wire.descriptor.EnvironmentTypeRefDescriptor;
@@ -49,11 +47,6 @@
if ((target!=null) && ("ejb".equalsIgnoreCase(target))) {
objectDescriptor.setClassName(EnterpriseTimerSession.class.getName());
- } else if ((target!=null) && ("test".equalsIgnoreCase(target))) {
- // wire the JobTestTimerSession
- objectDescriptor.setClassName(JobTestTimerSession.class.getName());
- objectDescriptor.addInjection("session", new ContextTypeRefDescriptor(Session.class));
-
} else {
// wire the JobExecutorTimerSession
objectDescriptor.setClassName(JobExecutorTimerSession.class.getName());
Modified: jbpm4/pvm/trunk/modules/core/src/main/resources/org/jbpm/pvm/wire.xsd
===================================================================
--- jbpm4/pvm/trunk/modules/core/src/main/resources/org/jbpm/pvm/wire.xsd 2008-08-11 07:14:47 UTC (rev 1859)
+++ jbpm4/pvm/trunk/modules/core/src/main/resources/org/jbpm/pvm/wire.xsd 2008-08-11 09:03:59 UTC (rev 1860)
@@ -784,7 +784,6 @@
<restriction base="string">
<enumeration value="job-executor" />
<enumeration value="ejb" />
- <enumeration value="test" />
</restriction>
</simpleType>
</attribute>
More information about the jbpm-commits
mailing list