[jboss-svn-commits] JBL Code SVN: r34790 - in labs/jbosstm/trunk/XTS: WSAS/classes/com/arjuna/mw/wsas/exceptions and 9 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Aug 19 08:48:43 EDT 2010
Author: adinn
Date: 2010-08-19 08:48:42 -0400 (Thu, 19 Aug 2010)
New Revision: 34790
Removed:
labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/ActivityFailedException.java
labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/InvalidSecurityOptionException.java
labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/NestingNotAllowedException.java
labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/utils/
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/common/Environment.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/ProtocolAlreadyRegisteredException.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/UnknownProtocolImplementationException.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/UnsupportedQualifierException.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/model/twophase/exceptions/ParticipantConfirmedException.java
labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/common/
labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/exceptions/
labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/resource/Participant.java
labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/resource/Synchronization.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wstx/tests/DemoParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wstx/tests/DemoSynchronization.java
Modified:
labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/UserActivityFactory.java
labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityImple.java
labs/jbosstm/trunk/XTS/WSCF/classes10/com/arjuna/mw/wsc/deploy/WSCFInitialisation.java
labs/jbosstm/trunk/XTS/WSCF/classes11/com/arjuna/mw/wsc11/deploy/WSCFInitialisation.java
Log:
removed more dead code -- fixes for JBTM-741
Modified: labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/UserActivityFactory.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/UserActivityFactory.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/UserActivityFactory.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -33,8 +33,6 @@
import com.arjuna.mwlabs.wsas.UserActivityImple;
-import java.io.FileNotFoundException;
-
/**
* Return the UserActivity implementation to use.
*
@@ -43,32 +41,6 @@
* @since 1.0.
*/
-/*
- * TODO
- *
- * DOH! This is severely broken/restricted, because we can only ever have
- * a single activity service per process in this model. All HLS-es are added
- * to the same service and run simultaneously, even if that doesn't actually
- * make sense! What we need is to have multiple activity services with
- * different HLS-es allowed for each. Very similar to having multiple POAs.
- *
- * At the moment it works as is because we know there is a very limited
- * set of HLS-es that are running and that they don't conflict. However, this
- * isn't guaranteed in general, so we need to fix this in the refactoring!
- *
- * The reason we can say with certainty that it currently works is: we only
- * have either AtomicTransaction (at) and/or BusinessActivity (ba) HLS-es
- * registered for AXTS. If both are registered then a start on an activity
- * will create an activity that has both running! However, the start was the
- * result of a specific incoming SOAP message on a specific ActivationService
- * (either an at or a ba). So, we give back a context that only contains
- * an at or a ba RegistrationService, not both. This means that participants
- * can only be registered with the at *or* the ba; the other is a redundant
- * coordinator and will just terminate in a success mode. We end up with
- * two coordinators for each activity, but only the right one will ever be
- * used. Not ideal, but one of the limitations of the original WS-AS model.
- */
-
public class UserActivityFactory
{
@@ -108,21 +80,5 @@
*/
private static UserActivityImple _imple = new UserActivityImple();
-
- static
- {
- try
- {
- com.arjuna.mw.wsas.utils.Configuration.initialise("/wsas.xml");
- }
- catch (FileNotFoundException ex)
- {
- }
- catch (Exception ex)
- {
- throw new ExceptionInInitializerError(ex.toString());
- }
- }
-
}
Deleted: labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/ActivityFailedException.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/ActivityFailedException.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/ActivityFailedException.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,62 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: ActivityFailedException.java,v 1.1 2002/11/25 10:51:42 nmcl Exp $
- */
-
-package com.arjuna.mw.wsas.exceptions;
-
-/**
- * Thrown if the activity has failed.
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: ActivityFailedException.java,v 1.1 2002/11/25 10:51:42 nmcl Exp $
- * @since 1.0.
- */
-
-public class ActivityFailedException extends WSASException
-{
-
- public ActivityFailedException ()
- {
- super();
- }
-
- public ActivityFailedException (String s)
- {
- super(s);
- }
-
- public ActivityFailedException (String s, int errorcode)
- {
- super(s, errorcode);
- }
-
-}
-
-
Deleted: labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/InvalidSecurityOptionException.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/InvalidSecurityOptionException.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/InvalidSecurityOptionException.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,62 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: InvalidSecurityOptionException.java,v 1.1 2002/11/25 10:51:43 nmcl Exp $
- */
-
-package com.arjuna.mw.wsas.exceptions;
-
-/**
- * The invoker does not have sufficient access rights to attempt the
- * operation. For example, obtaining all of the coordinator implementations
- * that are provided by the underlying implementation.
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: InvalidSecurityOptionException.java,v 1.1 2002/11/25 10:51:43 nmcl Exp $
- * @since 1.0.
- */
-
-public class InvalidSecurityOptionException extends WSASException
-{
-
- public InvalidSecurityOptionException ()
- {
- super();
- }
-
- public InvalidSecurityOptionException (String s)
- {
- super(s);
- }
-
- public InvalidSecurityOptionException (String s, int errorcode)
- {
- super(s, errorcode);
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/NestingNotAllowedException.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/NestingNotAllowedException.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mw/wsas/exceptions/NestingNotAllowedException.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,65 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: NestingNotAllowedException.java,v 1.1 2002/11/25 10:51:43 nmcl Exp $
- */
-
-package com.arjuna.mw.wsas.exceptions;
-
-/**
- * Not all HLSs allow nesting of activities to occur. This
- * exception is thrown if an attempt is made to create a new activity
- * when a activity is already associated with the invoking thread and
- * the activity implementation does not support nesting.
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: NestingNotAllowedException.java,v 1.1 2002/11/25 10:51:43 nmcl Exp $
- * @since 1.0.
- */
-
-public class NestingNotAllowedException extends HLSException
-{
-
- public NestingNotAllowedException ()
- {
- super();
- }
-
- public NestingNotAllowedException (String s)
- {
- super(s);
- }
-
- public NestingNotAllowedException (String s, int errorcode)
- {
- super(s, errorcode);
- }
-
-}
-
-
Modified: labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityImple.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityImple.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSAS/classes/com/arjuna/mwlabs/wsas/activity/ActivityImple.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -246,7 +246,6 @@
*
*/
- // ActivityFailedException rather than an Outcome status?
public Outcome end (com.arjuna.mw.wsas.completionstatus.CompletionStatus cs)
throws InvalidActivityException, WrongStateException,
ProtocolViolationException, NoPermissionException, SystemException
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/common/Environment.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/common/Environment.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/common/Environment.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,46 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: Environment.java,v 1.6 2004/03/15 13:25:01 nmcl Exp $
- */
-
-package com.arjuna.mw.wscf.common;
-
-/**
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: Environment.java,v 1.6 2004/03/15 13:25:01 nmcl Exp $
- * @since 1.0.
- */
-
-public class Environment
-{
-
- public static final String PROTOCOL_IMPLEMENTATION = "org.jboss.jbossts.xts.protocolImplementation";
-
-}
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/ProtocolAlreadyRegisteredException.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/ProtocolAlreadyRegisteredException.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/ProtocolAlreadyRegisteredException.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,65 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: ProtocolAlreadyRegisteredException.java,v 1.1 2002/11/25 10:56:34 nmcl Exp $
- */
-
-package com.arjuna.mw.wscf.exceptions;
-
-import com.arjuna.mw.wsas.exceptions.WSASException;
-
-/**
- * An attempt has been made to register the same coordination protocol
- * with the protocol factory.
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: ProtocolAlreadyRegisteredException.java,v 1.1 2002/11/25 10:56:34 nmcl Exp $
- * @since 1.0.
- */
-
-public class ProtocolAlreadyRegisteredException extends WSASException
-{
-
- public ProtocolAlreadyRegisteredException ()
- {
- super();
- }
-
- public ProtocolAlreadyRegisteredException (String s)
- {
- super(s);
- }
-
- public ProtocolAlreadyRegisteredException (String s, int errorcode)
- {
- super(s, errorcode);
- }
-
-}
-
-
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/UnknownProtocolImplementationException.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/UnknownProtocolImplementationException.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/UnknownProtocolImplementationException.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,65 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: UnknownProtocolImplementationException.java,v 1.1 2002/11/25 10:56:34 nmcl Exp $
- */
-
-package com.arjuna.mw.wscf.exceptions;
-
-import com.arjuna.mw.wsas.exceptions.WSASException;
-
-/**
- * An attempt was made to operate on a protocol implementation that the
- * factory did not know about.
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: UnknownProtocolImplementationException.java,v 1.1 2002/11/25 10:56:34 nmcl Exp $
- * @since 1.0.
- */
-
-public class UnknownProtocolImplementationException extends WSASException
-{
-
- public UnknownProtocolImplementationException ()
- {
- super();
- }
-
- public UnknownProtocolImplementationException (String s)
- {
- super(s);
- }
-
- public UnknownProtocolImplementationException (String s, int errorcode)
- {
- super(s, errorcode);
- }
-
-}
-
-
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/UnsupportedQualifierException.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/UnsupportedQualifierException.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/exceptions/UnsupportedQualifierException.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,64 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: UnsupportedQualifierException.java,v 1.1 2002/11/25 10:56:34 nmcl Exp $
- */
-
-package com.arjuna.mw.wscf.exceptions;
-
-import com.arjuna.mw.wsas.exceptions.WSASException;
-
-/**
- * Exception reported if a given qualifier is not supported. This includes
- * those cases where the <i>format</i> of a qualifier is not in canonical form.
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: UnsupportedQualifierException.java,v 1.1 2002/11/25 10:56:34 nmcl Exp $
- * @since 1.0.
- */
-
-public class UnsupportedQualifierException extends WSASException
-{
-
- public UnsupportedQualifierException ()
- {
- super();
- }
-
- public UnsupportedQualifierException (String msg)
- {
- super(msg);
- }
-
- public UnsupportedQualifierException (String s, int errorcode)
- {
- super(s, errorcode);
- }
-
-}
-
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/model/twophase/exceptions/ParticipantConfirmedException.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/model/twophase/exceptions/ParticipantConfirmedException.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mw/wscf/model/twophase/exceptions/ParticipantConfirmedException.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,64 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: ParticipantConfirmedException.java,v 1.1 2005/06/09 09:41:43 nmcl Exp $
- */
-
-package com.arjuna.mw.wscf.model.twophase.exceptions;
-
-import com.arjuna.mw.wsas.exceptions.SystemException;
-
-/**
- * There is no coordinator associated with the target.
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: ParticipantConfirmedException.java,v 1.1 2005/06/09 09:41:43 nmcl Exp $
- * @since 1.0.
- */
-
-public class ParticipantConfirmedException extends SystemException
-{
-
- public ParticipantConfirmedException ()
- {
- super();
- }
-
- public ParticipantConfirmedException (String s)
- {
- super(s);
- }
-
- public ParticipantConfirmedException (String s, int errorcode)
- {
- super(s, errorcode);
- }
-
-}
-
-
Modified: labs/jbosstm/trunk/XTS/WSCF/classes10/com/arjuna/mw/wsc/deploy/WSCFInitialisation.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes10/com/arjuna/mw/wsc/deploy/WSCFInitialisation.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSCF/classes10/com/arjuna/mw/wsc/deploy/WSCFInitialisation.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -23,8 +23,6 @@
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
-import com.arjuna.mw.wsas.utils.Configuration;
-import com.arjuna.mw.wscf.logging.wscfLogger;
import com.arjuna.mw.wscf.protocols.ProtocolRegistry;
import com.arjuna.services.framework.startup.Sequencer;
Modified: labs/jbosstm/trunk/XTS/WSCF/classes11/com/arjuna/mw/wsc11/deploy/WSCFInitialisation.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes11/com/arjuna/mw/wsc11/deploy/WSCFInitialisation.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSCF/classes11/com/arjuna/mw/wsc11/deploy/WSCFInitialisation.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -20,10 +20,7 @@
*/
package com.arjuna.mw.wsc11.deploy;
-import com.arjuna.mw.wsas.utils.Configuration;
-import com.arjuna.mw.wscf.logging.wscfLogger;
import com.arjuna.mw.wscf.protocols.ProtocolRegistry;
-import com.arjuna.services.framework.startup.Sequencer;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
Deleted: labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/resource/Participant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/resource/Participant.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/resource/Participant.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,198 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: Participant.java,v 1.3 2004/03/15 13:25:16 nmcl Exp $
- */
-
-package com.arjuna.mw.wstx.resource;
-
-import com.arjuna.mw.wscf.common.Qualifier;
-
-import com.arjuna.mw.wstx.common.Vote;
-
-import com.arjuna.mw.wsas.activity.Outcome;
-
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
-
-import com.arjuna.mw.wsas.status.Status;
-
-import com.arjuna.ats.arjuna.state.*;
-
-import com.arjuna.mw.wsas.exceptions.SystemException;
-import com.arjuna.mw.wsas.exceptions.WrongStateException;
-
-import com.arjuna.mw.wstx.exceptions.HeuristicHazardException;
-import com.arjuna.mw.wstx.exceptions.HeuristicMixedException;
-import com.arjuna.mw.wstx.exceptions.HeuristicCommitException;
-import com.arjuna.mw.wstx.exceptions.HeuristicRollbackException;
-import com.arjuna.mw.wstx.exceptions.InvalidParticipantException;
-
-/**
- * This is the interface that all two-phase aware participants must define.
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: Participant.java,v 1.3 2004/03/15 13:25:16 nmcl Exp $
- * @since 1.0.
- */
-
-public interface Participant
-{
-
- /**
- * Prepare the participant.
- *
- * @param qualifiers Any additional information.
- *
- * @exception InvalidParticipantException Thrown if the participant identity is invalid
- * (e.g., refers to an unknown participant.)
- * @exception WrongStateException Thrown if the state of the participant is such that
- * it cannot prepare.
- * @exception HeuristicHazardException Thrown if upon preparing, the participant finds that
- * some of its enlisted participants have return statuses which
- * mean it cannot determine what the result of issuing prepare
- * to them has been.
- * @exception HeuristicMixedException Thrown if upon preparing, the participant finds that
- * some of its enlisted participants have return statuses which
- * mean some of them cancelled and some of them confirmed.
- * @exception SystemException Thrown if some other error occurred.
- *
- * @return the vote.
- */
-
- public Vote prepare (Qualifier[] qualifiers) throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, SystemException;
-
- /**
- * Commit the participant.
- *
- * @param qualifiers Any additional information.
- *
- * @exception InvalidParticipantException Thrown if the participant identity is invalid
- * (e.g., refers to an unknown participant.)
- * @exception WrongStateException Thrown if the state of the participant is such that
- * it cannot confirm.
- * @exception HeuristicHazardException Thrown if upon preparing, the participant finds that
- * some of its enlisted participants have return statuses which
- * mean it cannot determine what the result of issuing confirm
- * to them has been.
- * @exception HeuristicMixedException Thrown if upon preparing, the participant finds that
- * some of its enlisted participants have return statuses which
- * mean some of them cancelled and some of them confirmed.
- * @exception HeuristicRollbackException Thrown if the participant rolls
- * back rather than commits.
- * @exception SystemException Thrown if some other error occurred.
- */
-
- public void commit (Qualifier[] qualifiers) throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicRollbackException, SystemException;
-
- /**
- * Rollback the participant.
- *
- * @param qualifiers Any additional information.
- *
- * @exception InvalidParticipantException Thrown if the participant identity is invalid
- * (e.g., refers to an unknown participant.)
- * @exception WrongStateException Thrown if the state of the participant is such that
- * it cannot cancel.
- * @exception HeuristicHazardException Thrown if upon preparing, the participant finds that
- * some of its enlisted participants have return statuses which
- * mean it cannot determine what the result of issuing cancel
- * to them has been.
- * @exception HeuristicMixedException Thrown if upon preparing, the participant finds that
- * some of its enlisted participants have return statuses which
- * mean some of them cancelled and some of them confirmed.
- * @exception HeuristicCommitException Thrown if the participant commits
- * rather than rolls back.
- * @exception SystemException Thrown if some other error occurred.
- */
-
- public void rollback (Qualifier[] qualifiers) throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicCommitException, SystemException;
-
- /**
- * Commit the participant in a single phase.
- *
- * @param qualifiers Any additional information.
- *
- * @exception InvalidParticipantException Thrown if the participant identity is invalid
- * (e.g., refers to an unknown participant.)
- * @exception WrongStateException Thrown if the state of the participant is such that
- * it cannot cancel.
- * @exception HeuristicHazardException Thrown if upon preparing, the participant finds that
- * some of its enlisted participants have return statuses which
- * mean it cannot determine what the result of issuing cancel
- * to them has been.
- * @exception HeuristicMixedException Thrown if upon preparing, the participant finds that
- * some of its enlisted participants have return statuses which
- * mean some of them cancelled and some of them confirmed.
- * @exception HeuristicRollbackException Thrown if the participant rolls
- * back rather than commit.
- * @exception SystemException Thrown if some other error occurred.
- */
-
- public void commitOnePhase (Qualifier[] qualifiers) throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicRollbackException, SystemException;
-
- /**
- * Inform the participant that is can forget the heuristic result.
- *
- * @param qualifiers Any additional qualifiers that may affect
- * the operation.
- * @exception InvalidParticipantException Thrown if the participant identity is invalid.
- * @exception WrongStateException Thrown if the participant is in an invalid state.
- * @exception SystemException Thrown in the event of a general fault.
- */
-
- public void forget (Qualifier[] qualifiers) throws InvalidParticipantException, WrongStateException, SystemException;
-
- /**
- * @param qualifiers Any additional qualifiers that may affect
- * the operation.
- * @exception InvalidParticipantException Thrown if the participant identity is invalid.
- * @exception SystemException Thrown in the event of a general error.
- *
- * @return the current status of the specified participant.
- */
-
- public Status status (Qualifier[] qualifiers) throws InvalidParticipantException, SystemException;
-
- /**
- * @return the name of this participant.
- */
-
- public String name ();
-
- /**
- * These methods are required so that the coordinator can serialise and
- * de-serialise information about the participant during completion and
- * recovery.
- */
-
- public boolean packState (OutputObjectState os);
-
- public boolean unpackState (InputObjectState os);
-
-}
-
Deleted: labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/resource/Synchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/resource/Synchronization.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mw/wstx/resource/Synchronization.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,82 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: Synchronization.java,v 1.1 2002/11/25 11:00:52 nmcl Exp $
- */
-
-package com.arjuna.mw.wstx.resource;
-
-import com.arjuna.mw.wscf.common.Qualifier;
-
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
-
-import com.arjuna.mw.wsas.status.Status;
-
-import com.arjuna.mw.wsas.exceptions.SystemException;
-
-/**
- * This is the interface that all synchronization participants must define.
- *
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: Synchronization.java,v 1.1 2002/11/25 11:00:52 nmcl Exp $
- * @since 1.0.
- */
-
-public interface Synchronization
-{
-
- /**
- * The transaction that the instance is enrolled with is about to
- * commit.
- *
- * @exception SystemException Thrown if any error occurs. This will cause
- * the transaction to roll back.
- */
-
- public void beforeCompletion () throws SystemException;
-
- /**
- * The transaction that the instance is enrolled with has completed and
- * the state in which is completed is passed as a parameter.
- *
- * @param cs The state in which the transaction completed.
- *
- * @exception SystemException Thrown if any error occurs. This has no
- * affect on the outcome of the transaction.
- */
-
- public void afterCompletion (CompletionStatus cs) throws SystemException;
-
- /**
- * @return the name of this inferior.
- */
-
- public String name ();
-
-}
-
Deleted: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wstx/tests/DemoParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wstx/tests/DemoParticipant.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wstx/tests/DemoParticipant.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,257 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: DemoParticipant.java,v 1.4 2004/03/15 13:25:26 nmcl Exp $
- */
-
-package com.arjuna.wstx.tests;
-
-import com.arjuna.mw.wstx.resource.Participant;
-
-import com.arjuna.mw.wscf.common.Qualifier;
-
-import com.arjuna.mw.wstx.common.*;
-
-import com.arjuna.mw.wstx.status.*;
-
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
-
-import com.arjuna.mw.wsas.status.*;
-
-import com.arjuna.mw.wscf.model.twophase.status.*;
-
-import com.arjuna.ats.arjuna.state.*;
-
-import com.arjuna.mw.wsas.exceptions.SystemException;
-import com.arjuna.mw.wsas.exceptions.WrongStateException;
-
-import com.arjuna.mw.wstx.exceptions.HeuristicHazardException;
-import com.arjuna.mw.wstx.exceptions.HeuristicMixedException;
-import com.arjuna.mw.wstx.exceptions.HeuristicCommitException;
-import com.arjuna.mw.wstx.exceptions.HeuristicRollbackException;
-import com.arjuna.mw.wstx.exceptions.InvalidParticipantException;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: DemoParticipant.java,v 1.4 2004/03/15 13:25:26 nmcl Exp $
- * @since 1.0.
- */
-
-public class DemoParticipant implements Participant
-{
-
- public DemoParticipant (TxId id)
- {
- _status = Active.instance();
- _passed = false;
- _id = id;
- }
-
- public final boolean passed ()
- {
- return _passed;
- }
-
- /**
- * Prepare the participant. This is to allow
- * an implementation to put a manager/factory entity in the loop
- * to (possibly) improve performance, for example. So, the entity
- * that implements this interface may be wrapping multiple
- * implementation objects.
- *
- * @param Qualifier[] qualifiers Any additional information.
- * @exception InvalidInferiorException Thrown if the inferior identity is invalid
- * (e.g., refers to an unknown inferior.)
- * @exception WrongStateException Thrown if the state of the inferior is such that
- * it cannot prepare.
- * @exception HeuristicHazardException Thrown if upon preparing, the inferior finds that
- * some of its enlisted inferiors have return statuses which
- * mean it cannot determine what the result of issuing prepare
- * to them has been.
- * @exception HeuristicMixedException Thrown if upon preparing, the inferior finds that
- * some of its enlisted inferiors have return statuses which
- * mean some of them cancelled and some of them confirmed.
- * @exception SystemException Thrown if some other error occurred.
- * @return the vote.
- */
-
- public Vote prepare (Qualifier[] qualifiers) throws SystemException, InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException
- {
- System.out.println("DemoParticipant.prepare ( "+_id+" )");
-
- if (_status.equals(Active.instance()))
- {
- _status = Prepared.instance();
-
- return new VoteCommit();
- }
- else
- throw new WrongStateException();
- }
-
- /**
- * Confirm the inferior specified.
- *
- * @param Qualifier[] qualifiers Any additional information.
- * @exception InvalidInferiorException Thrown if the inferior identity is invalid
- * (e.g., refers to an unknown inferior.)
- * @exception WrongStateException Thrown if the state of the inferior is such that
- * it cannot confirm.
- * @exception HeuristicHazardException Thrown if upon preparing, the inferior finds that
- * some of its enlisted inferiors have return statuses which
- * mean it cannot determine what the result of issuing confirm
- * to them has been.
- * @exception HeuristicMixedException Thrown if upon preparing, the inferior finds that
- * some of its enlisted inferiors have return statuses which
- * mean some of them cancelled and some of them confirmed.
- * @exception InferiorCancelledException Thrown if the inferior cancels
- * rather than confirms.
- * @exception SystemException Thrown if some other error occurred.
- */
-
- public void commit (Qualifier[] qualifiers) throws SystemException, InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicRollbackException
- {
- System.out.println("DemoParticipant.commit ( "+_id+" )");
-
- if (!_status.equals(Prepared.instance()))
- throw new WrongStateException();
- else
- {
- _status = Committed.instance();
-
- _passed = true;
- }
- }
-
- public void commitOnePhase (Qualifier[] qualifiers) throws SystemException, InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicRollbackException
- {
- System.out.println("DemoParticipant.commitOnePhase ( "+_id+" )");
-
- if (_status.equals(Prepared.instance()))
- throw new WrongStateException();
- else
- {
- _status = Committed.instance();
-
- _passed = true;
- }
- }
-
- /**
- * Cancel the inferior specified.
- *
- * @param Qualifier[] qualifiers Any additional information.
- * @exception InvalidInferiorException Thrown if the inferior identity is invalid
- * (e.g., refers to an unknown inferior.)
- * @exception WrongStateException Thrown if the state of the inferior is such that
- * it cannot cancel.
- * @exception HeuristicHazardException Thrown if upon preparing, the inferior finds that
- * some of its enlisted inferiors have return statuses which
- * mean it cannot determine what the result of issuing cancel
- * to them has been.
- * @exception HeuristicMixedException Thrown if upon preparing, the inferior finds that
- * some of its enlisted inferiors have return statuses which
- * mean some of them cancelled and some of them confirmed.
- * @exception InferiorConfirmedException Thrown if the inferior confirms
- * rather than cancels.
- * @exception SystemException Thrown if some other error occurred.
- */
-
- public void rollback (Qualifier[] qualifiers) throws SystemException, InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicCommitException
- {
- System.out.println("DemoParticipant.rollback ( "+_id+" )");
-
- if (!_status.equals(Prepared.instance()) || !_status.equals(Active.instance()))
- {
- throw new WrongStateException();
- }
- else
- _status = RolledBack.instance();
- }
-
- /**
- * Inform the specified inferior that it has generated a contradiction.
- *
- * @param Qualifier[] qualifiers Any additional qualifiers that may affect
- * the operation.
- * @exception InvalidInferiorException Thrown if the inferior identity is invalid.
- * @exception WrongStateException Thrown if the inferior is in an invalid state.
- * @exception SystemException Thrown in the event of a general fault.
- */
-
- public void forget (Qualifier[] qualifiers) throws SystemException, InvalidParticipantException, WrongStateException
- {
- System.out.println("DemoParticipant.forget ( "+_id+" )");
- }
-
- /**
- * @param Qualifier[] qualifiers Any additional qualifiers that may affect
- * the operation.
- * @exception InvalidInferiorException Thrown if the inferior identity is invalid.
- * @exception SystemException Thrown in the event of a general fault.
- * @return the current status of the specified inferior.
- */
-
- public Status status (Qualifier[] qualifiers) throws SystemException, InvalidParticipantException
- {
- System.out.println("DemoParticipant.status ( "+_id+" )");
-
- return _status;
- }
-
- /**
- * @return the name of this inferior.
- */
-
- public String name ()
- {
- return "DemoParticipant";
- }
-
- /**
- * These methods are required so that the coordinator can serialise and
- * de-serialise information about the inferior during completion and
- * recovery.
- */
-
- public boolean packState (OutputObjectState os)
- {
- return true;
- }
-
- public boolean unpackState (InputObjectState os)
- {
- return true;
- }
-
- private Status _status;
- private boolean _passed;
- private TxId _id;
-
-}
-
Deleted: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wstx/tests/DemoSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wstx/tests/DemoSynchronization.java 2010-08-19 11:47:59 UTC (rev 34789)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wstx/tests/DemoSynchronization.java 2010-08-19 12:48:42 UTC (rev 34790)
@@ -1,82 +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 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.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: DemoSynchronization.java,v 1.1 2002/11/25 11:00:54 nmcl Exp $
- */
-
-package com.arjuna.wstx.tests;
-
-import com.arjuna.mw.wstx.resource.Synchronization;
-
-import com.arjuna.mw.wscf.common.Qualifier;
-
-import com.arjuna.mw.wstx.common.TxId;
-
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
-
-import com.arjuna.mw.wsas.status.Status;
-
-import com.arjuna.mw.wsas.exceptions.SystemException;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: DemoSynchronization.java,v 1.1 2002/11/25 11:00:54 nmcl Exp $
- * @since 1.0.
- */
-
-public class DemoSynchronization implements Synchronization
-{
-
- public DemoSynchronization (TxId id)
- {
- _tid = id;
- }
-
- public void beforeCompletion () throws SystemException
- {
- System.out.println("DemoSynchronization.beforeCompletion ( "+_tid+" )");
- }
-
- public void afterCompletion (CompletionStatus cs) throws SystemException
- {
- System.out.println("DemoSynchronization.afterCompletion ( "+_tid+", "+cs+" )");
- }
-
- /**
- * @return the name of this inferior.
- */
-
- public String name ()
- {
- return "DemoSynchronization";
- }
-
- private TxId _tid;
-
-}
-
More information about the jboss-svn-commits
mailing list